Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.8 KiB

  1. /****************************************************************************/
  2. /* */
  3. /* DISPDIB.H - Include file for DisplayDib() function. */
  4. /* */
  5. /* Note: You must include WINDOWS.H before including this file. */
  6. /* */
  7. /* Copyright (c) 1990-1994, Microsoft Corp. All rights reserved. */
  8. /* */
  9. /****************************************************************************/
  10. // DisplayDib() error return codes
  11. #define DISPLAYDIB_NOERROR 0x0000 // success
  12. #define DISPLAYDIB_NOTSUPPORTED 0x0001 // function not supported
  13. #define DISPLAYDIB_INVALIDDIB 0x0002 // null or invalid DIB header
  14. #define DISPLAYDIB_INVALIDFORMAT 0x0003 // invalid DIB format
  15. #define DISPLAYDIB_INVALIDTASK 0x0004 // not called from current task
  16. #define DISPLAYDIB_STOP 0x0005 // stop requested
  17. // flags for <wFlags> parameter of DisplayDib()
  18. #define DISPLAYDIB_NOPALETTE 0x0010 // don't set palette
  19. #define DISPLAYDIB_NOCENTER 0x0020 // don't center image
  20. #define DISPLAYDIB_NOWAIT 0x0040 // don't wait before returning
  21. #define DISPLAYDIB_NOIMAGE 0x0080 // don't draw image
  22. #define DISPLAYDIB_ZOOM2 0x0100 // stretch by 2
  23. #define DISPLAYDIB_DONTLOCKTASK 0x0200 // don't lock current task
  24. #define DISPLAYDIB_TEST 0x0400 // testing the command
  25. #define DISPLAYDIB_NOFLIP 0x0800 // dont page flip
  26. #define DISPLAYDIB_BEGIN 0x8000 // start of multiple calls
  27. #define DISPLAYDIB_END 0x4000 // end of multiple calls
  28. #define DISPLAYDIB_MODE 0x000F // mask for display mode
  29. #define DISPLAYDIB_MODE_DEFAULT 0x0000 // default display mode
  30. #define DISPLAYDIB_MODE_320x200x8 0x0001 // 320-by-200
  31. #define DISPLAYDIB_MODE_320x400x8 0x0002 // 320-by-400 /* ;Internal */
  32. #define DISPLAYDIB_MODE_360x480x8 0x0003 // 360-by-480 /* ;Internal */
  33. #define DISPLAYDIB_MODE_320x480x8 0x0004 // 320-by-480 /* ;Internal */
  34. #define DISPLAYDIB_MODE_320x240x8 0x0005 // 320-by-240
  35. #ifdef WIN32
  36. // flags for the 32 bit version of DisplayDibEx
  37. #define DISPLAYDIB_ANIMATE 0x00010000
  38. #define DISPLAYDIB_HALFTONE 0x00020000
  39. #endif
  40. // function prototypes
  41. UINT FAR PASCAL DisplayDib(LPBITMAPINFOHEADER lpbi, LPSTR lpBits, UINT wFlags);
  42. UINT FAR PASCAL DisplayDibEx(LPBITMAPINFOHEADER lpbi, int x, int y, LPSTR lpBits, UINT wFlags);
  43. #define DisplayDibBegin() DisplayDib(NULL, NULL, DISPLAYDIB_BEGIN)
  44. #define DisplayDibEnd() DisplayDib(NULL, NULL, DISPLAYDIB_END)