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.

65 lines
1.5 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. who.h
  5. Abstract:
  6. This module contains the macros, user defined structures & function
  7. definitions needed by whoami.cpp, wsuser.cpp, wssid.cpp and
  8. wspriv.cppfiles.
  9. Authors:
  10. Christophe Robert
  11. Revision History:
  12. 02-July-2001 : Updated by Wipro Technologies.
  13. --*/
  14. // Options
  15. #define MAX_INUSE_OPTIONS 3
  16. #define OI_USAGE 0
  17. #define OI_DEFAULT 1
  18. #define OI_CONFIRM 2
  19. #define STRING_NAME1 L"\\VarFileInfo\\Translation"
  20. #define STRING_NAME2 L"\\StringFileInfo\\%04x%04x\\FileVersion"
  21. #define VER_NA L"Not Applicable"
  22. //#define TRIM_SPACES TEXT(" \0")
  23. #define EXIT_SUCCESS 0
  24. #define EXIT_FAILURE 1
  25. #define EXIT_ON_CANCEL 3
  26. #define EXIT_ON_ERROR 4
  27. #define COL_FORMAT_STRING L"%s"
  28. #define COL_FORMAT_HEX L"%d"
  29. #define COMMA_STR L", "
  30. #define BACK_SLASH L"\\"
  31. #define SECURITY_PRIV_NAME L"SeSecurityPrivilege"
  32. struct LANGANDCODEPAGE {
  33. WORD wLanguage;
  34. WORD wCodePage;
  35. } *lpTranslate;
  36. // function prototypes
  37. BOOL ReplaceFileInUse( IN LPWSTR pwszSource, IN LPWSTR pwszDestination, IN LPWSTR pwszSourceFullPath, IN LPWSTR pwszDestFullPath, BOOL bConfirm, IN LPWSTR pwszSysName );
  38. DWORD DisplayFileInfo( IN LPWSTR pwszFile, IN LPWSTR pwszFileFullPath , BOOL bFlag);
  39. DWORD ConfirmInput ( VOID );
  40. BOOL SetPrivilege(IN LPWSTR szSystem);
  41. //VOID DisplayErrorMsg(IN DWORD dw);
  42. VOID DisplayHelp ( VOID );