Leaked source code of windows server 2003
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.
|
|
/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
admin.cxx
Abstract:
General metadata utility functions.
Author:
Keith Moore (keithmo) 05-Feb-1997
Revision History:
--*/
#include "precomp.hxx"
#pragma hdrstop
//
// Private constants.
//
//
// Private types.
//
//
// Private globals.
//
//
// Private prototypes.
//
//
// Public functions.
//
HRESULT MdGetAdminObject( OUT IMSAdminBase ** AdmCom ) {
HRESULT result; IClassFactory * classFactory;
//
// Get the admin class factory.
//
result = CoGetClassObject( GETAdminBaseCLSID(TRUE), CLSCTX_SERVER, NULL, IID_IClassFactory, (VOID **)&classFactory );
if( SUCCEEDED(result) ) {
//
// Create the admin object.
//
result = classFactory->CreateInstance( NULL, IID_IMSAdminBase, (VOID **)AdmCom );
classFactory->Release();
}
return result;
} // MdGetAdminObject
HRESULT MdReleaseAdminObject( IN IMSAdminBase * AdmCom ) {
HRESULT result;
//
// Terminate the admin object.
//
AdmCom->Release();
return result;
} // MdReleaseAdminObject
//
// Private functions.
//
|