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.

164 lines
1.4 KiB

  1. class CCoreADsObject
  2. {
  3. public:
  4. CCoreADsObject::CCoreADsObject();
  5. CCoreADsObject::~CCoreADsObject();
  6. HRESULT
  7. get_CoreName(BSTR * retval);
  8. HRESULT
  9. get_CoreADsPath(BSTR * retval);
  10. HRESULT
  11. get_CoreParent(BSTR * retval);
  12. HRESULT
  13. get_CoreSchema(BSTR * retval);
  14. HRESULT
  15. get_CoreADsClass(BSTR * retval);
  16. HRESULT
  17. get_CoreGUID(BSTR * retval);
  18. DWORD
  19. CCoreADsObject::GetObjectState()
  20. {
  21. return(_dwObjectState);
  22. }
  23. void
  24. CCoreADsObject::SetObjectState(DWORD dwObjectState)
  25. {
  26. _dwObjectState = dwObjectState;
  27. }
  28. HRESULT
  29. InitializeCoreObject(
  30. BSTR Parent,
  31. BSTR Name,
  32. BSTR ClassName,
  33. BSTR Schema,
  34. REFCLSID rclsid,
  35. DWORD dwObjectState
  36. );
  37. STDMETHOD(GetInfo)(THIS_ BOOL fExplicit);
  38. protected:
  39. DWORD _dwObjectState;
  40. BSTR _Name;
  41. BSTR _ADsPath;
  42. BSTR _Parent;
  43. BSTR _ADsClass;
  44. BSTR _ADsGuid;
  45. BSTR _Schema;
  46. };
  47. #define ADS_OBJECT_BOUND 1
  48. #define ADS_OBJECT_UNBOUND 2