<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 06/06/2011 11:22 AM, Andrew Nguyen wrote:
    <blockquote cite="mid:4DECFEBF.5020601@codeweavers.com" type="cite">
      <pre wrap="">On 06/06/2011 11:03 AM, Adam Martinson wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">+    /* 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);
</pre>
      </blockquote>
      <pre wrap="">
I think you want to use NtCreateKey and NtQueryValueKey instead of
dynamically loading advapi32 for registry functionality.

</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>

</pre>
    </blockquote>
    Hmm, ye I think you're right, thanks.<br>
    <br>
  </body>
</html>