[a2202c]: SQLite.Interop / merge_full.h Maximize Restore History

Download this file

merge_full.h    36 lines (29 with data), 990 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// This code was automatically generated from assembly
// C:\Src\SQLite.NET\bin\ManagedOnly\System.Data.SQLite.dll
#include <windef.h>
#pragma data_seg(push,clrseg,".clr")
#pragma comment(linker, "/SECTION:.clr,ER")
char __ph[156244] = {0}; // The number of bytes to reserve
#pragma data_seg(pop,clrseg)
typedef BOOL (WINAPI *DLLMAIN)(HANDLE, DWORD, LPVOID);
typedef struct EXTRA_STUFF
{
DWORD dwNativeEntryPoint;
} EXTRA_STUFF, *LPEXTRA_STUFF;
__declspec(dllexport) BOOL WINAPI _CorDllMainStub(HANDLE hModule, DWORD dwReason, LPVOID pvReserved)
{
HANDLE hMod;
DLLMAIN proc;
LPEXTRA_STUFF pExtra;
hMod = GetModuleHandle(_T("mscoree"));
if (hMod)
proc = (DLLMAIN)GetProcAddress(hMod, _T("_CorDllMain"));
else
{
MEMORY_BASIC_INFORMATION mbi;
VirtualQuery(_CorDllMainStub, &mbi, sizeof(mbi));
pExtra = (LPEXTRA_STUFF)__ph;
proc = (DLLMAIN)(pExtra->dwNativeEntryPoint + (DWORD)mbi.AllocationBase);
}
return proc(hModule, dwReason, pvReserved);
}