35 TRACE(
"IniOpenSection() SectionName = %s\n", SectionName);
45 if (
_stricmp(SectionName, Section->SectionName) == 0)
50 TRACE(
"IniOpenSection() Found it! SectionId = 0x%x\n", SectionId);
55 TRACE(
"IniOpenSection() Section not found.\n");
64 TRACE(
"IniGetNumSectionItems() SectionId = 0x%x\n", SectionId);
65 TRACE(
"IniGetNumSectionItems() Item count = %d\n", Section->SectionItemCount);
67 return Section->SectionItemCount;
77 for (
Entry = Section->SectionItemList.Flink;
78 Entry != &Section->SectionItemList;
84 if (SettingNumber == 0)
124 TRACE(
".001 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
126 TRACE(
"IniReadSettingByNumber() SectionId = 0x%x\n", SectionId);
132 TRACE(
"IniReadSettingByNumber() Setting number %d not found.\n", SettingNumber);
136 TRACE(
"IniReadSettingByNumber() Setting number %d found.\n", SettingNumber);
137 TRACE(
"IniReadSettingByNumber() Setting name = %s\n", SectionItem->
ItemName);
138 TRACE(
"IniReadSettingByNumber() Setting value = %s\n", SectionItem->
ItemValue);
140 TRACE(
"1 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
141 TRACE(
"2 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
143 SettingName[NameSize - 1] =
'\0';
144 TRACE(
"3 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
146 SettingValue[ValueSize - 1] =
'\0';
147 TRACE(
"4 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
160 TRACE(
"IniReadSettingByName() SectionId = 0x%x\n", SectionId);
163 for (
Entry = Section->SectionItemList.Flink;
164 Entry != &Section->SectionItemList;
172 TRACE(
"IniReadSettingByName() Setting \'%s\' found.\n", SettingName);
173 TRACE(
"IniReadSettingByName() Setting value = %s\n", SectionItem->
ItemValue);
182 WARN(
"IniReadSettingByName() Setting \'%s\' not found.\n", SettingName);
202 if (!Section->SectionName)
209 strcpy(Section->SectionName, SectionName);
295 Section->SectionItemCount++;
309 for (
Entry = Section->SectionItemList.Flink;
310 Entry != &Section->SectionItemList;
323 if (
Entry == &Section->SectionItemList)
ACPI_SIZE strlen(const char *String)
#define DbgDumpBuffer(mask, buf, len)
#define DBG_DEFAULT_CHANNEL(ch)
VOID FrLdrTempFree(PVOID Allocation, ULONG Tag)
PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
#define InsertTailList(ListHead, Entry)
#define InsertHeadList(ListHead, Entry)
#define IsListEmpty(ListHead)
#define RemoveHeadList(ListHead)
#define InitializeListHead(ListHead)
struct _INI_SECTION * PINI_SECTION
BOOLEAN IniAddSection(PCSTR SectionName, ULONG_PTR *SectionId)
ULONG IniGetSectionSettingValueSize(ULONG_PTR SectionId, ULONG SettingIndex)
ULONG IniGetNumSectionItems(ULONG_PTR SectionId)
BOOLEAN IniAddSettingValueToSection(ULONG_PTR SectionId, PCSTR SettingName, PCSTR SettingValue)
BOOLEAN IniModifySettingValue(ULONG_PTR SectionId, PCSTR SettingName, PCSTR SettingValue)
ULONG IniGetSectionSettingNameSize(ULONG_PTR SectionId, ULONG SettingIndex)
PINI_SECTION_ITEM IniGetSettingByNumber(ULONG_PTR SectionId, ULONG SettingNumber)
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)
PLIST_ENTRY IniGetFileSectionListHead(VOID)
VOID IniFreeSection(PINI_SECTION Section)
ULONG IniFileSectionCount
#define TAG_INI_SECTION_ITEM
LIST_ENTRY IniFileSectionListHead
base of all file and directory entries
struct _LIST_ENTRY * Flink
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
_In_ WDFUSBINTERFACE _In_ UCHAR SettingIndex