27#define TAG_OS_ITEM 'tISO'
53 CHAR DefaultOSText[80];
59 PCHAR TitleStart, TitleEnd;
63 CHAR SettingName[260];
64 CHAR SettingValue[260];
66 CHAR TempBuffer[
sizeof(SettingValue)/
sizeof(
CHAR)];
82 if (!DefaultOSName || !*DefaultOSName)
84 if ((FrLdrSectionId != 0) &&
87 DefaultOSName = DefaultOSText;
95 SettingName,
sizeof(SettingName),
96 SettingValue,
sizeof(SettingValue));
99 ERR(
"Invalid OS entry %lu, skipping.\n",
i);
104 TitleStart = SettingValue;
106 while (*TitleStart ==
' ' || *TitleStart ==
'\t' || *TitleStart ==
'"')
108 TitleEnd = TitleStart;
110 while (*TitleEnd !=
ANSI_NULL && *TitleEnd !=
'"')
121 while (*TitleEnd ==
' ' || *TitleEnd ==
'\t' || *TitleEnd ==
'"')
124 OsLoadOptions = (*TitleEnd ? TitleEnd :
NULL);
133 if (DefaultOSName &&
_stricmp(DefaultOSName, SettingName) == 0)
136 DefaultOSName =
NULL;
206 "BootSectorFile%u%u%u%u%u%u",
213 "Windows%u%u%u%u%u%u",
225 ERR(
"Could not convert legacy OS entry %lu, skipping.\n",
i);
234 ERR(
"Could not convert legacy OS entry %lu, skipping.\n",
i);
242 ERR(
"Could not convert legacy OS entry %lu, skipping.\n",
i);
254 ERR(
"Could not convert legacy OS entry %lu, skipping.\n",
i);
262 ERR(
"Could not fixup the BootType entry for OS '%s', ignoring.\n", SettingName);
269 if (HadSection && OsLoadOptions && *OsLoadOptions)
274 TRACE(
"No 'Options' value found for OS '%s', ignoring.\n", SettingName);
282 ERR(
"Could not modify the options for OS '%s', ignoring.\n", SettingName);
293 *OperatingSystemCount =
Count;
294 *DefaultOperatingSystem = DefaultOS;
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
TIMEINFO * ArcGetTime(VOID)
#define DBG_DEFAULT_CHANNEL(ch)
ARC_STATUS ArcClose(ULONG FileId)
ARC_STATUS ArcOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId)
FORCEINLINE PVOID FrLdrHeapAlloc(SIZE_T MemorySize, ULONG Tag)
PCSTR CmdLineGetDefaultOS(VOID)
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
BOOLEAN IniAddSection(PCSTR SectionName, ULONG_PTR *SectionId)
ULONG IniGetNumSectionItems(ULONG_PTR SectionId)
BOOLEAN IniAddSettingValueToSection(ULONG_PTR SectionId, PCSTR SettingName, PCSTR SettingValue)
BOOLEAN IniModifySettingValue(ULONG_PTR SectionId, PCSTR SettingName, PCSTR SettingValue)
BOOLEAN IniReadSettingByNumber(ULONG_PTR SectionId, ULONG SettingNumber, PCHAR SettingName, ULONG NameSize, PCHAR SettingValue, ULONG ValueSize)
BOOLEAN IniReadSettingByName(ULONG_PTR SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize)
BOOLEAN IniOpenSection(PCSTR SectionName, ULONG_PTR *SectionId)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
NTSTRSAFEAPI RtlStringCbCatA(_Inout_updates_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ NTSTRSAFE_PCSTR pszSrc)
NTSTRSAFEVAPI RtlStringCbPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat,...)
NTSTRSAFEAPI RtlStringCbCopyA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ NTSTRSAFE_PCSTR pszSrc)
static PCSTR CopyString(PCSTR Source)
OperatingSystemItem * InitOperatingSystemList(IN ULONG_PTR FrLdrSectionId, OUT PULONG OperatingSystemCount, OUT PULONG DefaultOperatingSystem)