File: plugin.c

package info (click to toggle)
win32-loader 0.6.10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 924 kB
  • ctags: 37
  • sloc: ansic: 230; makefile: 132; sh: 54
file content (21 lines) | stat: -rw-r--r-- 456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <windows.h>
#include "exdll.h"

HINSTANCE g_hInstance;

HWND g_hwndParent;

void __declspec(dllexport) get_arch (HWND hwndParent, int string_size, char *variables, stack_t **stacktop, extra_parameters *extra)
{
  g_hwndParent=hwndParent;

  EXDLL_INIT();

  setuservariable (INST_0, check_64bit () ? "amd64" : "i386");
}

BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved)
{
  g_hInstance=hInst;
        return TRUE;
}