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.

24 lines
890 B

  1. #pragma once
  2. #include "resource.h" // resource IDs
  3. ///////////////////////////////////////////////////////////////////////////////
  4. // wia scanner sample defines
  5. #define ID_FAKE_NOEVENT 0
  6. #define ID_FAKE_SCANBUTTON 100
  7. #define ID_FAKE_COPYBUTTON 200
  8. #define ID_FAKE_FAXBUTTON 300
  9. ///////////////////////////////////////////////////////////////////////////////
  10. // registry settings
  11. #define HKEY_WIASCANR_FAKE_EVENTS TEXT(".DEFAULT\\Software\\Microsoft\\WIASCANR")
  12. #define HKEY_WIASCANR_FAKE_EVENTS_LOCAL_SERVICE TEXT("S-1-5-19\\Software\\Microsoft\\WIASCANR")
  13. #define WIASCANR_DWORD_FAKE_EVENT_CODE TEXT("EventCode")
  14. ///////////////////////////////////////////////////////////////////////////////
  15. // main application
  16. INT_PTR CALLBACK MainWindowProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  17. VOID FireFakeEvent(HWND hDlg, DWORD dwEventCode);