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.

71 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. //maximum number of options
  15. #define MAX_COMMANDLINE_OPTIONS 10
  16. #define EXIT_SUCCESS 0
  17. #define EXIT_FAILURE 1
  18. #define OI_USAGE 0
  19. #define OI_USER 1
  20. #define OI_GROUPS 2
  21. #define OI_LOGONID 3
  22. #define OI_PRIV 4
  23. #define OI_ALL 5
  24. #define OI_UPN 6
  25. #define OI_FQDN 7
  26. #define OI_FORMAT 8
  27. #define OI_NOHEADER 9
  28. #define UPN_FORMAT 1
  29. #define FQDN_FORMAT 2
  30. #define USER_ONLY 3
  31. #define RETVALZERO 0
  32. #define COL_FORMAT_STRING L"%s"
  33. #define COL_FORMAT_HEX L"%d"
  34. #define FORMAT_TABLE L"TABLE"
  35. #define FORMAT_LIST L"LIST"
  36. #define FORMAT_CSV L"CSV"
  37. // function declarations
  38. VOID DisplayHelp ( VOID );
  39. BOOL ProcessOptions(
  40. IN DWORD argc,
  41. IN LPCWSTR argv[],
  42. OUT BOOL *pbUser,
  43. OUT BOOL *pbGroups,
  44. OUT BOOL *pbPriv,
  45. OUT BOOL *pbLogonId,
  46. OUT BOOL *pbAll,
  47. OUT BOOL *pbUpn,
  48. OUT BOOL *pbFqdn,
  49. OUT LPWSTR wszFormat,
  50. OUT DWORD *dwFormatActuals,
  51. OUT BOOL *pbUsage,
  52. OUT BOOL *pbNoHeader
  53. )