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.

33 lines
936 B

  1. #ifndef _CMICRO
  2. #define _CMICRO
  3. #include "objidl.h"
  4. #include "wiamicro.h"
  5. typedef HRESULT (CALLBACK *FPMICROENTRY)(LONG, PVAL);
  6. typedef HRESULT (CALLBACK *FPSCANENTRY)(PSCANINFO, LONG, PBYTE, LONG, PLONG );
  7. typedef HRESULT (CALLBACK *FPSETPIXELWINDOWENTRY)(PSCANINFO, LONG, LONG, LONG, LONG);
  8. class CMICRO {
  9. public:
  10. CMICRO(TCHAR *pszMicroDriver);
  11. ~CMICRO();
  12. HRESULT MicroEntry(LONG lCommand, PVAL pValue);
  13. HRESULT Scan(PSCANINFO pScanInfo, LONG lPhase, PBYTE pBuffer, LONG lLength, PLONG plRecieved);
  14. HRESULT SetPixelWindow(PSCANINFO pScanInfo, LONG x, LONG y, LONG xExtent, LONG yExtent);
  15. HRESULT Disable();
  16. HRESULT UnInitialize(PSCANINFO pScanInfo);
  17. private:
  18. FPMICROENTRY m_pMicroEntry;
  19. FPSCANENTRY m_pScan;
  20. FPSETPIXELWINDOWENTRY m_pSetPixelWindow;
  21. HMODULE m_hModule;
  22. SCSISCAN_CMD m_ScsiScan;
  23. BOOL m_bDisabled;
  24. protected:
  25. };
  26. #endif