C# Data Types

Top  Previous  Next

The following table shows C# data types that correspond to DTWAIN data types for 32-bit applications.

 

DTWAIN Data Type

C# Type

DTWAIN_ARRAY

int

DTWAIN_CALLBACK_PROC

Dynarithmic.TwainAPI.DTwainCallback

DTWAIN_BOOL

int

DTWAIN_FLOAT

double

DTWAIN_FRAME

int

DTWAIN_IDENTITY

int

DTWAIN_OCRENGINE

int

DTWAIN_PDFTEXTELEMENT

int

DTWAIN_RANGE

int

DTWAIN_SOURCE

int

HANDLE

int

DTWAIN_LONG (or LONG)

int

DTWAIN_LONG64

long

LPCTSTR

string

LPDTWAIN_ARRAY

ref int

LPDTWAIN_FLOAT

ref double

LPLONG

ref int

LPLONG64

ref long

LPTSTR

StringBuilder

 

 

For 64-bit applications the following table shows the C# data types that correspond to DTWAIN data types:

 

DTWAIN Data Type

C# Type

DTWAIN_ARRAY

long

DTWAIN_CALLBACK_PROC

Dynarithmic.TwainAPI.DTwainCallback

DTWAIN_BOOL

int

DTWAIN_FLOAT

double

DTWAIN_FRAME

long

DTWAIN_IDENTITY

long

DTWAIN_OCRENGINE

long

DTWAIN_PDFTEXTELEMENT

long

DTWAIN_RANGE

long

DTWAIN_SOURCE

long

HANDLE

long

DTWAIN_LONG (or LONG)

int

DTWAIN_LONG64

long

LPCTSTR

string

LPDTWAIN_ARRAY

ref long

LPDTWAIN_FLOAT

ref double

LPLONG

ref int

LPLONG64

ref long

LPTSTR

StringBuilder