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.

176 lines
1.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997
  5. //
  6. // File: core.hxx
  7. //
  8. // Contents: Core object
  9. //
  10. // History: 11-1-95 krishnag Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. class CCoreADsObject
  14. {
  15. public:
  16. CCoreADsObject::CCoreADsObject();
  17. CCoreADsObject::~CCoreADsObject();
  18. HRESULT
  19. get_CoreName(BSTR * retval);
  20. HRESULT
  21. get_CoreADsPath(BSTR * retval);
  22. HRESULT
  23. get_CoreParent(BSTR * retval);
  24. HRESULT
  25. get_CoreSchema(BSTR * retval);
  26. HRESULT
  27. get_CoreADsClass(BSTR * retval);
  28. HRESULT
  29. get_CoreGUID(BSTR * retval);
  30. DWORD
  31. CCoreADsObject::GetObjectState()
  32. {
  33. return(_dwObjectState);
  34. }
  35. void
  36. CCoreADsObject::SetObjectState(DWORD dwObjectState)
  37. {
  38. _dwObjectState = dwObjectState;
  39. }
  40. HRESULT
  41. InitializeCoreObject(
  42. BSTR Parent,
  43. BSTR Name,
  44. BSTR ClassName,
  45. BSTR Schema,
  46. REFCLSID rclsid,
  47. DWORD dwObjectState
  48. );
  49. STDMETHOD(GetInfo)(THIS_ BOOL fExplicit);
  50. protected:
  51. DWORD _dwObjectState;
  52. BSTR _Name;
  53. BSTR _ADsPath;
  54. BSTR _Parent;
  55. BSTR _ADsClass;
  56. BSTR _ADsGuid;
  57. BSTR _Schema;
  58. };
  59. #define ADS_OBJECT_BOUND 1
  60. #define ADS_OBJECT_UNBOUND 2