title: how to get HInstance using BTMemoryModule
body: <p>I am trying to load a dll from resource using <code>BTMemoryModule.pas</code> unit but I'm getting this error
  <code>The specified module could not be loaded</code>. These are the procedures in my dll which I'm calling from exe using <code>BTMemoryModule</code>:</p>
  
  <pre><code>procedure StartHook; stdcall;
  begin
    if MessageHook=0 then
    begin
      MessageHook := SetWindowsHookEx(WH_GetMessage, 
                                      @GetMsgProc, 
                                      HInstance, 
                                      0);
      if MessageHook = 0 then 
        ShowMessage(SysErrorMessage(GetLastError));
    end;
  end;
  
  function GetMsgProc(Code: Integer; 
    wParam, lParam: Longint): Longint; stdcall ;
  begin
    Result := CallNextHookEx(MessageHook, Code, wParam, lParam);
  end;
  </code></pre>