drivers/can_copcican_win32/dllmain.cpp
author Christian Taedcke
Wed, 10 Nov 2010 13:08:26 +0100
changeset 655 ea1ddcc77acf
parent 629 b9274b595650
permissions -rw-r--r--
CHANGED: - canSend message parameter is now a const pointer
ADDED : - IXXAT specific can bus watchdog to restart the VCI2 driver if a bus off, data ovverrun or remote queue overrun is detected. The can adapter cannot recover on its own.
* * *
CHANGED: - IXXAT::m_watchdogTimerId from DWORD to UINT_PTR to fix compiler warning
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