aboutsummaryrefslogtreecommitdiffstats
path: root/phidget21.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-04-14 12:56:48 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-04-14 12:56:48 +0100
commit0b624384cd52be20e61284551d832b499d7b7707 (patch)
tree6f95a4bbef47abc9720b96c0722e8f632aef228a /phidget21.c
downloadlibphidget21-0b624384cd52be20e61284551d832b499d7b7707.tar.gz
Imported Upstream version 2.1.8.20120216upstream/2.1.8.20120216
Diffstat (limited to 'phidget21.c')
-rw-r--r--phidget21.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/phidget21.c b/phidget21.c
new file mode 100644
index 0000000..2fe4b98
--- /dev/null
+++ b/phidget21.c
@@ -0,0 +1,38 @@
+// phidget21.c : Defines the entry point for the DLL application.
+//
+
+#include "stdafx.h"
+#include "phidget21int.h"
+#include "cthread.h"
+#include "cphidget.h"
+#include "cusb.h"
+
+#ifdef _WINDOWS
+#ifdef _MANAGED
+#pragma managed(push, off)
+#endif
+
+BOOL APIENTRY DllMain( HMODULE hModule,
+ DWORD ul_reason_for_call,
+ LPVOID lpReserved
+ )
+{
+ switch (ul_reason_for_call)
+ {
+ case DLL_PROCESS_ATTACH:
+ ActiveDevices = 0;
+ //inst = (HINSTANCE)hModule;
+ case DLL_THREAD_ATTACH:
+ case DLL_THREAD_DETACH:
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+ return TRUE;
+}
+
+#ifdef _MANAGED
+#pragma managed(pop)
+#endif
+#endif
+
+