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.

45 lines
1.6 KiB

  1. #ifndef __WIADSS_H_
  2. #define __WIADSS_H_
  3. //
  4. // DeviceFlags definitions
  5. //
  6. #define DEVICE_FLAGS_DEVICETYPE 0xF // device type mask
  7. #define DEVICETYPE_UNKNOWN 0x0 // unknown device
  8. #define DEVICETYPE_DIGITALCAMERA 0x1 // digital camera
  9. #define DEVICETYPE_SCANNER 0x2 // scanner
  10. #define DEVICETYPE_STREAMINGVIDEO 0x4 // streaming video
  11. //
  12. // structure definitions
  13. //
  14. typedef struct tagMEMORY_TRANSFER_INFO
  15. {
  16. GUID mtiguidFormat; // WIA image format
  17. LONG mtiCompression; // compression type
  18. LONG mtiBitsPerPixel; // image bits per pixel
  19. LONG mtiBytesPerLine; // image bytes per line
  20. LONG mtiWidthPixels; // image width (pixels)
  21. LONG mtiHeightPixels; // image height (pixels)
  22. LONG mtiXResolution; // image x resolution
  23. LONG mtiYResolution; // image y resolution
  24. LONG mtiNumChannels; // number of channels used
  25. LONG mtiBitsPerChannel[8]; // number of bits per channel
  26. LONG mtiPlanar; // TRUE - planar, FALSE - packed
  27. LONG mtiDataType; // WIA data type
  28. BYTE *mtipBits; // pointer to image data bits
  29. }MEMORY_TRANSFER_INFO, *PMEMORY_TRANSFER_INFO;
  30. //
  31. // Imported data source entry retuned to DSM. Every data source from us
  32. // shares this entry point.
  33. //
  34. TW_UINT16 APIENTRY ImportedDSEntry(HANDLE hDS,TW_IDENTITY *AppId,TW_UINT32 DG,
  35. TW_UINT16 DT,TW_UINT16 MSG,TW_MEMREF pData);
  36. extern HINSTANCE g_hInstance;
  37. #endif // #ifndef __WIADSS_H_