📄 twain.h
字号:
#define TWCY_AUSTRIA 43
#define TWCY_BAHAMAS 8092
#define TWCY_BAHRAIN 973
#define TWCY_BANGLADESH 880
#define TWCY_BARBADOS 8093
#define TWCY_BELGIUM 32
#define TWCY_BELIZE 501
#define TWCY_BENIN 229
#define TWCY_BERMUDA 8094
#define TWCY_BHUTAN 1003
#define TWCY_BOLIVIA 591
#define TWCY_BOTSWANA 267
#define TWCY_BRITAIN 6
#define TWCY_BRITVIRGINIS 8095
#define TWCY_BRAZIL 55
#define TWCY_BRUNEI 673
#define TWCY_BULGARIA 359
#define TWCY_BURKINAFASO 1004
#define TWCY_BURMA 1005
#define TWCY_BURUNDI 1006
#define TWCY_CAMAROON 237
#define TWCY_CANADA 2
#define TWCY_CAPEVERDEIS 238
#define TWCY_CAYMANIS 8096
#define TWCY_CENTRALAFREP 1007
#define TWCY_CHAD 1008
#define TWCY_CHILE 56
#define TWCY_CHINA 86
#define TWCY_CHRISTMASIS 1009
#define TWCY_COCOSIS 1009
#define TWCY_COLOMBIA 57
#define TWCY_COMOROS 1010
#define TWCY_CONGO 1011
#define TWCY_COOKIS 1012
#define TWCY_COSTARICA 506
#define TWCY_CUBA 005
#define TWCY_CYPRUS 357
#define TWCY_CZECHOSLOVAKIA 42
#define TWCY_DENMARK 45
#define TWCY_DJIBOUTI 1013
#define TWCY_DOMINICA 8097
#define TWCY_DOMINCANREP 8098
#define TWCY_EASTERIS 1014
#define TWCY_ECUADOR 593
#define TWCY_EGYPT 20
#define TWCY_ELSALVADOR 503
#define TWCY_EQGUINEA 1015
#define TWCY_ETHIOPIA 251
#define TWCY_FALKLANDIS 1016
#define TWCY_FAEROEIS 298
#define TWCY_FIJIISLANDS 679
#define TWCY_FINLAND 358
#define TWCY_FRANCE 33
#define TWCY_FRANTILLES 596
#define TWCY_FRGUIANA 594
#define TWCY_FRPOLYNEISA 689
#define TWCY_FUTANAIS 1043
#define TWCY_GABON 241
#define TWCY_GAMBIA 220
#define TWCY_GERMANY 49
#define TWCY_GHANA 233
#define TWCY_GIBRALTER 350
#define TWCY_GREECE 30
#define TWCY_GREENLAND 299
#define TWCY_GRENADA 8099
#define TWCY_GRENEDINES 8015
#define TWCY_GUADELOUPE 590
#define TWCY_GUAM 671
#define TWCY_GUANTANAMOBAY 5399
#define TWCY_GUATEMALA 502
#define TWCY_GUINEA 224
#define TWCY_GUINEABISSAU 1017
#define TWCY_GUYANA 592
#define TWCY_HAITI 509
#define TWCY_HONDURAS 504
#define TWCY_HONGKONG 852
#define TWCY_HUNGARY 36
#define TWCY_ICELAND 354
#define TWCY_INDIA 91
#define TWCY_INDONESIA 62
#define TWCY_IRAN 98
#define TWCY_IRAQ 964
#define TWCY_IRELAND 353
#define TWCY_ISRAEL 972
#define TWCY_ITALY 39
#define TWCY_IVORYCOAST 225
#define TWCY_JAMAICA 8010
#define TWCY_JAPAN 81
#define TWCY_JORDAN 962
#define TWCY_KENYA 254
#define TWCY_KIRIBATI 1018
#define TWCY_KOREA 82
#define TWCY_KUWAIT 965
#define TWCY_LAOS 1019
#define TWCY_LEBANON 1020
#define TWCY_LIBERIA 231
#define TWCY_LIBYA 218
#define TWCY_LIECHTENSTEIN 41
#define TWCY_LUXENBOURG 352
#define TWCY_MACAO 853
#define TWCY_MADAGASCAR 1021
#define TWCY_MALAWI 265
#define TWCY_MALAYSIA 60
#define TWCY_MALDIVES 960
#define TWCY_MALI 1022
#define TWCY_MALTA 356
#define TWCY_MARSHALLIS 692
#define TWCY_MAURITANIA 1023
#define TWCY_MAURITIUS 230
#define TWCY_MEXICO 3
#define TWCY_MICRONESIA 691
#define TWCY_MIQUELON 508
#define TWCY_MONACO 33
#define TWCY_MONGOLIA 1024
#define TWCY_MONTSERRAT 8011
#define TWCY_MOROCCO 212
#define TWCY_MOZAMBIQUE 1025
#define TWCY_NAMIBIA 264
#define TWCY_NAURU 1026
#define TWCY_NEPAL 977
#define TWCY_NETHERLANDS 31
#define TWCY_NETHANTILLES 599
#define TWCY_NEVIS 8012
#define TWCY_NEWCALEDONIA 687
#define TWCY_NEWZEALAND 64
#define TWCY_NICARAGUA 505
#define TWCY_NIGER 227
#define TWCY_NIGERIA 234
#define TWCY_NIUE 1027
#define TWCY_NORFOLKI 1028
#define TWCY_NORWAY 47
#define TWCY_OMAN 968
#define TWCY_PAKISTAN 92
#define TWCY_PALAU 1029
#define TWCY_PANAMA 507
#define TWCY_PARAGUAY 595
#define TWCY_PERU 51
#define TWCY_PHILLIPPINES 63
#define TWCY_PITCAIRNIS 1030
#define TWCY_PNEWGUINEA 675
#define TWCY_POLAND 48
#define TWCY_PORTUGAL 351
#define TWCY_QATAR 974
#define TWCY_REUNIONI 1031
#define TWCY_ROMANIA 40
#define TWCY_RWANDA 250
#define TWCY_SAIPAN 670
#define TWCY_SANMARINO 039
#define TWCY_SAOTOME 1033
#define TWCY_SAUDIARABIA 966
#define TWCY_SENEGAL 221
#define TWCY_SEYCHELLESIS 1034
#define TWCY_SIERRALEONE 1035
#define TWCY_SINGAPORE 65
#define TWCY_SOLOMONIS 1036
#define TWCY_SOMALI 1037
#define TWCY_SOUTHAFRICA 27
#define TWCY_SPAIN 34
#define TWCY_SRILANKA 94
#define TWCY_STHELENA 1032
#define TWCY_STKITTS 8013
#define TWCY_STLUCIA 8014
#define TWCY_STPIERRE 508
#define TWCY_STVINCENT 8015
#define TWCY_SUDAN 1038
#define TWCY_SURINAME 597
#define TWCY_SWAZILAND 268
#define TWCY_SWEDEN 46
#define TWCY_SWITZERLAND 41
#define TWCY_SYRIA 1039
#define TWCY_TAIWAN 886
#define TWCY_TANZANIA 255
#define TWCY_THAILAND 66
#define TWCY_TOBAGO 8016
#define TWCY_TOGO 228
#define TWCY_TONGAIS 676
#define TWCY_TRINIDAD 8016
#define TWCY_TUNISIA 216
#define TWCY_TURKEY 90
#define TWCY_TURKSCAICOS 8017
#define TWCY_TUVALU 1040
#define TWCY_UGANDA 256
#define TWCY_USSR 7
#define TWCY_UAEMIRATES 971
#define TWCY_UNITEDKINGDOM 44
#define TWCY_USA 1
#define TWCY_URUGUAY 598
#define TWCY_VANUATU 1041
#define TWCY_VATICANCITY 39
#define TWCY_VENEZUELA 58
#define TWCY_WAKE 1042
#define TWCY_WALLISIS 1043
#define TWCY_WESTERNSAHARA 1044
#define TWCY_WESTERNSAMOA 1045
#define TWCY_YEMEN 1046
#define TWCY_YUGOSLAVIA 38
#define TWCY_ZAIRE 243
#define TWCY_ZAMBIA 260
#define TWCY_ZIMBABWE 263
/****************************************************************************
* Language Constants *
****************************************************************************/
#define TWLG_DAN 0 /* Danish */
#define TWLG_DUT 1 /* Dutch */
#define TWLG_ENG 2 /* International English */
#define TWLG_FCF 3 /* French Canadian */
#define TWLG_FIN 4 /* Finnish */
#define TWLG_FRN 5 /* French */
#define TWLG_GER 6 /* German */
#define TWLG_ICE 7 /* Icelandic */
#define TWLG_ITN 8 /* Italian */
#define TWLG_NOR 9 /* Norwegian */
#define TWLG_POR 10 /* Portuguese */
#define TWLG_SPA 11 /* Spanish */
#define TWLG_SWE 12 /* Swedish */
#define TWLG_USA 13 /* U.S. English */
/****************************************************************************
* Data Groups *
****************************************************************************/
/* More Data Groups may be added in the future.
* Possible candidates include text, vector graphics, sound, etc.
* NOTE: Data Group constants must be powers of 2 as they are used
* as bitflags when App asks DSM to present a list of DSs.
*/
#define DG_CONTROL 0x0001L /* data pertaining to control */
#define DG_IMAGE 0x0002L /* data pertaining to raster images */
/****************************************************************************
* Data Argument Types *
****************************************************************************/
/* SDH - 03/23/95 - WATCH */
/* The thunker requires knowledge about size of data being passed in the */
/* lpData parameter to DS_Entry (which is not readily available due to */
/* type LPVOID. Thus, we key off the DAT_ argument to determine the size. */
/* This has a couple implications: */
/* 1) Any additional DAT_ features require modifications to the thunk code */
/* for thunker support. */
/* 2) Any applications which use the custom capabailites are not supported */
/* under thunking since we have no way of knowing what size data (if */
/* any) is being passed. */
#define DAT_NULL 0x0000 /* No data or structure. */
#define DAT_CUSTOMBASE 0x8000 /* Base of custom DATs. */
/* Data Argument Types for the DG_CONTROL Data Group. */
#define DAT_CAPABILITY 0x0001 /* TW_CAPABILITY */
#define DAT_EVENT 0x0002 /* TW_EVENT */
#define DAT_IDENTITY 0x0003 /* TW_IDENTITY */
#define DAT_PARENT 0x0004 /* TW_HANDLE, app win handle in Windows */
#define DAT_PENDINGXFERS 0x0005 /* TW_PENDINGXFERS */
#define DAT_SETUPMEMXFER 0x0006 /* TW_SETUPMEMXFER */
#define DAT_SETUPFILEXFER 0x0007 /* TW_SETUPFILEXFER */
#define DAT_STATUS 0x0008 /* TW_STATUS */
#define DAT_USERINTERFACE 0x0009 /* TW_USERINTERFACE */
#define DAT_XFERGROUP 0x000a /* TW_UINT32 */
/* SDH - 03/21/95 - TWUNK */
/* Additional message required for thunker to request the special */
/* identity information. */
#define DAT_TWUNKIDENTITY 0x000b /* TW_TWUNKIDENTITY */
/* Data Argument Types for the DG_IMAGE Data Group. */
#define DAT_IMAGEINFO 0x0101 /* TW_IMAGEINFO */
#define DAT_IMAGELAYOUT 0x0102 /* TW_IMAGELAYOUT */
#define DAT_IMAGEMEMXFER 0x0103 /* TW_IMAGEMEMXFER */
#define DAT_IMAGENATIVEXFER 0x0104 /* TW_UINT32 loword is hDIB, PICHandle */
#define DAT_IMAGEFILEXFER 0x0105 /* Null data */
#define DAT_CIECOLOR 0x0106 /* TW_CIECOLOR */
#define DAT_GRAYRESPONSE 0x0107 /* TW_GRAYRESPONSE */
#define DAT_RGBRESPONSE 0x0108 /* TW_RGBRESPONSE */
#define DAT_JPEGCOMPRESSION 0x0109 /* TW_JPEGCOMPRESSION */
#define DAT_PALETTE8 0x010a /* TW_PALETTE8 */
/****************************************************************************
* Messages *
****************************************************************************/
/* All message constants are unique.
* Messages are grouped according to which DATs they are used with.*/
#define MSG_NULL 0x0000 /* Used in TW_EVENT structure */
#define MSG_CUSTOMBASE 0x8000 /* Base of custom messages */
/* Generic messages may be used with any of several DATs. */
#define MSG_GET 0x0001 /* Get one or more values */
#define MSG_GETCURRENT 0x0002 /* Get current value */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -