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.

27 lines
1.0 KiB

  1. #include <windows.h>
  2. #include <Shellapi.h>
  3. #include <strsafe.h>
  4. // flag values for CheckCommandLineOptions return value
  5. #define FLAG_USAGE (0x0001)
  6. #define FLAG_UNATTENDED_INSTALL (0x0002)
  7. #define FLAG_UNATTENDED_PATH_PROVIDED (0x0004)
  8. #define FLAG_TOTALLY_QUIET (0x0008)
  9. #define FLAG_ERROR (0x7000)
  10. #define FLAG_FATAL_ERROR (0x8000)
  11. // macros to set/check/clear flag values
  12. #define SET_FLAG(x,y) (x |= y)
  13. #define CLEAR_FLAG(x,y) (x &= (~y))
  14. #define IS_FLAG_SET(x,y) (x & y)
  15. // regkey and default value
  16. #define SYMBOLS_REGKEY_ROOT HKEY_CURRENT_USER
  17. #define SYMBOLS_REGKEY_PATH L"SOFTWARE\\Microsoft\\Symbols\\Directories"
  18. #define SYMBOLS_REGKEY L"Symbol Dir"
  19. #define DEFAULT_INSTALL_PATH L"%WINDIR%\\symbols"
  20. // function for parsing the command line parameters
  21. DWORD WINAPI CheckCommandLineOptions(INT ArgC, LPWSTR* ArgVW);