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.

99 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1992-1993 Microsoft Corporation
  3. Module Name:
  4. nwreg.h
  5. Abstract:
  6. Header which specifies the misc registry parameters and helper
  7. routines used by the workstation service.
  8. Author:
  9. Rita Wong (ritaw) 22-Mar-1993
  10. Revision History:
  11. ChuckC 11-Dec-93 Split off the registry names to nwrnames.h
  12. --*/
  13. #ifndef _NWREG_INCLUDED_
  14. #define _NWREG_INCLUDED_
  15. #include <nwrnames.h>
  16. //
  17. // Default print option
  18. //
  19. #define NW_PRINT_OPTION_DEFAULT 0x98
  20. #define NW_GATEWAY_PRINT_OPTION_DEFAULT 0x88
  21. #define NW_DOMAIN_USER_SEPARATOR L'*'
  22. #define NW_DOMAIN_USER_SEPARATOR_STR L"*"
  23. #define NW_MAX_LOGON_ID_LEN 17
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. DWORD
  28. NwReadRegValue(
  29. IN HKEY Key,
  30. IN LPWSTR ValueName,
  31. OUT LPWSTR *Value
  32. );
  33. VOID
  34. NwLuidToWStr(
  35. IN PLUID LogonId,
  36. OUT LPWSTR LogonIdStr
  37. );
  38. VOID
  39. NwWStrToLuid(
  40. IN LPWSTR LogonIdStr,
  41. OUT PLUID LogonId
  42. );
  43. DWORD // Terminal Server
  44. NwDeleteInteractiveLogon(
  45. IN PLUID Id OPTIONAL
  46. );
  47. VOID
  48. NwDeleteCurrentUser(
  49. VOID
  50. );
  51. DWORD
  52. NwDeleteServiceLogon(
  53. IN PLUID Id OPTIONAL
  54. );
  55. DWORD
  56. NwpRegisterGatewayShare(
  57. IN LPWSTR ShareName,
  58. IN LPWSTR DriveName
  59. );
  60. DWORD
  61. NwpClearGatewayShare(
  62. IN LPWSTR ShareName
  63. );
  64. DWORD
  65. NwpCleanupGatewayShares(
  66. VOID
  67. );
  68. #ifdef __cplusplus
  69. } // extern "C"
  70. #endif
  71. #endif // _NWREG_INCLUDED_