[3/3] kernel32/heap: Add registry caps for reported memory. (resend)
Andrew Nguyen
anguyen at codeweavers.com
Mon Jun 6 11:22:23 CDT 2011
On 06/06/2011 11:03 AM, Adam Martinson wrote:
> + /* Only check this once */
> + if (!cache_lastchecked)
> + {
> + HMODULE hadvapi32 = LoadLibraryA("advapi32.dll");
> +#define ADVAPI32_GET_PROC(func) typeof(func) * p ## func = (void*)GetProcAddress(hadvapi32, #func)
> + ADVAPI32_GET_PROC(RegOpenKeyExA);
> + ADVAPI32_GET_PROC(RegCloseKey);
> + ADVAPI32_GET_PROC(RegGetValueA);
I think you want to use NtCreateKey and NtQueryValueKey instead of
dynamically loading advapi32 for registry functionality.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110606/a260d45c/attachment.pgp>
More information about the wine-devel
mailing list