42 #endif
43 #endif
44
45 #include <windows.h>
46
47 #if _MSC_VER <= 1200
48 // Psapi.h doesn't come with Visual Studio 6; it can be downloaded as Platform
49 // SDK from Microsoft. Here are the definitions copied from Psapi.h
50 typedef struct _MODULEINFO {
51 LPVOID lpBaseOfDll;
52 DWORD SizeOfImage;
53 LPVOID EntryPoint;
54 } MODULEINFO, *LPMODULEINFO;
55
56 #else
57 #include <Psapi.h>
58 #endif
59
60 #include <Tlhelp32.h>
61
62 typedef unsigned int socklen_t;
63
64 // #include "jni.h"
65
66 #define JNI_ONLOAD_SYMBOLS {"_JNI_OnLoad@8", "JNI_OnLoad"}
67 #define JNI_ONUNLOAD_SYMBOLS {"_JNI_OnUnload@8", "JNI_OnUnload"}
68 #define JVM_ONLOAD_SYMBOLS {"_JVM_OnLoad@12", "JVM_OnLoad"}
69 #define AGENT_ONLOAD_SYMBOLS {"_Agent_OnLoad@12", "Agent_OnLoad"}
70 #define AGENT_ONUNLOAD_SYMBOLS {"_Agent_OnUnload@4", "Agent_OnUnload"}
71 #define AGENT_ONATTACH_SYMBOLS {"_Agent_OnAttach@12", "Agent_OnAttach"}
72
73 #define JNI_LIB_PREFIX ""
74 #define JNI_LIB_SUFFIX ".dll"
75
76 struct dirent {
77 char d_name[MAX_PATH];
78 };
79
80 typedef struct {
81 struct dirent dirent;
82 char *path;
|
42 #endif
43 #endif
44
45 #include <windows.h>
46
47 #if _MSC_VER <= 1200
48 // Psapi.h doesn't come with Visual Studio 6; it can be downloaded as Platform
49 // SDK from Microsoft. Here are the definitions copied from Psapi.h
50 typedef struct _MODULEINFO {
51 LPVOID lpBaseOfDll;
52 DWORD SizeOfImage;
53 LPVOID EntryPoint;
54 } MODULEINFO, *LPMODULEINFO;
55
56 #else
57 #include <Psapi.h>
58 #endif
59
60 #include <Tlhelp32.h>
61
62 typedef int socklen_t;
63
64 // #include "jni.h"
65
66 #define JNI_ONLOAD_SYMBOLS {"_JNI_OnLoad@8", "JNI_OnLoad"}
67 #define JNI_ONUNLOAD_SYMBOLS {"_JNI_OnUnload@8", "JNI_OnUnload"}
68 #define JVM_ONLOAD_SYMBOLS {"_JVM_OnLoad@12", "JVM_OnLoad"}
69 #define AGENT_ONLOAD_SYMBOLS {"_Agent_OnLoad@12", "Agent_OnLoad"}
70 #define AGENT_ONUNLOAD_SYMBOLS {"_Agent_OnUnload@4", "Agent_OnUnload"}
71 #define AGENT_ONATTACH_SYMBOLS {"_Agent_OnAttach@12", "Agent_OnAttach"}
72
73 #define JNI_LIB_PREFIX ""
74 #define JNI_LIB_SUFFIX ".dll"
75
76 struct dirent {
77 char d_name[MAX_PATH];
78 };
79
80 typedef struct {
81 struct dirent dirent;
82 char *path;
|