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
24 lines
890 B
#pragma once
|
|
|
|
#include "resource.h" // resource IDs
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// wia scanner sample defines
|
|
|
|
#define ID_FAKE_NOEVENT 0
|
|
#define ID_FAKE_SCANBUTTON 100
|
|
#define ID_FAKE_COPYBUTTON 200
|
|
#define ID_FAKE_FAXBUTTON 300
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// registry settings
|
|
|
|
#define HKEY_WIASCANR_FAKE_EVENTS TEXT(".DEFAULT\\Software\\Microsoft\\WIASCANR")
|
|
#define HKEY_WIASCANR_FAKE_EVENTS_LOCAL_SERVICE TEXT("S-1-5-19\\Software\\Microsoft\\WIASCANR")
|
|
#define WIASCANR_DWORD_FAKE_EVENT_CODE TEXT("EventCode")
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// main application
|
|
|
|
INT_PTR CALLBACK MainWindowProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
|
VOID FireFakeEvent(HWND hDlg, DWORD dwEventCode);
|