Leaked source code of windows server 2003
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.

84 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. wswksta.h
  5. Abstract:
  6. Private header file to be included by Workstation service module that
  7. implement the NetWksta APIs.
  8. Author:
  9. Rita Wong (ritaw) 05-Mar-1991
  10. Revision History:
  11. --*/
  12. #ifndef _WSWKSTA_INCLUDED_
  13. #define _WSWKSTA_INCLUDED_
  14. typedef struct _WSNAME_RECORD {
  15. LPTSTR Name;
  16. DWORD Size;
  17. BOOL IsAdded;
  18. } WSNAME_RECORD, *PWSNAME_RECORD;
  19. typedef struct _WSPER_USER_INFO {
  20. PMSV1_0_GETUSERINFO_RESPONSE LsaUserInfo;
  21. PDGRECEIVE_NAMES DgrNames;
  22. DWORD DgrNamesCount;
  23. } WSPER_USER_INFO, *PWSPER_USER_INFO;
  24. #define DGR_NAME_DELETED (DGRECEIVER_NAME_TYPE) MAXULONG
  25. #define SYSTEM_INFO_FIXED_LENGTH(Level) \
  26. (DWORD)((Level == 102) ? sizeof(WKSTA_INFO_102) : \
  27. sizeof(WKSTA_INFO_101))
  28. #define SET_SYSTEM_INFO_POINTER(WkstaInfo, ResultBuffer) \
  29. WkstaInfo->WkstaInfo100 = (PWKSTA_INFO_100) ResultBuffer;
  30. #define SET_USER_INFO_POINTER(UserInfo, ResultBuffer) \
  31. UserInfo->UserInfo0 = (PWKSTA_USER_INFO_0) ResultBuffer;
  32. #define SET_TRANSPORT_ENUM_POINTER(TransportInfo, ResultBuffer, NumRead) \
  33. { \
  34. if (TransportInfo->WkstaTransportInfo.Level0 != NULL) { \
  35. TransportInfo->WkstaTransportInfo.Level0->Buffer = \
  36. (PWKSTA_TRANSPORT_INFO_0) ResultBuffer; \
  37. TransportInfo->WkstaTransportInfo.Level0->EntriesRead = NumRead; \
  38. } \
  39. }
  40. //
  41. // Length of fixed size portion of a user info structure
  42. //
  43. #define USER_FIXED_LENGTH(Level) \
  44. (DWORD) \
  45. ((Level == 0) ? sizeof(WKSTA_USER_INFO_0) : \
  46. ((Level == 1) ? sizeof(WKSTA_USER_INFO_1) : \
  47. sizeof(WKSTA_USER_INFO_1101)))
  48. #define FIXED_PLUS_LSA_SIZE(Level, UserNameSize, LogonDomainSize, \
  49. LogonServerSize) \
  50. (DWORD) \
  51. ((Level == 0) ? UserNameSize + sizeof(WKSTA_USER_INFO_0) : \
  52. UserNameSize + LogonDomainSize + LogonServerSize + \
  53. sizeof(WKSTA_USER_INFO_1))
  54. NET_API_STATUS
  55. WsUpdateRedirToMatchWksta(
  56. IN DWORD Parmnum,
  57. OUT LPDWORD ErrorParameter OPTIONAL
  58. );
  59. #endif // _WSWKSTA_INCLUDED_
  60.