drivers/can_copcican_win32/dllmain.cpp
author Christian Taedcke
Thu, 09 Sep 2010 15:38:20 +0200
changeset 635 30a0e926bb2e
parent 629 b9274b595650
permissions -rw-r--r--
ADDED: - new callback post_SlaveStateChange so that a master can monitor the state of its slave nodes using a heartbeat.
* * *
CHANGED: - added missing export for _post_SlaveStateChange (for revision #679)
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