ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

profile.c File Reference
#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.

Data Structures

struct  PROFILEKEY
struct  PROFILESECTION
struct  LPPROFILE

Defines

#define HeapAlloc   RtlAllocateHeap
#define HeapReAlloc   RtlReAllocateHeap
#define HeapFree   RtlFreeHeap
#define N_CACHED_PROFILES   10
#define CurProfile   (MRUProfile[0])
#define IS_ENTRY_COMMENT(str)   ((str)[0] == ';')

Enumerations

enum  ENCODING {
  ENCODING_UTF8 = 1, ENCODING_UTF16LE, ENCODING_UTF16BE, ENCODING_ANSI = 1,
  ENCODING_UTF8, ENCODING_UTF16LE, ENCODING_UTF16BE
}

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (profile)
static void PROFILE_CopyEntry (LPWSTR buffer, LPCWSTR value, int len, BOOL strip_quote)
static void PROFILE_ByteSwapShortBuffer (WCHAR *buffer, int len)
static void PROFILE_WriteMarker (HANDLE hFile, ENCODING encoding)
static void PROFILE_WriteLine (HANDLE hFile, WCHAR *szLine, int len, ENCODING encoding)
static void PROFILE_Save (HANDLE hFile, const PROFILESECTION *section, ENCODING encoding)
static void PROFILE_Free (PROFILESECTION *section)
static int PROFILE_isspaceW (WCHAR c)
static ENCODING PROFILE_DetectTextEncoding (const void *buffer, int *len)
static PROFILESECTIONPROFILE_Load (HANDLE hFile, ENCODING *pEncoding)
static BOOL PROFILE_DeleteSection (PROFILESECTION **section, LPCWSTR name)
static BOOL PROFILE_DeleteKey (PROFILESECTION **section, LPCWSTR section_name, LPCWSTR key_name)
static void PROFILE_DeleteAllKeys (LPCWSTR section_name)
static PROFILEKEYPROFILE_Find (PROFILESECTION **section, LPCWSTR section_name, LPCWSTR key_name, BOOL create, BOOL create_always)
static BOOL PROFILE_FlushFile (void)
static void PROFILE_ReleaseFile (void)
static BOOL is_not_current (FILETIME *ft)
static BOOL PROFILE_Open (LPCWSTR filename, BOOL write_access)
static INT PROFILE_GetSection (PROFILESECTION *section, LPCWSTR section_name, LPWSTR buffer, DWORD len, BOOL return_values)
static INT PROFILE_GetSectionNames (LPWSTR buffer, DWORD len)
static INT PROFILE_GetString (LPCWSTR section, LPCWSTR key_name, LPCWSTR def_val, LPWSTR buffer, DWORD len)
static BOOL PROFILE_SetString (LPCWSTR section_name, LPCWSTR key_name, LPCWSTR value, BOOL create_always)
UINT WINAPI GetProfileIntA (LPCSTR section, LPCSTR entry, INT def_val)
UINT WINAPI GetProfileIntW (LPCWSTR section, LPCWSTR entry, INT def_val)
DWORD WINAPI GetPrivateProfileStringW (LPCWSTR section, LPCWSTR entry, LPCWSTR def_val, LPWSTR buffer, DWORD len, LPCWSTR filename)
DWORD WINAPI GetPrivateProfileStringA (LPCSTR section, LPCSTR entry, LPCSTR def_val, LPSTR buffer, DWORD len, LPCSTR filename)
DWORD WINAPI GetProfileStringA (LPCSTR section, LPCSTR entry, LPCSTR def_val, LPSTR buffer, DWORD len)
DWORD WINAPI GetProfileStringW (LPCWSTR section, LPCWSTR entry, LPCWSTR def_val, LPWSTR buffer, DWORD len)
BOOL WINAPI WriteProfileStringA (LPCSTR section, LPCSTR entry, LPCSTR string)
BOOL WINAPI WriteProfileStringW (LPCWSTR section, LPCWSTR entry, LPCWSTR string)
UINT WINAPI GetPrivateProfileIntW (LPCWSTR section, LPCWSTR entry, INT def_val, LPCWSTR filename)
UINT WINAPI GetPrivateProfileIntA (LPCSTR section, LPCSTR entry, INT def_val, LPCSTR filename)
DWORD WINAPI GetPrivateProfileSectionW (LPCWSTR section, LPWSTR buffer, DWORD len, LPCWSTR filename)
DWORD WINAPI GetPrivateProfileSectionA (LPCSTR section, LPSTR buffer, DWORD len, LPCSTR filename)
DWORD WINAPI GetProfileSectionA (LPCSTR section, LPSTR buffer, DWORD len)
DWORD WINAPI GetProfileSectionW (LPCWSTR section, LPWSTR buffer, DWORD len)
BOOL WINAPI WritePrivateProfileStringW (LPCWSTR section, LPCWSTR entry, LPCWSTR string, LPCWSTR filename)
BOOL WINAPI WritePrivateProfileStringA (LPCSTR section, LPCSTR entry, LPCSTR string, LPCSTR filename)
BOOL WINAPI WritePrivateProfileSectionW (LPCWSTR section, LPCWSTR string, LPCWSTR filename)
BOOL WINAPI WritePrivateProfileSectionA (LPCSTR section, LPCSTR string, LPCSTR filename)
BOOL WINAPI WriteProfileSectionA (LPCSTR section, LPCSTR keys_n_values)
BOOL WINAPI WriteProfileSectionW (LPCWSTR section, LPCWSTR keys_n_values)
DWORD WINAPI GetPrivateProfileSectionNamesW (LPWSTR buffer, DWORD size, LPCWSTR filename)
DWORD WINAPI GetPrivateProfileSectionNamesA (LPSTR buffer, DWORD size, LPCSTR filename)
BOOL WINAPI GetPrivateProfileStructW (LPCWSTR section, LPCWSTR key, LPVOID buf, UINT len, LPCWSTR filename)
BOOL WINAPI GetPrivateProfileStructA (LPCSTR section, LPCSTR key, LPVOID buffer, UINT len, LPCSTR filename)
BOOL WINAPI WritePrivateProfileStructW (LPCWSTR section, LPCWSTR key, LPVOID buf, UINT bufsize, LPCWSTR filename)
BOOL WINAPI WritePrivateProfileStructA (LPCSTR section, LPCSTR key, LPVOID buf, UINT bufsize, LPCSTR filename)
BOOL WINAPI OpenProfileUserMapping (void)
BOOL WINAPI CloseProfileUserMapping (void)

Variables

static const char bom_utf8 [] = {0xEF,0xBB,0xBF}
static PROFILEMRUProfile [N_CACHED_PROFILES] = {NULL}
static const WCHAR emptystringW [] = {0}
static const WCHAR wininiW [] = { 'w','i','n','.','i','n','i',0 }
static RTL_CRITICAL_SECTION PROFILE_CritSect = { &critsect_debug, -1, 0, 0, 0, 0 }
static RTL_CRITICAL_SECTION_DEBUG critsect_debug
static const char hex [16] = "0123456789ABCDEF"

Generated on Sun May 27 2012 05:10:02 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.