LibreOffice Module extensions (master) 1
Macros | Functions
twain32shim.hxx File Reference
#include <prewin.h>
#include <Shlobj.h>
#include <postwin.h>
#include <exception>
#include <string>
#include <sstream>
#include <iomanip>
Include dependency graph for twain32shim.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WM_TWAIN_EVENT   (WM_USER + 1)
 
#define TWAIN_EVENT_NOTIFYHWND   0
 
#define TWAIN_EVENT_REQUESTRESULT   1
 
#define TWAIN_EVENT_NONE   10
 
#define TWAIN_EVENT_QUIT   11
 
#define TWAIN_EVENT_SCANNING   12
 
#define TWAIN_EVENT_XFER   13
 
#define WM_TWAIN_REQUEST   (WM_USER + 2)
 
#define TWAIN_REQUEST_QUIT   0
 
#define TWAIN_REQUEST_SELECTSOURCE   1
 
#define TWAIN_REQUEST_INITXFER   2
 
#define WM_SHIM_INTERNAL   (WM_USER + 200)
 

Functions

template<typename IntType >
std::string Num2Hex (IntType n)
 
void ThrowWin32Error (const char *sFunc, DWORD nWin32Error)
 
void ThrowLastError (const char *sFunc)
 

Macro Definition Documentation

◆ TWAIN_EVENT_NONE

#define TWAIN_EVENT_NONE   10

Definition at line 33 of file twain32shim.hxx.

◆ TWAIN_EVENT_NOTIFYHWND

#define TWAIN_EVENT_NOTIFYHWND   0

Definition at line 27 of file twain32shim.hxx.

◆ TWAIN_EVENT_QUIT

#define TWAIN_EVENT_QUIT   11

Definition at line 34 of file twain32shim.hxx.

◆ TWAIN_EVENT_REQUESTRESULT

#define TWAIN_EVENT_REQUESTRESULT   1

Definition at line 30 of file twain32shim.hxx.

◆ TWAIN_EVENT_SCANNING

#define TWAIN_EVENT_SCANNING   12

Definition at line 35 of file twain32shim.hxx.

◆ TWAIN_EVENT_XFER

#define TWAIN_EVENT_XFER   13

Definition at line 38 of file twain32shim.hxx.

◆ TWAIN_REQUEST_INITXFER

#define TWAIN_REQUEST_INITXFER   2

Definition at line 45 of file twain32shim.hxx.

◆ TWAIN_REQUEST_QUIT

#define TWAIN_REQUEST_QUIT   0

Definition at line 43 of file twain32shim.hxx.

◆ TWAIN_REQUEST_SELECTSOURCE

#define TWAIN_REQUEST_SELECTSOURCE   1

Definition at line 44 of file twain32shim.hxx.

◆ WM_SHIM_INTERNAL

#define WM_SHIM_INTERNAL   (WM_USER + 200)

Definition at line 48 of file twain32shim.hxx.

◆ WM_TWAIN_EVENT

#define WM_TWAIN_EVENT   (WM_USER + 1)

Definition at line 24 of file twain32shim.hxx.

◆ WM_TWAIN_REQUEST

#define WM_TWAIN_REQUEST   (WM_USER + 2)

Definition at line 41 of file twain32shim.hxx.

Function Documentation

◆ Num2Hex()

template<typename IntType >
std::string Num2Hex ( IntType  n)

Definition at line 50 of file twain32shim.hxx.

References n.

Referenced by ThrowWin32Error().

◆ ThrowLastError()

void ThrowLastError ( const char *  sFunc)

Definition at line 66 of file twain32shim.hxx.

References ThrowWin32Error().

◆ ThrowWin32Error()

void ThrowWin32Error ( const char *  sFunc,
DWORD  nWin32Error 
)

Definition at line 58 of file twain32shim.hxx.

References Num2Hex().

Referenced by ThrowLastError().