home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / msj / msjv4_6 / prtsc / prtsc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-18  |  1.9 KB  |  49 lines

  1. /*
  2.  * SCREEN CAPTURE UTILITY - HEADER FILE
  3.  *
  4.  * LANGUAGE : Microsoft C 5.0
  5.  * SDK      : Windows 2.03 SDK
  6.  * MODEL    : small
  7.  * STATUS   : operational
  8.  *
  9.  * This file contains all the definitions (except function definitions)
  10.  * used by the screen capture program.  This file should be included
  11.  * at compile time for each module linked into the system.
  12.  *
  13.  * 06/13/88 1.00 - Kevin P. Welch - initial creation.
  14.  *
  15.  */
  16.  
  17. /* supplemental session menu definitions */
  18. #define  CMD_CAPTURE          0x0050      /* Screen Capture... */
  19.  
  20. /* screen capture definitions */
  21. #define  CAPTURE_OFF          0           /* capture not active */
  22. #define  CAPTURE_CLIENT       1           /* capture client area */
  23. #define  CAPTURE_WINDOW       2           /* capture active window */
  24. #define  CAPTURE_SCREEN       3           /* capture entire screen */
  25.  
  26. /* screen capture dialog box messages */
  27. #define  DLGSC_OFF            101         /* turn auto-capture off */
  28. #define  DLGSC_CLIENT         102         /* capture client area */
  29. #define  DLGSC_WINDOW         103         /* capture active window */
  30. #define  DLGSC_SCREEN         104         /* capture entire screen */
  31. #define  DLGSC_MONOCHROME     105         /* capture in monochrome */
  32.  
  33. /* screen capture macro definitions */
  34. #define  SCREEN_WIDTH         GetSystemMetrics(SM_CXSCREEN)
  35. #define  SCREEN_HEIGHT        GetSystemMetrics(SM_CYSCREEN)
  36.  
  37. #define  MSGBOX(x,y)          MessageBox(x,y,"Screen Capture",MB_OK)
  38.  
  39. /* undocumented Windows API calls */
  40. int FAR PASCAL lstrlen( LPSTR );
  41. int FAR PASCAL lstrcmp( LPSTR, LPSTR );
  42. LPSTR FAR PASCAL lstrcpy( LPSTR, LPSTR );
  43. LPSTR FAR PASCAL lstrcat( LPSTR, LPSTR );
  44.  
  45. /* general function declarations */
  46. WORD FAR PASCAL PrtScHook( int, WORD, LONG );
  47. BOOL FAR PASCAL PrtScDlgFn( HWND, WORD, WORD, LONG );
  48. LONG FAR PASCAL PrtScFilterFn( HWND, WORD, WORD, LONG );
  49.