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.

113 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. VARIANT var
  20. );
  21. private:
  22. ObjectTypeList FAR *_pObjList;
  23. NWCONN_HANDLE _hConn;
  24. NWOBJ_ID _dwUserResumeObjectID;
  25. NWOBJ_ID _dwGroupResumeObjectID;
  26. NWOBJ_ID _dwPrinterResumeObjectID;
  27. BOOL _fFileServiceOnce;
  28. BSTR _ComputerName;
  29. BSTR _ADsPath;
  30. HRESULT
  31. CNWCOMPATComputerEnum::GetUserObject(
  32. IDispatch ** ppDispatch
  33. );
  34. HRESULT
  35. CNWCOMPATComputerEnum::GetGroupObject(
  36. IDispatch ** ppDispatch
  37. );
  38. HRESULT
  39. CNWCOMPATComputerEnum::GetFileServiceObject(
  40. IDispatch ** ppDispatch
  41. );
  42. HRESULT
  43. CNWCOMPATComputerEnum::GetPrinterObject(
  44. IDispatch ** ppDispatch
  45. );
  46. HRESULT
  47. CNWCOMPATComputerEnum::EnumUsers(
  48. ULONG cElements,
  49. VARIANT FAR* pvar,
  50. ULONG FAR* pcElementFetched
  51. );
  52. HRESULT
  53. CNWCOMPATComputerEnum::EnumGroups(
  54. ULONG cElements,
  55. VARIANT FAR* pvar,
  56. ULONG FAR* pcElementFetched
  57. );
  58. HRESULT
  59. CNWCOMPATComputerEnum::EnumFileServices(
  60. ULONG cElements,
  61. VARIANT FAR* pvar,
  62. ULONG FAR* pcElementFetched
  63. );
  64. HRESULT
  65. CNWCOMPATComputerEnum::EnumPrinters(
  66. ULONG cElements,
  67. VARIANT FAR* pvar,
  68. ULONG FAR* pcElementFetched
  69. );
  70. HRESULT
  71. CNWCOMPATComputerEnum::EnumObjects(
  72. DWORD ObjectType,
  73. ULONG cElements,
  74. VARIANT FAR * pvar,
  75. ULONG FAR * pcElementFetched
  76. );
  77. STDMETHOD(Next)(ULONG cElements,
  78. VARIANT FAR* pvar,
  79. ULONG FAR* pcElementFetched);
  80. };