gpsspibulverde.cpp

来自「一个基于windows mobile 的GPS 接受IC 驱动程序。」· C++ 代码 · 共 55 行

CPP
55
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?