30 TRACE(
"IniOpenSection() SectionName = %s\n", SectionName);
40 if (
_stricmp(SectionName, Section->SectionName) == 0)
45 TRACE(
"IniOpenSection() Found it! SectionId = 0x%x\n", SectionId);
50 TRACE(
"IniOpenSection() Section not found.\n");
59 TRACE(
"IniGetNumSectionItems() SectionId = 0x%x\n", SectionId);
60 TRACE(
"IniGetNumSectionItems() Item count = %d\n", Section->SectionItemCount);
62 return Section->SectionItemCount;
72 for (
Entry = Section->SectionItemList.Flink;
73 Entry != &Section->SectionItemList;
79 if (SettingNumber == 0)
119 TRACE(
".001 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
121 TRACE(
"IniReadSettingByNumber() SectionId = 0x%x\n", SectionId);
127 TRACE(
"IniReadSettingByNumber() Setting number %d not found.\n", SettingNumber);
131 TRACE(
"IniReadSettingByNumber() Setting number %d found.\n", SettingNumber);
132 TRACE(
"IniReadSettingByNumber() Setting name = %s\n", SectionItem->
ItemName);
133 TRACE(
"IniReadSettingByNumber() Setting value = %s\n", SectionItem->
ItemValue);
135 TRACE(
"1 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
136 TRACE(
"2 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
138 SettingName[NameSize - 1] =
'\0';
139 TRACE(
"3 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
141 SettingValue[ValueSize - 1] =
'\0';
142 TRACE(
"4 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
155 TRACE(
"IniReadSettingByName() SectionId = 0x%x\n", SectionId);
158 for (
Entry = Section->SectionItemList.Flink;
159 Entry != &Section->SectionItemList;
167 TRACE(
"IniReadSettingByName() Setting \'%s\' found.\n", SettingName);
168 TRACE(
"IniReadSettingByName() Setting value = %s\n", SectionItem->
ItemValue);
177 WARN(
"IniReadSettingByName() Setting \'%s\' not found.\n", SettingName);
197 if (!Section->SectionName)
204 strcpy(Section->SectionName, SectionName);
290 Section->SectionItemCount++;
304 for (
Entry = Section->SectionItemList.Flink;
305 Entry != &Section->SectionItemList;
318 if (
Entry == &Section->SectionItemList)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
#define DbgDumpBuffer(mask, buf, len)
#define DBG_DEFAULT_CHANNEL(ch)
FORCEINLINE PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
FORCEINLINE VOID FrLdrTempFree(PVOID Allocation, 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)
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