1 /******************************************************************************
2 *
3 * Copyright (C) 2009, The Gentee Group. All rights reserved.
4 * This file is part of the Gentee open source project - http://www.gentee.com.
5 *
6 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT").
7 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS
8 * ACCEPTANCE OF THE AGREEMENT.
9 *
10 * Author: Alexey Krivonogov ( gentee )
11 *
12 ******************************************************************************/
13
14 #include "gea.h"
15
16 gea_call callfunc;
17
18 BOOL gea_init( uint call )
19 {
20 callfunc = (gea_call)call;
21
22 return TRUE;
23 }
24
25 dword STDCALL fgeauser( dword param, dword userfunc, dword pgeaparam )
26 {
27 dword result;
28
29 if ( userfunc )
30 {
31 *( pdword )pgeaparam = param;
32 if ( callfunc )
33 callfunc( userfunc, &result, 200, pgeaparam );
34 }
35 return 1;
36 }
37
38 //--------------------------------------------------------------------------
39
40 BOOL WINAPI DllMain( HINSTANCE hinstDll, DWORD fdwReason,
41 LPVOID lpReserved )
42 {
43 /* if ( fdwReason == DLL_PROCESS_ATTACH )
44 {
45 // handledll = hinstDll;
46 // fgeauser = &fuser;
47 }*/
48 return ( TRUE );
49 }
50
51 //--------------------------------------------------------------------------
52
53
Редактировать