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.

102 lines
2.1 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. NW_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. CCredentials &Credentials,
  31. DWORD dwObjectState,
  32. REFIID riid,
  33. void **ppvObj
  34. );
  35. static
  36. HRESULT
  37. CNWCOMPATComputer::AllocateComputerObject(
  38. CNWCOMPATComputer ** ppComputer
  39. );
  40. HRESULT
  41. CNWCOMPATComputer::CreateObject();
  42. STDMETHOD(GetInfo)(THIS_ BOOL fExplicit, DWORD dwPropertyID) ;
  43. private:
  44. HRESULT
  45. CNWCOMPATComputer::ExplicitGetInfo(
  46. NWCONN_HANDLE hConn,
  47. BOOL fExplicit
  48. );
  49. HRESULT
  50. CNWCOMPATComputer::ImplicitGetInfo(
  51. NWCONN_HANDLE hConn,
  52. DWORD dwPropertyID,
  53. BOOL fExplicit
  54. );
  55. HRESULT
  56. CNWCOMPATComputer::GetProperty_Addresses(
  57. NWCONN_HANDLE hConn,
  58. BOOL fExplicit
  59. );
  60. HRESULT
  61. CNWCOMPATComputer::GetProperty_OperatingSystem(
  62. BOOL fExplicit
  63. );
  64. HRESULT
  65. CNWCOMPATComputer::GetProperty_OperatingSystemVersion(
  66. NWCONN_HANDLE hConn,
  67. BOOL fExplicit
  68. );
  69. protected:
  70. VARIANT _vFilter;
  71. CDispatchMgr FAR * _pDispMgr;
  72. CPropertyCache * _pPropertyCache;
  73. CCredentials _Credentials;
  74. NWCONN_HANDLE _hConn;
  75. };