drivers/can_copcican_win32/dllmain.cpp
author Christian Taedcke
Fri, 10 Sep 2010 08:55:42 +0200
changeset 638 00bc03cb5606
parent 629 b9274b595650
permissions -rw-r--r--
CHANGED: - option to integrate a can driver statically (hack)
FIXED: - missing () in log message
* * *
CHANGED: - adapted UnLoadCanDriver() for the macro NOT_USE_DYNAMIC_LOADING
629
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     1
// dllmain.cpp : Defines the entry point for the DLL application.
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     2
#include "stdafx.h"
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     3
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     4
BOOL APIENTRY DllMain( HMODULE hModule,
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     5
                       DWORD  ul_reason_for_call,
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     6
                       LPVOID lpReserved
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     7
					 )
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     8
{
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     9
	switch (ul_reason_for_call)
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    10
	{
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    11
	case DLL_PROCESS_ATTACH:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    12
	case DLL_THREAD_ATTACH:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    13
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    14
		break;
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    15
	case DLL_THREAD_DETACH:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    16
	case DLL_PROCESS_DETACH:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    17
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    18
		break;
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    19
	}
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    20
	return TRUE;
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    21
}
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    22