Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
880 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1998.
  5. //
  6. // File: clsobj.cpp
  7. //
  8. // Contents: export for implimenting MobsyncGetClassObject.
  9. //
  10. // Classes:
  11. //
  12. // Notes:
  13. //
  14. // History: 04-Aug-98 rogerg Created.
  15. //
  16. //--------------------------------------------------------------------------
  17. #include "precomp.h"
  18. class CNetApi;
  19. STDAPI MobsyncGetClassObject(ULONG mobsyncClassObjectId,void **pCObj)
  20. {
  21. if (NULL == pCObj)
  22. {
  23. Assert(pCObj);
  24. return E_INVALIDARG;
  25. }
  26. switch(mobsyncClassObjectId)
  27. {
  28. case MOBSYNC_CLASSOBJECTID_NETAPI:
  29. *pCObj = new CNetApi();
  30. break;
  31. default:
  32. AssertSz(0,"Request made for unknown object");
  33. break;
  34. }
  35. return *pCObj ? NOERROR : CLASS_E_CLASSNOTAVAILABLE;
  36. }