mirror of https://github.com/tongzx/nt5src
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.
42 lines
880 B
42 lines
880 B
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1998.
|
|
//
|
|
// File: clsobj.cpp
|
|
//
|
|
// Contents: export for implimenting MobsyncGetClassObject.
|
|
//
|
|
// Classes:
|
|
//
|
|
// Notes:
|
|
//
|
|
// History: 04-Aug-98 rogerg Created.
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#include "precomp.h"
|
|
|
|
class CNetApi;
|
|
|
|
STDAPI MobsyncGetClassObject(ULONG mobsyncClassObjectId,void **pCObj)
|
|
{
|
|
if (NULL == pCObj)
|
|
{
|
|
Assert(pCObj);
|
|
return E_INVALIDARG;
|
|
}
|
|
|
|
switch(mobsyncClassObjectId)
|
|
{
|
|
case MOBSYNC_CLASSOBJECTID_NETAPI:
|
|
*pCObj = new CNetApi();
|
|
break;
|
|
default:
|
|
AssertSz(0,"Request made for unknown object");
|
|
break;
|
|
}
|
|
|
|
return *pCObj ? NOERROR : CLASS_E_CLASSNOTAVAILABLE;
|
|
}
|