ReactOS 0.4.15-dev-8621-g4b051b9
|
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "winerror.h"
#include "winternl.h"
#include "wine/unicode.h"
#include "wine/library.h"
#include "wine/debug.h"
Go to the source code of this file.
Classes | |
struct | tagPROFILEKEY |
struct | tagPROFILESECTION |
struct | PROFILE |
Macros | |
#define | N_CACHED_PROFILES 10 |
#define | CurProfile (MRUProfile[0]) |
#define | IS_ENTRY_COMMENT(str) ((str)[0] == ';') |
Typedefs | |
typedef struct tagPROFILEKEY | PROFILEKEY |
typedef struct tagPROFILESECTION | PROFILESECTION |
Enumerations | |
enum | ENCODING { ENCODING_ANSI = 0 , ENCODING_UTF16LE = 1 , ENCODING_UTF16BE = 2 , ENCODING_UTF8 = 3 , ENCODING_AUTO = -1 , ENCODING_ANSI = 0 , ENCODING_UTF16LE = 1 , ENCODING_UTF16BE = 2 , ENCODING_UTF8 = 3 , ENCODING_UTF8BOM = 4 , ENCODING_ANSI = 0 , ENCODING_UTF16LE = 1 , ENCODING_UTF16BE = 2 , ENCODING_UTF8 = 3 , ENCODING_ANSI = 1 , ENCODING_UTF8 , ENCODING_UTF16LE , ENCODING_UTF16BE } |
Variables | |
static const char | bom_utf8 [] = {0xEF,0xBB,0xBF} |
static PROFILE * | MRUProfile [N_CACHED_PROFILES] ={NULL} |
static const WCHAR | emptystringW [] = {0} |
static const WCHAR | wininiW [] = { 'w','i','n','.','i','n','i',0 } |
static CRITICAL_SECTION | PROFILE_CritSect = { &critsect_debug, -1, 0, 0, 0, 0 } |
static CRITICAL_SECTION_DEBUG | critsect_debug |
static const char | hex [16] = "0123456789ABCDEF" |
#define CurProfile (MRUProfile[0]) |
typedef struct tagPROFILEKEY PROFILEKEY |
typedef struct tagPROFILESECTION PROFILESECTION |
Definition at line 1326 of file profile.c.
Referenced by cmpEnvironment(), dump_child_(), GetProfileIntA(), ok_child_int(), okChildInt_(), okChildIntBroken_(), OnCreate(), shell_execute_(), shell_execute_ex_(), test_DetachConsoleHandles(), test_profile_delete_on_close(), test_profile_int(), and test_profile_refresh().
Definition at line 1297 of file profile.c.
Referenced by getIconLocationForFolder(), GetPrivateProfileIntA(), GetProfileIntW(), and CFileDefExt::InitFolderCustomizePage().
Definition at line 1381 of file profile.c.
Referenced by GetProfileSectionA(), ICInfo(), and test_profile_sections().
Definition at line 1660 of file profile.c.
Referenced by test_profile_sections_names().
Definition at line 1641 of file profile.c.
Referenced by GetPrivateProfileSectionNamesA(), MAIN_LoadSettings(), and test_profile_sections_names().
INT WINAPI GetPrivateProfileSectionW | ( | LPCWSTR | section, |
LPWSTR | buffer, | ||
DWORD | len, | ||
LPCWSTR | filename | ||
) |
Definition at line 1351 of file profile.c.
Referenced by GetPrivateProfileSectionA(), GetProfileSectionW(), MAIN_LoadSettings(), MSACM_RegisterAllDrivers(), and CConfigParser::ReadSection().
INT WINAPI GetPrivateProfileStringA | ( | LPCSTR | section, |
LPCSTR | entry, | ||
LPCSTR | def_val, | ||
LPSTR | buffer, | ||
UINT | len, | ||
LPCSTR | filename | ||
) |
Definition at line 1204 of file profile.c.
Referenced by getChildString(), getChildStringW(), GetProfileStringA(), ini_absent(), ini_present(), test_GetPrivateProfileString(), test_ini_values(), test_profile_existing(), and test_profile_string().
INT WINAPI GetPrivateProfileStringW | ( | LPCWSTR | section, |
LPCWSTR | entry, | ||
LPCWSTR | def_val, | ||
LPWSTR | buffer, | ||
UINT | len, | ||
LPCWSTR | filename | ||
) |
Definition at line 1142 of file profile.c.
Referenced by AllSysInfo(), DRIVER_GetLibName(), get_profile_string(), CFSFolder::GetCustomViewInfo(), getIconLocationForDrive(), GetINIValue(), getLabelForDrive(), GetPrivateProfileIntW(), GetPrivateProfileStringA(), GetProfileStringW(), getShellClassInfo(), CFileDefExt::InitFolderCustomizePage(), install_inf_file(), ITERATE_WriteIniValues(), MCI_SysInfo(), MCIWndProc(), ParseUnattend(), process_hook_section(), search_ini(), SHELL32_GetCLSIDForDirectory(), SHGetIniStringUTF7W(), SHGetIniStringW(), SHPropertyBag_OnIniFile(), test_GetPrivateProfileString(), test_profile_string(), and wWinMain().
BOOL WINAPI GetPrivateProfileStructA | ( | LPCSTR | section, |
LPCSTR | key, | ||
LPVOID | buffer, | ||
UINT | len, | ||
LPCSTR | filename | ||
) |
Definition at line 1769 of file profile.c.
BOOL WINAPI GetPrivateProfileStructW | ( | LPCWSTR | section, |
LPCWSTR | key, | ||
LPVOID | buf, | ||
UINT | len, | ||
LPCWSTR | filename | ||
) |
Definition at line 1696 of file profile.c.
Referenced by GetPrivateProfileStructA().
Definition at line 1121 of file profile.c.
Definition at line 1431 of file profile.c.
INT WINAPI GetProfileStringA | ( | LPCSTR | section, |
LPCSTR | entry, | ||
LPCSTR | def_val, | ||
LPSTR | buffer, | ||
UINT | len | ||
) |
Definition at line 1252 of file profile.c.
Referenced by find_default_printer(), test_PrintDlgA(), and test_SetDefaultPrinter().
INT WINAPI GetProfileStringW | ( | LPCWSTR | section, |
LPCWSTR | entry, | ||
LPCWSTR | def_val, | ||
LPWSTR | buffer, | ||
UINT | len | ||
) |
Definition at line 1267 of file profile.c.
Referenced by get_mmioFromProfile(), and SHELL_FindExecutable().
Definition at line 749 of file profile.c.
Referenced by PROFILE_Open().
Definition at line 148 of file profile.c.
Referenced by PROFILE_Load(), and PROFILE_WriteLine().
Definition at line 131 of file profile.c.
Referenced by PROFILE_GetSection(), and PROFILE_GetString().
Definition at line 587 of file profile.c.
Referenced by WritePrivateProfileSectionW().
|
static |
Definition at line 555 of file profile.c.
Referenced by PROFILE_SetString().
|
static |
Definition at line 532 of file profile.c.
Referenced by PROFILE_SetString().
Definition at line 304 of file profile.c.
Referenced by PROFILE_Load().
|
static |
Definition at line 614 of file profile.c.
Referenced by GetPrivateProfileStructW(), PROFILE_GetString(), and PROFILE_SetString().
Definition at line 691 of file profile.c.
Referenced by PROFILE_Open(), PROFILE_ReleaseFile(), WritePrivateProfileSectionW(), WritePrivateProfileStringW(), and WritePrivateProfileStructW().
|
static |
Definition at line 279 of file profile.c.
Referenced by PROFILE_DeleteSection(), PROFILE_Open(), and PROFILE_ReleaseFile().
|
static |
Definition at line 899 of file profile.c.
Referenced by GetPrivateProfileSectionW(), and PROFILE_GetString().
Definition at line 958 of file profile.c.
Referenced by GetPrivateProfileSectionNamesW(), and GetPrivateProfileStringW().
|
static |
Definition at line 1022 of file profile.c.
Referenced by GetPrivateProfileStringW().
Definition at line 298 of file profile.c.
Referenced by PROFILE_Find(), PROFILE_Load(), and PROFILE_SetString().
|
static |
Definition at line 335 of file profile.c.
Referenced by PROFILE_Open().
Definition at line 765 of file profile.c.
Referenced by GetPrivateProfileSectionNamesW(), GetPrivateProfileSectionW(), GetPrivateProfileStringW(), GetPrivateProfileStructW(), WritePrivateProfileSectionW(), WritePrivateProfileStringW(), and WritePrivateProfileStructW().
Definition at line 728 of file profile.c.
Referenced by PROFILE_Open(), WritePrivateProfileSectionW(), and WritePrivateProfileStringW().
|
static |
Definition at line 222 of file profile.c.
Referenced by PROFILE_FlushFile().
|
static |
Definition at line 1066 of file profile.c.
Referenced by WritePrivateProfileSectionW(), WritePrivateProfileStringW(), and WritePrivateProfileStructW().
Definition at line 179 of file profile.c.
Referenced by PROFILE_Save().
Definition at line 157 of file profile.c.
Referenced by PROFILE_Save().
WINE_DEFAULT_DEBUG_CHANNEL | ( | profile | ) |
Definition at line 1553 of file profile.c.
Referenced by test_profile_directory_readonly(), and WriteProfileSectionA().
Definition at line 1511 of file profile.c.
Referenced by WritePrivateProfileSectionA(), and WriteProfileSectionW().
BOOL WINAPI DECLSPEC_HOTPATCH WritePrivateProfileStringA | ( | LPCSTR | section, |
LPCSTR | entry, | ||
LPCSTR | string, | ||
LPCSTR | filename | ||
) |
Definition at line 1484 of file profile.c.
Referenced by MAIN_MenuCommand(), shell_execute_(), shell_execute_ex_(), test_appsearch_inilocator(), test_CommandLine(), test_Console(), test_DebuggingFlag(), test_DetachConsoleHandles(), test_DetachStdHandles(), test_Directory(), test_Environment(), test_ExitCode(), test_get_inf_class(), test_ICInfo(), test_ini_values(), test_profile_directory_readonly(), test_profile_existing(), test_profile_int(), test_profile_string(), test_Startup(), test_StartupNoConsole(), test_SuspendFlag(), test_Toolhelp(), test_WritePrivateProfileString(), and WriteProfileStringA().
BOOL WINAPI WritePrivateProfileStringW | ( | LPCWSTR | section, |
LPCWSTR | entry, | ||
LPCWSTR | string, | ||
LPCWSTR | filename | ||
) |
Definition at line 1453 of file profile.c.
Referenced by AddDelBackupEntryW(), ITERATE_RemoveIniValuesOnInstall(), ITERATE_RemoveIniValuesOnUninstall(), ITERATE_WriteIniValues(), CFileDefExt::OnFolderCustApply(), ProcessSetupInf(), RegInstallW(), SHGetFolderPathAndSubDirW(), SHPropertyBag_OnIniFile(), SHPropertyBag_SHSetIniStringW(), SHSetIniStringUTF7W(), SHSetIniStringW(), StartRecDlgProc(), test_WritePrivateProfileString(), update_ini_callback(), write_predefined_strings(), WritePrivateProfileStringA(), WritePrivateProfileStructW(), and WriteProfileStringW().
BOOL WINAPI WritePrivateProfileStructA | ( | LPCSTR | section, |
LPCSTR | key, | ||
LPVOID | buf, | ||
UINT | bufsize, | ||
LPCSTR | filename | ||
) |
Definition at line 1838 of file profile.c.
Referenced by test_profile_directory_readonly().
BOOL WINAPI WritePrivateProfileStructW | ( | LPCWSTR | section, |
LPCWSTR | key, | ||
LPVOID | buf, | ||
UINT | bufsize, | ||
LPCWSTR | filename | ||
) |
Definition at line 1797 of file profile.c.
Referenced by WritePrivateProfileStructA().
Definition at line 1589 of file profile.c.
Definition at line 1278 of file profile.c.
Referenced by test_SetDefaultPrinter().
Definition at line 1287 of file profile.c.
Referenced by SetLocaleInfoW().
Definition at line 51 of file profile.c.
Referenced by ME_StreamInText(), PROFILE_DetectTextEncoding(), and PROFILE_WriteMarker().
|
static |
Definition at line 96 of file profile.c.
Referenced by GetPrivateProfileIntW(), and test_DrawTextCalcRect().
Definition at line 123 of file profile.c.
Referenced by WritePrivateProfileStructW().
|
static |
Definition at line 89 of file profile.c.
Referenced by PROFILE_Open().
|
static |
Definition at line 112 of file profile.c.
Referenced by GetPrivateProfileSectionNamesW(), GetPrivateProfileSectionW(), GetPrivateProfileStringW(), GetPrivateProfileStructW(), WritePrivateProfileSectionW(), WritePrivateProfileStringW(), and WritePrivateProfileStructW().
Definition at line 97 of file profile.c.
Referenced by GetProfileIntW(), GetProfileSectionW(), GetProfileStringW(), PROFILE_Open(), WriteProfileSectionW(), and WriteProfileStringW().