entry.c

来自「一个windows显示驱动的好程序」· C语言 代码 · 共 40 行

C
40
字号
/**********************************************************************
 * 
 *  Toby Opferman
 *
 *  Example Application which uses shared memory to display the contents
 *  of a virtual second monitor
 *
 *  This example is for educational purposes only.  I license this source
 *  out for use in learning.
 *
 *  Copyright (c) 2005, All Rights Reserved  
 **********************************************************************/
 
 #include <windows.h>
 #include "appmon.h"
 
 
 
 /*********************************************************************
 * WinMain
 *
 *   Standard Windows Application Entry
 *
 *********************************************************************/
 int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PCHAR pCmdLine, int iShow)
 {
     int iRetValue = 0xFF;
     HWND hWnd;

     if(AppMon_RegisterClass(hInstance))
     {
         if(hWnd = AppMon_CreateWindow(hInstance))
         {
             iRetValue = AppMon_MessageLoop(hInstance, hWnd);
         }
     }
     
     return iRetValue;
 }

⌨️ 快捷键说明

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