* include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): hinstance,
not handle. (reverse of previous diff)
This commit is contained in:
parent
20ffb3ee16
commit
d3bff3131f
@ -1,7 +1,7 @@
|
|||||||
2000-08-21 DJ Delorie <dj@redhat.com>
|
2000-08-21 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
* include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): handle,
|
* include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): hinstance,
|
||||||
not hinstance.
|
not handle.
|
||||||
|
|
||||||
Fri Aug 18 11:11:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Fri Aug 18 11:11:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
@ -24,13 +24,13 @@ details. */
|
|||||||
#define DECLARE_CYGWIN_DLL(Entry) \
|
#define DECLARE_CYGWIN_DLL(Entry) \
|
||||||
\
|
\
|
||||||
CDECL_BEGIN \
|
CDECL_BEGIN \
|
||||||
int WINAPI Entry (HANDLE h, DWORD reason, void *ptr); \
|
int WINAPI Entry (HINSTANCE h, DWORD reason, void *ptr); \
|
||||||
typedef int (*mainfunc) (int, char **, char **); \
|
typedef int (*mainfunc) (int, char **, char **); \
|
||||||
extern int cygwin_attach_dll (HMODULE, mainfunc); \
|
extern int cygwin_attach_dll (HMODULE, mainfunc); \
|
||||||
extern void cygwin_detach_dll (DWORD); \
|
extern void cygwin_detach_dll (DWORD); \
|
||||||
CDECL_END \
|
CDECL_END \
|
||||||
\
|
\
|
||||||
static HANDLE storedHandle; \
|
static HINSTANCE storedHandle; \
|
||||||
static DWORD storedReason; \
|
static DWORD storedReason; \
|
||||||
static void* storedPtr; \
|
static void* storedPtr; \
|
||||||
\
|
\
|
||||||
@ -41,7 +41,7 @@ static int __dllMain (int a, char **b, char **c) \
|
|||||||
\
|
\
|
||||||
static DWORD dll_index; \
|
static DWORD dll_index; \
|
||||||
\
|
\
|
||||||
int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr) \
|
int WINAPI _cygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr) \
|
||||||
{ \
|
{ \
|
||||||
int ret; \
|
int ret; \
|
||||||
ret = 1; \
|
ret = 1; \
|
||||||
@ -86,7 +86,7 @@ int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr) \
|
|||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
/* OBSOLETE: This is only provided for source level compatibility. */ \
|
/* OBSOLETE: This is only provided for source level compatibility. */ \
|
||||||
int WINAPI _cygwin_noncygwin_dll_entry (HANDLE h, DWORD reason, void *ptr) \
|
int WINAPI _cygwin_noncygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr) \
|
||||||
{ \
|
{ \
|
||||||
return _cygwin_dll_entry (h, reason, ptr); \
|
return _cygwin_dll_entry (h, reason, ptr); \
|
||||||
} \
|
} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user