misc.cpp

来自「source code of printer under WinCE5.0!」· C++ 代码 · 共 73 行

CPP
73
字号
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 1995-1998  Microsoft Corporation

Module Name:

    misc.cpp

Abstract:

    This file implements the portions of the printer driver that are
    not directly tied to the DDI.

Functions:




Notes:


--*/


#include "precomp.hxx"
HINSTANCE g_hInstance=NULL;

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Function:

    DllMain


Description:

    Main entry point into the DLL.

-------------------------------------------------------------------*/
extern "C" int __stdcall
DllMain(
    HANDLE hinstDLL,
    DWORD  dwReason,
    LPVOID lpvReserved
    )
{
    //
    // These are unused by the sample driver, but are left here 
    // for illustrative purposes.
    //
	NKDbgPrintfW(TEXT("A6PRN.DLL\r\n"));
    switch (dwReason) 
    {
        case DLL_PROCESS_ATTACH:
			g_hInstance = (HINSTANCE)hinstDLL;
            break;

        case DLL_PROCESS_DETACH:
            break;

        case DLL_THREAD_ATTACH:
            break;

        case DLL_THREAD_DETACH:
            break;
   }

    return TRUE;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?