#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <winreg.h>
#include <stdio.h>
#include <stdlib.h>
#include <pstypes.h>
Go to the source code of this file.
◆ DEST_IMAGE
◆ DEST_KERNEL
◆ DEST_REGISTRY
◆ WIN32_NO_STATUS
◆ ImageFile_Execute()
INT ImageFile_Execute |
( |
| ) |
|
Definition at line 251 of file imagefile.c.
252{
254 {
256 }
257 else
258 {
260 }
261
262 return 0;
263}
static VOID DisplayStatus(VOID)
static DWORD OptionsRemove
static VOID ModifyStatus(VOID)
Referenced by wmain().
◆ ImageFile_ParseCmdline()
Definition at line 207 of file imagefile.c.
208{
210 {
212 {
214 }
215 else if (
argv[
i][0] ==
'+')
216 {
218 {
221 }
223 }
224 else if (
argv[
i][0] ==
'-')
225 {
227 {
230 }
232 }
233 else
234 {
239 }
240 }
241
243 {
246 }
247
249}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static DWORD FindFlag(PCWSTR Name, WORD Dest)
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
Referenced by ParseCmdline().
◆ OpenImageFileExecOptions()
Definition at line 16 of file gflags.c.
17{
19 HKEY HandleKey, HandleSubKey;
20
23 {
24 wprintf(
L"OpenIFEO: RegOpenKeyEx failed (%d)\n", Ret);
26 }
27
29 {
32 }
33
36
38 {
39 wprintf(
L"OpenIFEO: RegCreateKeyEx failed (%d)\n", Ret);
41 }
44}
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
const WCHAR ImageExecOptionsString[]
static const char * ImageName
#define REG_OPTION_NON_VOLATILE
#define HKEY_LOCAL_MACHINE
Referenced by DisplayStatus(), and ModifyStatus().
◆ PageHeap_Execute()
Definition at line 295 of file pageheap.c.
296{
298 {
300 }
301 else
302 {
304 }
305
306 return 0;
307}
static VOID DisplayStatus(VOID)
static VOID ModifyStatus(VOID)
Referenced by wmain().
◆ PageHeap_ParseCmdline()
Definition at line 244 of file pageheap.c.
245{
247 {
249 {
251 {
253 }
255 {
257 }
259 {
261 }
262 }
264 {
266 }
267 else
268 {
271 }
272 }
273
275 {
276 wprintf(
L"ENABLE and DISABLED cannot be set together\n");
278 }
279
281 {
282 wprintf(
L"Can't ENABLE or DISABLE with no image\n");
284 }
285
287 {
288 wprintf(
L"Cannot deal with full traces with no other indication\n");
290 }
291
293}
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
Referenced by ParseCmdline().
◆ PrintFlags()
Definition at line 67 of file imagefile.c.
68{
70
72 {
73 if (!Dest || (
g_Flags[
n].wDest & Dest))
74 {
76 {
78 }
79 }
80 }
81}
UINT NTAPI GlobalFlags(HGLOBAL hMem)
static const FlagInfo g_Flags[]
Referenced by ShowStatus(), and wmain().
◆ ReadSZFlagsFromRegistry()
Definition at line 47 of file gflags.c.
48{
51
55 {
57 }
58
60}
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
_Must_inspect_result_ _In_ ULONG Flags
Referenced by DisplayImageInfo(), DisplayStatus(), and ModifyStatus().
◆ ImageExecOptionsString