Writetoini

int Writetoini(wchar_t *file,wchar_t *section,wchar_t *key,wchar_t *format,...);

Writes string to the specified initialization file.


Parameters:

file
(in) Pointer to the null-terminated UNICODE string containing path to the initialization file, or NULL if data to be saved to the main OllyDbg initialization file (usually ollydbg.ini)
section
(in) Pointer to the null-terminated UNICODE string, section of the initialization file where data will be saved
key
(in) Pointer to the null-terminated UNICODE string, name of the key associated with the data
format
(in) Pointer to the null-terminated UNICODE string. Has the same syntax as vswprintf() or swprintf(). The following arguments must match format specifiers
...
(in) Arguments following format string


Return values:

Length of the formatted string in wide characters, or 0 on error


See also:
Initialization file functions, Addtosettings(), Deleteinisection(), Filefromini(), Filetoini(), Getfromini(), Getfromsettings(), Stringfromini()