G
Guest
Hello,
I'm trying to get an MUI string out of the registry in display friendly
format. From what I've read, strings in the following format:
“@[path]\dllname,-strID†are MUI strings and receive special handling via
the RegLoadMUIString API call.
This is what I have come up with for the call:
[DllImport("advapi32.dll")]
internal static extern long RegLoadMUIString(IntPtr hKey, string pszValue,
StringBuilder pszOutBuf, int cbOutBuf, out int pcbData, uint Flags, string
pszDirectory);
I'm calling this function with a valid pointer to an open registry key,
passing in the appropriate value key (pszValue) which has the MUI formatted
string. When I check the output buffer (pszOutBuf) it's always an empty
string.
Has anyone been able to get this call to work? I cannot find any examples
on the web.
thanks,
-bp
I'm trying to get an MUI string out of the registry in display friendly
format. From what I've read, strings in the following format:
“@[path]\dllname,-strID†are MUI strings and receive special handling via
the RegLoadMUIString API call.
This is what I have come up with for the call:
[DllImport("advapi32.dll")]
internal static extern long RegLoadMUIString(IntPtr hKey, string pszValue,
StringBuilder pszOutBuf, int cbOutBuf, out int pcbData, uint Flags, string
pszDirectory);
I'm calling this function with a valid pointer to an open registry key,
passing in the appropriate value key (pszValue) which has the MUI formatted
string. When I check the output buffer (pszOutBuf) it's always an empty
string.
Has anyone been able to get this call to work? I cannot find any examples
on the web.
thanks,
-bp