245 lines
7.3 KiB
Plaintext
245 lines
7.3 KiB
Plaintext
import "oaidl.idl";
|
|
import "ocidl.idl";
|
|
|
|
|
|
typedef float single;
|
|
|
|
// Generated .IDL file (by the OLE/COM Object Viewer)
|
|
//
|
|
// typelib filename: IMGSCAN.OCX
|
|
// Forward declare all types defined in this typelib
|
|
dispinterface _DImgScan;
|
|
dispinterface _DImgScanEvents;
|
|
|
|
[
|
|
uuid(84926CA3-2941-101C-816F-0E6013114B7F),
|
|
version(1.0),
|
|
helpstring("Kodak Image Scan Control"),
|
|
helpfile("imgocxd.hlp"),
|
|
helpcontext(00000000)
|
|
]
|
|
library ScanLibCtl
|
|
{
|
|
// TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
|
|
importlib("STDOLE2.TLB");
|
|
|
|
typedef enum {
|
|
TIFF = 1,
|
|
AWD_MicrosoftFax = 2,
|
|
BMP_Bitmap = 3
|
|
} FileTypeConstants;
|
|
|
|
typedef enum {
|
|
NoCompression = 1,
|
|
CCITTGroup3_1d_Fax = 2,
|
|
CCITTGroup3_1d_ModifiedHuffman = 3,
|
|
PackedBits = 4,
|
|
CCITTGroup4_2d_Fax = 5,
|
|
JPEG = 6,
|
|
LZW = 7
|
|
} CompressionTypeConstants;
|
|
|
|
typedef enum {
|
|
CreateNewFile = 0,
|
|
PromptToCreateNewFile = 1,
|
|
AppendPages = 2,
|
|
InsertPages = 3,
|
|
OverwritePages = 4,
|
|
PromptToOverwritePages = 5,
|
|
OverwriteAllPages = 6
|
|
} PageOptionConstants;
|
|
|
|
typedef enum {
|
|
BlackAndWhite = 1,
|
|
Gray16Shades = 2,
|
|
Gray256Shades = 3,
|
|
Color16Count = 4,
|
|
Color256Count = 5,
|
|
TrueColor24bit = 6,
|
|
HighColor24bit = 7
|
|
} PageTypeConstants;
|
|
|
|
typedef enum {
|
|
BlackAndWhite1Bit = 1,
|
|
Gray4Bit = 2,
|
|
Gray8Bit = 3,
|
|
ColorPal8Bit = 4,
|
|
TrueColor24bitRGB = 5,
|
|
ColorPal4Bit = 6
|
|
} ImageTypeConstants;
|
|
|
|
typedef enum {
|
|
BestDisplay = 0,
|
|
GoodDisplay = 1,
|
|
SmallestFile = 2,
|
|
CustomSettings = 3
|
|
} CompPreferenceConstants;
|
|
|
|
typedef enum {
|
|
Uncompressed = 0,
|
|
CCITTGroup31D = 1,
|
|
CCITTGroup42D = 2,
|
|
TIFFPackbits = 4,
|
|
JPEGCompression = 8,
|
|
LZWCompression = 21
|
|
} CompTypeConstants;
|
|
|
|
typedef enum {
|
|
NoCompInfo = 0,
|
|
G31DModifiedHuffman = 0,
|
|
G31DModifiedHuffmanRBO = 4096,
|
|
G31DFax = 2304,
|
|
G31DFaxRBO = 6400,
|
|
G42DFax = 512,
|
|
G42DFaxRBO = 4608,
|
|
TIFFPackbitsInfo = 0,
|
|
LZWInfo = 0,
|
|
JPEGLowLow = 11610,
|
|
JPEGLowMed = 7740,
|
|
JPEGLowHigh = 3870,
|
|
JPEGMedLow = 27994,
|
|
JPEGMedMed = 24124,
|
|
JPEGMedHigh = 20254,
|
|
JPEGHighLow = -21158,
|
|
JPEGHighMed = -25028,
|
|
JPEGHighHigh = -28898
|
|
} CompInfoConstants;
|
|
|
|
typedef enum {
|
|
DisplayOnly = 0,
|
|
DisplayAndFile = 1,
|
|
FileOnly = 2,
|
|
DisplayAndUseFileTemplate = 3,
|
|
UseFileTemplateOnly = 4,
|
|
FaxOnly = 5
|
|
} ScanToConstants;
|
|
|
|
[
|
|
uuid(84926CA1-2941-101C-816F-0E6013114B7F),
|
|
helpstring("Dispatch interface for Scan Control")
|
|
]
|
|
dispinterface _DImgScan {
|
|
properties:
|
|
[id(0x00000001), helpcontext(0x00060225)
|
|
]
|
|
BSTR Image;
|
|
[id(0x00000002), helpcontext(0x00060223)
|
|
]
|
|
BSTR DestImageControl;
|
|
[id(0x00000003), helpcontext(0x0006022c)
|
|
]
|
|
VARIANT_BOOL Scroll;
|
|
[id(0x00000004), helpcontext(0x00060220)
|
|
]
|
|
VARIANT_BOOL StopScanBox;
|
|
[id(0x00000005), helpcontext(0x00060227)
|
|
]
|
|
long Page;
|
|
[id(0x00000006), helpcontext(0x00060229)
|
|
]
|
|
PageOptionConstants PageOption;
|
|
[id(0x00000007), helpcontext(0x00060228)
|
|
]
|
|
long PageCount;
|
|
[id(0x00000008), helpcontext(0x0006022d)
|
|
]
|
|
long StatusCode;
|
|
[id(0x00000009), helpcontext(0x00060224)
|
|
]
|
|
FileTypeConstants FileType;
|
|
[id(0x0000000a), hidden, helpcontext(0x0006022a)
|
|
]
|
|
PageTypeConstants PageType;
|
|
[id(0x0000000b), hidden, helpcontext(0x00060221)
|
|
]
|
|
CompressionTypeConstants CompressionType;
|
|
[id(0x0000000c), hidden, helpcontext(0x00060222)
|
|
]
|
|
long CompressionInfo;
|
|
[id(0x0000000d), helpcontext(0x00060226)
|
|
]
|
|
VARIANT_BOOL MultiPage;
|
|
[id(0x0000000e), helpcontext(0x0006022b)
|
|
]
|
|
ScanToConstants ScanTo;
|
|
[id(0x0000000f), helpcontext(0x0006022e)
|
|
]
|
|
single Zoom;
|
|
[id(0x00000010), helpcontext(0x0006022f)
|
|
]
|
|
VARIANT_BOOL ShowSetupBeforeScan;
|
|
methods:
|
|
[id(0x00000064), helpcontext(0x00060242)]
|
|
long OpenScanner();
|
|
[id(0x00000065), hidden, helpcontext(0x00060245)]
|
|
long ShowScannerSetup();
|
|
[id(0x00000066), helpcontext(0x00060247)]
|
|
long StartScan();
|
|
[id(0x00000067), helpcontext(0x00060241)]
|
|
long CloseScanner();
|
|
[id(0x00000068), helpcontext(0x00060244)]
|
|
VARIANT_BOOL ScannerAvailable();
|
|
[id(0x00000069), helpcontext(0x00060246)]
|
|
long ShowSelectScanner();
|
|
[id(0x0000006a), helpcontext(0x0006024a)]
|
|
long StopScan();
|
|
[id(0x0000006b), helpcontext(0x00060243)]
|
|
long ResetScanner();
|
|
[id(0x0000006c), helpcontext(0x00060248)]
|
|
long ShowScanNew([optional] VARIANT Modal);
|
|
[id(0x0000006d), helpcontext(0x00060249)]
|
|
long ShowScanPage([optional] VARIANT Modal);
|
|
[id(0x0000006e), hidden]
|
|
void SetExternalImageName(BSTR szImageTitle);
|
|
[id(0x0000006f), hidden]
|
|
BSTR GetVersion();
|
|
[id(0x00000070), helpcontext(0x0006024b)]
|
|
long ShowScanPreferences();
|
|
[id(0x00000073), helpcontext(0x0006024e)]
|
|
CompTypeConstants GetPageTypeCompressionType(ImageTypeConstants ImageType);
|
|
[id(0x00000074), helpcontext(0x0006025f)]
|
|
CompInfoConstants GetPageTypeCompressionInfo(ImageTypeConstants ImageType);
|
|
[id(0x00000075), helpcontext(0x00060263)]
|
|
CompPreferenceConstants GetCompressionPreference();
|
|
[id(0x00000076), helpcontext(0x00060264)]
|
|
short SetPageTypeCompressionOpts(
|
|
CompPreferenceConstants CompPref,
|
|
ImageTypeConstants ImageType,
|
|
CompTypeConstants CompType,
|
|
CompInfoConstants CompInfo);
|
|
[id(0x00000077), hidden]
|
|
void SetScannerName(BSTR szScannerName);
|
|
[id(0xfffffdd8), helpcontext(0x0006004e)]
|
|
void AboutBox();
|
|
};
|
|
|
|
[
|
|
uuid(84926CA2-2941-101C-816F-0E6013114B7F),
|
|
helpstring("Event interface for Kodak Image Scan Control")
|
|
]
|
|
dispinterface _DImgScanEvents {
|
|
properties:
|
|
methods:
|
|
[id(0x00000001), helpcontext(0x00060260)]
|
|
void ScanStarted();
|
|
[id(0x00000002), helpcontext(0x00060261)]
|
|
void ScanDone();
|
|
[id(0x00000003), helpcontext(0x00060262)]
|
|
void PageDone(long PageNumber);
|
|
[id(0x00000004), helpcontext(0x00060265)]
|
|
void ScanUIDone();
|
|
};
|
|
|
|
[
|
|
uuid(84926CA0-2941-101C-816F-0E6013114B7F),
|
|
helpstring("Kodak Image Scan Control"),
|
|
helpcontext(0x00060210),
|
|
control
|
|
]
|
|
coclass ImgScan {
|
|
[default] dispinterface _DImgScan;
|
|
[default, source] dispinterface _DImgScanEvents;
|
|
};
|
|
};
|
|
|