📄 gpsspibulverde.cpp
字号:
// GpsSpiBulverde.cpp : Defines the initialization routines for the DLL.
//
#include "stdafx.h"
#include <windows.h>
#include <ceddk.h>
#include "GpsSpiBulverde.h"
#include "cust_debug.h"
#include <Mmsystem.h>
/*******************************************************************************
********************************************************************************
**
** DLL Entry Points
**
** These subroutines satisfy the requirements of the Microsoft
** Dynamically Loaded Library interface
**
********************************************************************************
*******************************************************************************/
//-----------------------------------------------------------------------------
//
// DllMain()
//
//-----------------------------------------------------------------------------
static HINSTANCE hDllSpi;
BOOL WINAPI
DllEntry(HANDLE hDLL, DWORD reason, LPVOID pReserved)
{
hDllSpi = (HINSTANCE)hDLL;
GL_PRINT((MSG("GpsSpiBulverde.cpp/%d DllMain(%d) 0x%x "),
__LINE__,reason,hDllSpi));
switch(reason)
{
case DLL_PROCESS_ATTACH:
GL_PRINT((MSG("DLL_PROCESS_ATTACH")));
DisableThreadLibraryCalls(hDllSpi);
break;
case DLL_PROCESS_DETACH:
GL_PRINT((MSG("DLL_PROCESS_DETATCH")));
break;
default:
GL_PRINT((MSG("unknown")));
break;
}
GL_PRINT((MSG("\r\n")));
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -