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

#include <windows.h>
#include <Shellapi.h>
#include <strsafe.h>
// flag values for CheckCommandLineOptions return value
#define FLAG_USAGE (0x0001)
#define FLAG_UNATTENDED_INSTALL (0x0002)
#define FLAG_UNATTENDED_PATH_PROVIDED (0x0004)
#define FLAG_TOTALLY_QUIET (0x0008)
#define FLAG_ERROR (0x7000)
#define FLAG_FATAL_ERROR (0x8000)
// macros to set/check/clear flag values
#define SET_FLAG(x,y) (x |= y)
#define CLEAR_FLAG(x,y) (x &= (~y))
#define IS_FLAG_SET(x,y) (x & y)
// regkey and default value
#define SYMBOLS_REGKEY_ROOT HKEY_CURRENT_USER
#define SYMBOLS_REGKEY_PATH L"SOFTWARE\\Microsoft\\Symbols\\Directories"
#define SYMBOLS_REGKEY L"Symbol Dir"
#define DEFAULT_INSTALL_PATH L"%WINDIR%\\symbols"
// function for parsing the command line parameters
DWORD WINAPI CheckCommandLineOptions(INT ArgC, LPWSTR* ArgVW);