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.

105 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991-92 Microsoft Corporation
  3. Module Name:
  4. wsconfig.h
  5. Abstract:
  6. Private header file to be included by Workstation service modules that
  7. need to load Workstation configuration information.
  8. Author:
  9. Rita Wong (ritaw) 22-May-1991
  10. Revision History:
  11. --*/
  12. #ifndef _WSCONFIG_INCLUDED_
  13. #define _WSCONFIG_INCLUDED_
  14. #include <config.h> // LPNET_CONFIG_HANDLE.
  15. typedef enum _DATATYPE {
  16. BooleanType,
  17. DWordType
  18. } DATATYPE, *PDATATYPE;
  19. typedef struct _WS_REDIR_FIELDS {
  20. LPTSTR Keyword;
  21. LPDWORD FieldPtr;
  22. DWORD Default;
  23. DWORD Minimum;
  24. DWORD Maximum;
  25. DATATYPE DataType;
  26. DWORD Parmnum;
  27. } WS_REDIR_FIELDS, *PWS_REDIR_FIELDS;
  28. //
  29. // Configuration information. Reading and writing to this global
  30. // structure requires that the resource be acquired first.
  31. //
  32. typedef struct _WSCONFIGURATION_INFO {
  33. RTL_RESOURCE ConfigResource; // To serialize access to config
  34. // fields.
  35. TCHAR WsComputerName[MAX_PATH + 1];
  36. DWORD WsComputerNameLength;
  37. TCHAR WsPrimaryDomainName[DNLEN + 1];
  38. DWORD WsPrimaryDomainNameLength;
  39. DWORD RedirectorPlatform;
  40. DWORD MajorVersion;
  41. DWORD MinorVersion;
  42. WKSTA_INFO_502 WsConfigBuf;
  43. PWS_REDIR_FIELDS WsConfigFields;
  44. } WSCONFIGURATION_INFO, *PWSCONFIGURATION_INFO;
  45. extern WSCONFIGURATION_INFO WsInfo;
  46. #define WSBUF WsInfo.WsConfigBuf
  47. extern BOOLEAN WsBrowserPresent;
  48. NET_API_STATUS
  49. WsGetWorkstationConfiguration(
  50. VOID
  51. );
  52. NET_API_STATUS
  53. WsBindToTransports(
  54. VOID
  55. );
  56. NET_API_STATUS
  57. WsAddDomains(
  58. VOID
  59. );
  60. VOID
  61. WsUpdateWkstaToMatchRegistry(
  62. IN LPNET_CONFIG_HANDLE WorkstationSection,
  63. IN BOOL IsWkstaInit
  64. );
  65. VOID
  66. WsLogEvent(
  67. DWORD MessageId,
  68. WORD EventType,
  69. DWORD NumberOfSubStrings,
  70. LPWSTR *SubStrings,
  71. DWORD ErrorCode
  72. );
  73. NET_API_STATUS
  74. WsSetWorkStationDomainName(
  75. VOID
  76. );
  77. #endif
  78.