Source code of Windows XP (NT5)
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.

37 lines
1.2 KiB

  1. #define BM_NULL 0
  2. #define BM_TYPE 0x0F // type mask
  3. #define BM_8BIT 0x01 // all SVGA, and other 256 color
  4. #define BM_16555 0x02 // some HiDAC cards
  5. #define BM_24BGR 0x03 // just like a DIB
  6. #define BM_32BGR 0x04 // 32 bit BGR
  7. #define BM_VGA 0x05 // VGA style bitmap.
  8. #define BM_16565 0x06 // most HiDAC cards
  9. #define BM_24RGB 0x07 // 24 bit RGB
  10. #define BM_32RGB 0x08 // 32 bit RGB
  11. #define BM_1BIT 0x09 // mono bitmap
  12. #define BM_4BIT 0x0A // 4 bit packed pixel.
  13. //
  14. // this is a physical BITMAP in memory, this is just like a BITMAP
  15. // structure, but with extra fields staring at bmWidthPlanes
  16. //
  17. typedef struct {
  18. short bmType;
  19. short bmWidth;
  20. short bmHeight;
  21. short bmWidthBytes;
  22. BYTE bmPlanes;
  23. BYTE bmBitsPixel;
  24. LPVOID bmBits;
  25. long bmWidthPlanes;
  26. long bmlpPDevice;
  27. short bmSegmentIndex;
  28. short bmScanSegment;
  29. short bmFillBytes;
  30. short reserved1;
  31. short reserved2;
  32. } IBITMAP;
  33. LPVOID FAR GetPDevice(HDC hdc);
  34. void FAR TestSurfaceType(HDC hdc, int x, int y);
  35. UINT FAR GetSurfaceType(LPVOID lpBits);