Source code of Windows XP (NT5)
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.

99 lines
2.0 KiB

  1. class CNWCOMPATComputer;
  2. class CNWCOMPATComputer : INHERIT_TRACKING,
  3. public CCoreADsObject,
  4. public ISupportErrorInfo,
  5. public IADsComputer,
  6. public IADsComputerOperations,
  7. public IADsContainer,
  8. public IADsPropertyList
  9. {
  10. public:
  11. //
  12. // IUnknown methods
  13. //
  14. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) ;
  15. DECLARE_STD_REFCOUNTING
  16. DECLARE_IDispatch_METHODS
  17. DECLARE_ISupportErrorInfo_METHODS
  18. DECLARE_IADs_METHODS
  19. DECLARE_IADsComputer_METHODS
  20. DECLARE_IADsComputerOperations_METHODS
  21. DECLARE_IADsContainer_METHODS
  22. DECLARE_IADsPropertyList_METHODS
  23. CNWCOMPATComputer::CNWCOMPATComputer();
  24. CNWCOMPATComputer::~CNWCOMPATComputer();
  25. static
  26. HRESULT
  27. CNWCOMPATComputer::CreateComputer(
  28. BSTR bstrParent,
  29. BSTR bstrComputerName,
  30. DWORD dwObjectState,
  31. REFIID riid,
  32. void **ppvObj
  33. );
  34. static
  35. HRESULT
  36. CNWCOMPATComputer::AllocateComputerObject(
  37. CNWCOMPATComputer ** ppComputer
  38. );
  39. HRESULT
  40. CNWCOMPATComputer::CreateObject();
  41. STDMETHOD(GetInfo)(THIS_ BOOL fExplicit, DWORD dwPropertyID) ;
  42. private:
  43. HRESULT
  44. CNWCOMPATComputer::ExplicitGetInfo(
  45. NWCONN_HANDLE hConn,
  46. BOOL fExplicit
  47. );
  48. HRESULT
  49. CNWCOMPATComputer::ImplicitGetInfo(
  50. NWCONN_HANDLE hConn,
  51. DWORD dwPropertyID,
  52. BOOL fExplicit
  53. );
  54. HRESULT
  55. CNWCOMPATComputer::GetProperty_Addresses(
  56. NWCONN_HANDLE hConn,
  57. BOOL fExplicit
  58. );
  59. HRESULT
  60. CNWCOMPATComputer::GetProperty_OperatingSystem(
  61. BOOL fExplicit
  62. );
  63. HRESULT
  64. CNWCOMPATComputer::GetProperty_OperatingSystemVersion(
  65. NWCONN_HANDLE hConn,
  66. BOOL fExplicit
  67. );
  68. protected:
  69. VARIANT _vFilter;
  70. CAggregatorDispMgr FAR * _pDispMgr;
  71. CADsExtMgr FAR * _pExtMgr;
  72. CPropertyCache * _pPropertyCache;
  73. };