aboutsummaryrefslogtreecommitdiffstats
path: root/phidget21.c
blob: 2fe4b9890014376bce8dd273dd9840027c5c3190 (plain)
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
36
37
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