CORE.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4.     Core.h
  5. Abstract:
  6.     Core ADS Obect
  7.     
  8. Author:
  9. Environment:
  10.     User mode
  11. Revision History :
  12. --*/
  13. #ifndef _CORE_H_
  14. #define _CORE_H_
  15. class CCoreADsObject
  16. {
  17. public:
  18.     CCoreADsObject::CCoreADsObject();
  19.     CCoreADsObject::~CCoreADsObject();
  20.     HRESULT
  21.     get_CoreName(BSTR * retval);
  22.     HRESULT
  23.     get_CoreADsPath(BSTR * retval);
  24.     HRESULT
  25.     get_CoreParent(BSTR * retval);
  26.     HRESULT
  27.     get_CoreSchema(BSTR * retval);
  28.     HRESULT
  29.     get_CoreADsClass(BSTR * retval);
  30.     HRESULT
  31.     get_CoreGUID(BSTR * retval);
  32.     DWORD
  33.     CCoreADsObject::GetObjectState()
  34.     {
  35.         return(_dwObjectState);
  36.     }
  37.     void
  38.     CCoreADsObject::SetObjectState(DWORD dwObjectState)
  39.     {
  40.         _dwObjectState = dwObjectState;
  41.     }
  42.     HRESULT
  43.     InitializeCoreObject(
  44.         BSTR Parent,
  45.         BSTR Name,
  46.         BSTR ClassName,
  47.         BSTR Schema,
  48.         REFCLSID rclsid,
  49.         DWORD   dwObjectState
  50.         );
  51.     STDMETHOD(GetInfo)(THIS_ BOOL fExplicit);
  52. protected:
  53.     DWORD       _dwObjectState;
  54.     BSTR        _Name;
  55.     BSTR        _ADsPath;
  56.     BSTR        _Parent;
  57.     BSTR        _ADsClass;
  58.     BSTR        _ADsGuid;
  59.     BSTR        _Schema;
  60. };
  61. #define     ADS_OBJECT_BOUND              1
  62. #define     ADS_OBJECT_UNBOUND            2
  63. #endif