28 lines
1,012 B
C
28 lines
1,012 B
C
|
#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);
|
||
|
|
||
|
|