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.

116 lines
2.1 KiB

  1. class FAR CNWCOMPATComputerEnum : public CNWCOMPATEnumVariant
  2. {
  3. public:
  4. CNWCOMPATComputerEnum(ObjectTypeList ObjList);
  5. CNWCOMPATComputerEnum();
  6. ~CNWCOMPATComputerEnum();
  7. HRESULT
  8. CNWCOMPATComputerEnum::EnumObjects(
  9. ULONG cElements,
  10. VARIANT FAR* pvar,
  11. ULONG FAR* pcElementFetched
  12. );
  13. static
  14. HRESULT
  15. CNWCOMPATComputerEnum::Create(
  16. CNWCOMPATComputerEnum FAR* FAR* ppenumvariant,
  17. BSTR ADsPath,
  18. BSTR ComputerName,
  19. CCredentials &Credentials,
  20. VARIANT var
  21. );
  22. private:
  23. ObjectTypeList FAR *_pObjList;
  24. NWCONN_HANDLE _hConn;
  25. NWOBJ_ID _dwUserResumeObjectID;
  26. NWOBJ_ID _dwGroupResumeObjectID;
  27. NWOBJ_ID _dwPrinterResumeObjectID;
  28. BOOL _fFileServiceOnce;
  29. BSTR _ComputerName;
  30. BSTR _ADsPath;
  31. CCredentials _Credentials;
  32. HRESULT
  33. CNWCOMPATComputerEnum::GetUserObject(
  34. IDispatch ** ppDispatch
  35. );
  36. HRESULT
  37. CNWCOMPATComputerEnum::GetGroupObject(
  38. IDispatch ** ppDispatch
  39. );
  40. HRESULT
  41. CNWCOMPATComputerEnum::GetFileServiceObject(
  42. IDispatch ** ppDispatch
  43. );
  44. HRESULT
  45. CNWCOMPATComputerEnum::GetPrinterObject(
  46. IDispatch ** ppDispatch
  47. );
  48. HRESULT
  49. CNWCOMPATComputerEnum::EnumUsers(
  50. ULONG cElements,
  51. VARIANT FAR* pvar,
  52. ULONG FAR* pcElementFetched
  53. );
  54. HRESULT
  55. CNWCOMPATComputerEnum::EnumGroups(
  56. ULONG cElements,
  57. VARIANT FAR* pvar,
  58. ULONG FAR* pcElementFetched
  59. );
  60. HRESULT
  61. CNWCOMPATComputerEnum::EnumFileServices(
  62. ULONG cElements,
  63. VARIANT FAR* pvar,
  64. ULONG FAR* pcElementFetched
  65. );
  66. HRESULT
  67. CNWCOMPATComputerEnum::EnumPrinters(
  68. ULONG cElements,
  69. VARIANT FAR* pvar,
  70. ULONG FAR* pcElementFetched
  71. );
  72. HRESULT
  73. CNWCOMPATComputerEnum::EnumObjects(
  74. DWORD ObjectType,
  75. ULONG cElements,
  76. VARIANT FAR * pvar,
  77. ULONG FAR * pcElementFetched
  78. );
  79. STDMETHOD(Next)(ULONG cElements,
  80. VARIANT FAR* pvar,
  81. ULONG FAR* pcElementFetched);
  82. };