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.

160 lines
1.3 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_CoreADsClass(BSTR * retval);
  14. HRESULT
  15. get_CoreGUID(BSTR * retval);
  16. DWORD
  17. CCoreADsObject::GetObjectState()
  18. {
  19. return(_dwObjectState);
  20. }
  21. void
  22. CCoreADsObject::SetObjectState(DWORD dwObjectState)
  23. {
  24. _dwObjectState = dwObjectState;
  25. }
  26. HRESULT
  27. InitializeCoreObject(
  28. BSTR Parent,
  29. BSTR Name,
  30. BSTR ClassName,
  31. REFCLSID rclsid,
  32. DWORD dwObjectState
  33. );
  34. STDMETHOD(GetInfo)(THIS_ DWORD dwApiLevel, BOOL fExplicit);
  35. protected:
  36. DWORD _dwObjectState;
  37. BSTR _Name;
  38. BSTR _ADsPath;
  39. BSTR _Parent;
  40. BSTR _ADsClass;
  41. BSTR _ADsGuid;
  42. };
  43. #define ADS_OBJECT_BOUND 1
  44. #define ADS_OBJECT_UNBOUND 2