dumb.C
上传用户:yuandong
上传日期:2022-08-08
资源大小:954k
文件大小:3k
- /****************************************************************************
- * *
- * 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) 1993-95 Microsoft Corporation. All Rights Reserved. *
- * *
- ****************************************************************************/
- //-----------------------------------------------------------------------------
- // This files contains the module name for this mini driver. Each mini driver
- // must have a unique module name. The module name is used to obtain the
- // module handle of this Mini Driver. The module handle is used by the
- // generic library to load in tables from the Mini Driver.
- //-----------------------------------------------------------------------------
- #define PRINTDRIVER
- #define BUILDDLL
- #include "print.h"
- #include "gdidefs.inc"
- #include "dumb.h"
- #include <memory.h>
- #include "mdevice.h"
- #include "unidrv.h"
- char *rgchModuleName = "DUMB";
- BYTE szBuf[4] = {0xFF, 0xFF, 0xFF, 0xFF};
- //*************************************************************
- //
- // fnDump
- //
- // Purpose:
- //
- //
- // Parameters:
- // LPDV lpdv
- // LPPOINT lpptCursor
- // WORD fMode
- //
- //
- // Return: (short FAR PASCAL)
- //*************************************************************
- short FAR PASCAL fnDump(LPDV lpdv, LPPOINT lpptCursor, WORD fMode)
- {
- return 1;
- } //*** fnDump
- //*************************************************************
- //
- // FileDlgProc
- //
- // Purpose: To bring up the Print File dialog
- //
- //
- // Parameters:
- // HWND hwnd
- // WORD message
- // WPARAM wParam
- // LPARAM lParam
- //
- //
- // Return: (BOOL FAR PASCAL)
- //*************************************************************
- BOOL FAR PASCAL FileDlgProc(HWND hwnd, WORD message, WPARAM wParam, LPARAM lParam)
- {
- static LPEXTPDEV lpXPDV;
- switch (message)
- {
- case WM_INITDIALOG:
- // get pointer to our private data stored in UNIDRV's PDEVICE
- lpXPDV = ((LPEXTPDEV)lParam);
- break;
- case WM_COMMAND:
- switch ((WORD)wParam)
- {
- case IDOK:
- EndDialog(hwnd,1);
- break;
- default:
- return FALSE;
- }
- break;
- default:
- return FALSE;
- }
- return TRUE;
- } //*** FileDlgProc