Scroll to navigation

MsiLoadStringW(3w) Wine API MsiLoadStringW(3w)

NAME

MsiLoadStringW (MSI.@)

SYNOPSIS

LANGID MsiLoadStringW
(
MSIHANDLE handle,
UINT id,
LPWSTR lpBuffer,
int nBufferMax,
LANGID lang
)
 

DESCRIPTION

Loads a string from MSI's string resources.
 

PARAMS

handle [In] only -1 is handled currently.
id [In] Id of the string to be loaded.
lpBuffer [Out] buffer for the string to be written to.
nBufferMax [In] maximum size of the buffer in characters.
lang [In] the preferred language for the string.
 

RETURNS

If successful, this function returns the language Id of the string loaded If the function fails, the function returns zero.
 

NOTES

The type of the first parameter is unknown. LoadString's prototype suggests that it might be a module handle. I have made it an MSI handle for starters, as -1 is an invalid MSI handle, but not an invalid module handle. Maybe strings can be stored in an MSI database somehow.
 

IMPLEMENTATION

Declared in "msipriv.h".
Implemented in "dlls/msi/msi.c".
Debug channel "msi".
Oct 2012 Wine API