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.

103 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. cluspw.h
  5. Abstract:
  6. header file for cluster password utility
  7. Author:
  8. Charlie Wickham (charlwi) 26-Jul-1999
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. //
  14. // general defines
  15. //
  16. #define TrueOrFalse( arg ) (( arg ) ? "TRUE" : "FALSE")
  17. #define CLUSPW_DISPLAY_NAME L"Cluster Password Utility"
  18. #define CLUSPW_SERVICE_NAME L"cluspass"
  19. #define CLUWPW_SERVICE_BINARY_NAME L"cluspwsvc.exe"
  20. //
  21. // used to indicate severity of output msgs
  22. //
  23. typedef enum _MSG_SEVERITY {
  24. MsgSeverityFatal = 1,
  25. MsgSeverityInfo,
  26. MsgSeverityVerbose
  27. } MSG_SEVERITY;
  28. //
  29. // msgs sent back by clients to inform us of final status
  30. //
  31. #define MAX_PIPE_MSG 512
  32. typedef enum _MSG_TYPE {
  33. MsgTypeFinalStatus = 1,
  34. MsgTypeString
  35. } MSG_TYPE;
  36. typedef struct _PIPE_RESULT_MSG {
  37. MSG_TYPE MsgType;
  38. DWORD Status;
  39. WCHAR NodeName[ MAX_COMPUTERNAME_LENGTH ];
  40. MSG_SEVERITY Severity;
  41. CHAR MsgBuf[ MAX_PIPE_MSG ];
  42. } PIPE_RESULT_MSG, *PPIPE_RESULT_MSG;
  43. //
  44. // global defs
  45. //
  46. extern WCHAR NodeName[ MAX_COMPUTERNAME_LENGTH + 1 ];
  47. extern LPWSTR ResultPipeName;
  48. extern HANDLE PipeHandle;
  49. extern LPWSTR UserName;
  50. extern LPWSTR DomainName;
  51. extern LPWSTR NewPassword;
  52. //
  53. // func protos
  54. //
  55. VOID
  56. PrintMsg(
  57. MSG_SEVERITY Severity,
  58. LPSTR FormatString,
  59. ...
  60. );
  61. DWORD
  62. ChangeCachedPassword(
  63. IN LPWSTR AccountName,
  64. IN LPWSTR DomainName,
  65. IN LPWSTR NewPassword
  66. );
  67. VOID
  68. ServiceStartup(
  69. VOID
  70. );
  71. DWORD
  72. ParseArgs(
  73. INT argc,
  74. WCHAR *argv[]
  75. );
  76. /* end cluspw.h */