Go to the source code of this file.
◆ CmdLineParse()
Definition at line 23 of file settings.c.
25{
28
29
30
31
32
33
34
36 if (Setting)
37 {
38
39 Setting +=
sizeof(
"debug=") -
sizeof(
ANSI_NULL);
40 End =
strstr(Setting,
" ");
42
43
46
47
49 while (*Setting)
50 {
51 if (*Setting == ';') *Setting = ' ';
52 Setting++;
53 }
54
56 }
57
58
60 if (Setting)
61 {
64 }
65
66
68 if (Setting)
69 {
70
71 Setting +=
sizeof(
"defaultos=") -
sizeof(
ANSI_NULL);
72 End =
strstr(Setting,
" ");
74
75
78 }
79
80
82 if (Setting)
83 {
88 }
89
90
92 if (Setting)
93 {
97 }
98
99
101 if (Setting)
102 {
106 }
107
108
110}
char * strstr(char *String1, char *String2)
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
ACPI_SIZE strlen(const char *String)
static CCHAR DebugString[256]
static CCHAR DefaultOs[256]
static const WCHAR CmdLine[]
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
_In_ ULONG _In_ ULONG Offset
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTRSAFEAPI RtlStringCbCopyNA(_Out_writes_bytes_(cbDest) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_reads_bytes_(cbToCopy) STRSAFE_LPCSTR pszSrc, _In_ size_t cbToCopy)
_CRTIMP char *__cdecl _strupr(_Inout_z_ char *_String)
Referenced by LoadSettings().
◆ LoadSettings()
Definition at line 113 of file settings.c.
115{
116
117
119 {
121 return;
122 }
124 {
125
126 return;
127 }
128
130 PCSTR LoaderSections[] = {
131 "FreeLoader",
132 "Boot Loader",
133 "FlexBoot",
134 "MultiBoot",
135 };
136
137
138
139
141 {
142 for (
ULONG i = 0;
i <
sizeof(LoaderSections) /
sizeof(LoaderSections[0]);
i++)
143 {
144 PCSTR Section = LoaderSections[
i];
145
147 {
148 FoundLoaderSection =
TRUE;
149 break;
150 }
151 }
152
153 if (!FoundLoaderSection)
154 {
156 return;
157 }
158 }
159
160
163 {
165 }
166
167
168
170 {
171 CHAR TimeOutText[20];
174 TimeOutText, sizeof(TimeOutText)))
175 {
177 }
178 }
179
180
182 {
185 {
187 }
188 }
189}
VOID UiMessageBoxCritical(_In_ PCSTR MessageText)
static VOID CmdLineParse(_In_ PCSTR CmdLine)
#define IsListEmpty(ListHead)
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
LIST_ENTRY IniFileSectionListHead
BOOLEAN IniReadSettingByName(ULONG_PTR SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize)
BOOLEAN IniOpenSection(PCSTR SectionName, ULONG_PTR *SectionId)
◆ BootMgrInfo
◆ DebugString
◆ DefaultOs