29 TRACE(
"IniOpenSection() SectionName = %s\n", SectionName);
41 TRACE(
"IniOpenSection() Found it! SectionId = 0x%x\n", SectionId);
49 TRACE(
"IniOpenSection() Section not found.\n");
58 TRACE(
"IniGetNumSectionItems() SectionId = 0x%x\n", SectionId);
74 if (SettingNumber == 0)
117 TRACE(
".001 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
119 TRACE(
"IniReadSettingByNumber() SectionId = 0x%x\n", SectionId);
125 TRACE(
"IniReadSettingByNumber() Setting number %d not found.\n", SettingNumber);
129 TRACE(
"IniReadSettingByNumber() Setting number %d found.\n", SettingNumber);
130 TRACE(
"IniReadSettingByNumber() Setting name = %s\n", SectionItem->
ItemName);
131 TRACE(
"IniReadSettingByNumber() Setting value = %s\n", SectionItem->
ItemValue);
133 TRACE(
"1 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
134 TRACE(
"2 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
136 SettingName[NameSize - 1] =
'\0';
137 TRACE(
"3 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
139 SettingValue[ValueSize - 1] =
'\0';
140 TRACE(
"4 NameSize = %d ValueSize = %d\n", NameSize, ValueSize);
152 TRACE(
"IniReadSettingByName() SectionId = 0x%x\n", SectionId);
161 TRACE(
"IniReadSettingByName() Setting \'%s\' found.\n", SettingName);
162 TRACE(
"IniReadSettingByName() Setting value = %s\n", SectionItem->
ItemValue);
174 WARN(
"IniReadSettingByName() Setting \'%s\' not found.\n", SettingName);
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)
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
struct INI_SECTION * PINI_SECTION
LIST_ENTRY IniFileSectionListHead
LIST_ENTRY SectionItemList
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