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.

111 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: grputils.hxx
  7. //
  8. // Contents: Public header file for all oleds client code
  9. //
  10. // Functions:
  11. //
  12. // History: 25-Oct-94 KrishnaG Created.
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef _GRPUTILS_
  16. #define _GRPUTILS_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. typedef struct _computer_group_member{
  21. ULONG Type;
  22. LPWSTR Parent;
  23. LPWSTR Computer;
  24. LPWSTR Name;
  25. }COMPUTER_GROUP_MEMBER, *PCOMPUTER_GROUP_MEMBER, * LPCOMPUTER_GROUP_MEMBER;
  26. typedef struct _ini_comp_group{
  27. DWORD _dwCurrentObject;
  28. LPWSTR szComputerName;
  29. LPWSTR szGroupName;
  30. LPBYTE _pBuffer;
  31. NWCONN_HANDLE _hConn;
  32. }INI_COMP_GROUP, *PINI_COMP_GROUP, *LPINI_COMP_GROUP;
  33. BOOL
  34. NWCOMPATComputerGroupOpen(
  35. LPWSTR szComputerName,
  36. LPWSTR szGroupName,
  37. CCredentials &Credentials,
  38. PHANDLE phGroup
  39. );
  40. BOOL
  41. NWCOMPATComputerGroupEnum(
  42. HANDLE hGroup,
  43. DWORD dwRequested,
  44. LPBYTE * ppBuffer,
  45. PDWORD pdwReturned
  46. );
  47. BOOL
  48. NWCOMPATComputerGroupGetObject(
  49. HANDLE hGroup,
  50. LPCOMPUTER_GROUP_MEMBER * ppGroupMember
  51. );
  52. BOOL
  53. NWCOMPATComputerGroupClose(
  54. HANDLE hGroup
  55. );
  56. void
  57. FreeIniCompGroup(
  58. PINI_COMP_GROUP pIniCompGrp
  59. );
  60. BOOL
  61. ComputeComputerGroupDataSize(
  62. LPCOMPUTER_GROUP_MEMBER * ppGroupMembers,
  63. DWORD dwReturned,
  64. PDWORD pdwSize
  65. );
  66. LPBYTE
  67. CopyIniCompGroupToCompGroup(
  68. LPCOMPUTER_GROUP_MEMBER pIntCompGrp,
  69. LPBYTE pExtCompGrp,
  70. LPBYTE pEnd
  71. );
  72. void
  73. FreeIntCompGroup(
  74. LPCOMPUTER_GROUP_MEMBER pCompGroupMember
  75. );
  76. BOOL
  77. BuildComputerGroupMember(
  78. HANDLE hGroup,
  79. DWORD dwUserID,
  80. LPCOMPUTER_GROUP_MEMBER * ppGroupMember
  81. );
  82. LPBYTE
  83. PackStrings(
  84. LPWSTR *pSource,
  85. LPBYTE pDest,
  86. DWORD *DestOffsets,
  87. LPBYTE pEnd
  88. );
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92. #endif // _GRPUTILS_