[3/3] kernel32/heap: Add registry caps for reported memory. (resend)

Adam Martinson amartinson at codeweavers.com
Mon Jun 6 12:42:54 CDT 2011


On 06/06/2011 11:22 AM, Andrew Nguyen wrote:
> 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.
>
>
>
>
Hmm, ye I think you're right, thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110606/719248aa/attachment.htm>


More information about the wine-devel mailing list