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.
176 lines
1.7 KiB
176 lines
1.7 KiB
//---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1997
|
|
//
|
|
// File: core.hxx
|
|
//
|
|
// Contents: Core object
|
|
//
|
|
// History: 11-1-95 krishnag Created.
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
class CCoreADsObject
|
|
{
|
|
|
|
public:
|
|
|
|
CCoreADsObject::CCoreADsObject();
|
|
|
|
CCoreADsObject::~CCoreADsObject();
|
|
|
|
HRESULT
|
|
get_CoreName(BSTR * retval);
|
|
|
|
HRESULT
|
|
get_CoreADsPath(BSTR * retval);
|
|
|
|
HRESULT
|
|
get_CoreParent(BSTR * retval);
|
|
|
|
HRESULT
|
|
get_CoreSchema(BSTR * retval);
|
|
|
|
HRESULT
|
|
get_CoreADsClass(BSTR * retval);
|
|
|
|
|
|
HRESULT
|
|
get_CoreGUID(BSTR * retval);
|
|
|
|
|
|
DWORD
|
|
CCoreADsObject::GetObjectState()
|
|
{
|
|
return(_dwObjectState);
|
|
}
|
|
|
|
|
|
void
|
|
CCoreADsObject::SetObjectState(DWORD dwObjectState)
|
|
{
|
|
_dwObjectState = dwObjectState;
|
|
}
|
|
|
|
|
|
HRESULT
|
|
InitializeCoreObject(
|
|
BSTR Parent,
|
|
BSTR Name,
|
|
BSTR ClassName,
|
|
BSTR Schema,
|
|
REFCLSID rclsid,
|
|
DWORD dwObjectState
|
|
);
|
|
|
|
STDMETHOD(GetInfo)(THIS_ BOOL fExplicit);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
DWORD _dwObjectState;
|
|
|
|
BSTR _Name;
|
|
BSTR _ADsPath;
|
|
BSTR _Parent;
|
|
BSTR _ADsClass;
|
|
BSTR _ADsGuid;
|
|
BSTR _Schema;
|
|
|
|
};
|
|
|
|
|
|
#define ADS_OBJECT_BOUND 1
|
|
#define ADS_OBJECT_UNBOUND 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|