Data Structures |
| struct | PUNICODE_STRING |
| struct | SECTIONKEY |
| struct | PSECTION |
| struct | ITEMS |
Defines |
| #define | N_CACHED_ITEMS 10 |
| #define | CurProfile (ItemsArray[0]) |
| #define | IS_ENTRY_COMMENT(str) ((str)[0] == ';') |
| #define | ParserIsSpace(c) (iswspace(c) || c == 0x1a) |
Typedefs |
| typedef LONG | NTSTATUS |
Enumerations |
| enum | ENCODING {
ENCODING_UTF8 = 1,
ENCODING_UTF16LE,
ENCODING_UTF16BE,
ENCODING_ANSI = 1,
ENCODING_UTF8,
ENCODING_UTF16LE,
ENCODING_UTF16BE
} |
Functions |
| void WINAPI | RtlInitUnicodeString (PUNICODE_STRING, PCWSTR) |
| NTSTATUS WINAPI | RtlUnicodeStringToInteger (const UNICODE_STRING *, ULONG, ULONG *) |
| BOOLEAN WINAPI | RtlIsTextUnicode (LPCVOID, INT, INT *) |
| static WCHAR * | memchrW (const WCHAR *ptr, WCHAR ch, size_t n) |
| static WCHAR * | memrchrW (const WCHAR *ptr, WCHAR ch, size_t n) |
| static void | ParserCopyEntry (LPWSTR buffer, LPCWSTR value, int len, BOOL strip_quote) |
| static void | ParserByteSwapShortBuffer (WCHAR *buffer, int len) |
| static void | ParserWriteMarker (HANDLE hFile, ENCODING encoding) |
| static void | ParserWriteLine (HANDLE hFile, WCHAR *szLine, int len, ENCODING encoding) |
| static void | ParserSave (HANDLE hFile, const SECTION *section, ENCODING encoding) |
| static void | ParserFree (SECTION *section) |
| static ENCODING | ParserDetectTextEncoding (const void *buffer, int *len) |
| static SECTION * | ParserLoad (HANDLE hFile, ENCODING *pEncoding) |
| static SECTIONKEY * | ParserFind (SECTION **section, LPCWSTR section_name, LPCWSTR key_name, BOOL create, BOOL create_always) |
| static BOOL | ParserFlushFile (void) |
| static void | ParserReleaseFile (void) |
| static BOOL | ParserOpen (LPCWSTR filename, BOOL write_access) |
| static INT | ParserGetSection (SECTION *section, LPCWSTR section_name, LPWSTR buffer, UINT len, BOOL return_values) |
| static INT | ParserInternalGetString (LPCWSTR section, LPCWSTR key_name, LPWSTR buffer, UINT len) |
| INT | ParserGetString (LPCWSTR Section, LPCWSTR ValueName, LPWSTR Buffer, UINT Len, LPCWSTR FileName) |
| UINT | ParserGetInt (LPCWSTR Section, LPCWSTR ValueName, LPCWSTR FileName) |
Variables |
| static const char | bom_utf8 [] = {0xEF,0xBB,0xBF} |
| static ITEMS * | ItemsArray [N_CACHED_ITEMS] = {NULL} |