gdidefs.inc
来自「用于查询PC机上的USB端口是否有设备挂接上」· INC 代码 · 共 1,679 行 · 第 1/5 页
INC
1,679 行
/* StretchBlt Mode definitions used by GDI support routines written in C */
#define STRETCH_ANDSCANS 1
#define STRETCH_ORSCANS 2
#define STRETCH_DELETESCANS 3
#define STRETCH_HALFTONE 4
#define SBM_BLACKONWHITE STRETCH_ANDSCANS
#define SBM_WHITEONBLACK STRETCH_ORSCANS
#define SBM_COLORONCOLOR STRETCH_DELETESCANS
#define SBM_HALFTONE STRETCH_HALFTONE
/*
endif
endif
endif
page
; The SCAN structure used by OS_POLYSCANLINE and DRAWESCAPE.
; The DRAWESCAPE structure is used by the DrawEcape DDI.
ifdef incPolyScanline
if incPolyScanline
SCAN struc ;*/ typedef struct { /*
scnPntCnt dw ? ;Count of X coords (not pairs) ;*/ short int scnPntCnt; /*
scnPntTop dw ? ;Top of scan (inclusive) ;*/ short int scnPntTop; /*
scnPntBottom dw ? ;Bottom of scan (exclusive) ;*/ short int scnPntBottom; /*
scnPntX dw 2 dup (?) ;Var. length array of X pairs ;*/ short int scnPntX[2]; /*
scnPntCntToo dw ? ;=scnPntCnt ;*/ short int scnPntCntToo; /*
SCAN ends ;*/ } SCAN, FAR* LPSCAN; /*
DRAWESCAPE struc ;*/ typedef struct { /*
de_cbSize dd ? ;sizeof(DRAWESCAPE) ;*/ DWORD cbSize; /*
de_lpDestDev dd ? ;PDEVICE or PBITMAP ;*/ LPVOID lpDestDev; /*
de_nEscape dd ? ;API parameter ;*/ DWORD nEscape; /*
de_cbInput dd ? ;API parameter ;*/ DWORD cbInput; /*
de_lpszInput dd ? ;API parameter ;*/ LPVOID lpInput; /*
de_ptOrigin dd ? ;origin of window ;*/ POINT ptOrigin; /*
de_dwUniq dd ? ;region uniqueness value ;*/ DWORD dwUniq; /*
de_rcBBox dw 4 dup (?) ;bounding box of region ;*/ RECT rcBBox; /*
de_cScans dd ? ;count of scans in region ;*/ DWORD cScans; /*
de_lpScan dd ? ;ptr to first scan in region ;*/ LPSCAN lpScan; /*
DRAWESCAPE ends ;*/ } DRAWESCAPE, FAR* LPDRAWESCAPE; /*
REGION struc ;*/ typedef struct { /*
rgn_id dw ? ;if LPREGION 0x8000 else LPRECT ;*/ WORD id; /*
rgn_cbSize dw ? ;sizeof(REGION) ;*/ WORD cbSize; /*
rgn_lprcClip dd ? ;NULL or region walking opt. ;*/ LPRECT lprcClip; /*
rgn_dwUniq dd ? ;region uniqueness value ;*/ DWORD dwUniq; /*
rgn_rcBBox dw 4 dup (?) ;bounding box of region ;*/ RECT rcBBox; /*
rgn_cScans dd ? ;count of scans in region ;*/ DWORD cScans; /*
rgn_lpScan dd ? ;ptr to first scan in region ;*/ LPSCAN lpScan; /*
REGION ends ;*/ } REGION, FAR* LPREGION; /*
endif ;incPolyScanline
endif ;incPolyScanline
; Output Definitions - incOutput
ifdef incOutput
if incOutput
; Output Style definitions used by GDI
OS_POLYBEZIER equ 1
OS_ARC equ 3
OS_SCANLINES equ 4
OS_POLYSCANLINE equ 5
OS_RECTANGLE equ 6
OS_ELLIPSE equ 7
OS_MARKER equ 8
OS_POLYLINE equ 18
OS_WINDPOLYGON equ 20
OS_TRAPEZOID equ 20 ; replaced with WINDPOLYGON
OS_ALTPOLYGON equ 22
OS_POLYGON equ 22 ; replaced with ALTPOLYGON
OS_PIE equ 23
OS_POLYMARKER equ 24
OS_CHORD equ 39
OS_CIRCLE equ 55
OS_POLYPOLYGON equ 4000h ; this bit is ORd with OS_WIND/ALTPOLYGON
OS_BEGINNSCAN equ 80
OS_ENDNSCAN equ 81
if 0
*/
/* Output Style definitions used by GDI support routines written in C */
#define OS_POLYBEZIER 1
#define OS_ARC 3
#define OS_SCANLINES 4
#define OS_POLYSCANLINE 5
#define OS_RECTANGLE 6
#define OS_ELLIPSE 7
#define OS_MARKER 8
#define OS_POLYLINE 18
#define OS_TRAPEZOID 20 /* should really be WINDPOLYGON */
#define OS_WINDPOLYGON OS_TRAPEZOID
#define OS_POLYGON 22 /* should really be ALTPOLYGON */
#define OS_ALTPOLYGON OS_POLYGON
#define OS_PIE 23
#define OS_POLYMARKER 24
#define OS_CHORD 39
#define OS_CIRCLE 55
#define OS_POLYPOLYGON 0x4000 /* this bit is ORd with OS_WIND/ALTPOLYGON */
#define OS_BEGINNSCAN 80
#define OS_ENDNSCAN 81
/*
endif
endif
endif
ifdef incControl
if incControl
OEM_FAILED equ 8000000
; GDI escape constants
NEWFRAME equ 1
ABORTDOC equ 2
NEXTBAND equ 3
SETCOLORTABLE equ 4
GETCOLORTABLE equ 5
FLUSHOUTPUT equ 6
DRAFTMODE equ 7
QUERYESCSUPPORT equ 8
SETPRINTERDC equ 9
SETABORTPROC equ 9
STARTDOC equ 10
ENDDOC equ 11
GETPHYSPAGESIZE equ 12
GETPRINTINGOFFSET equ 13
GETSCALINGFACTOR equ 14
MFCOMMENT equ 15
GETPENWIDTH equ 16
SETCOPYCOUNT equ 17
SELECTPAPERSOURCE equ 18
DEVICEDATA equ 19
PASSTHROUGH equ 19
GETTECHNOLGY equ 20
GETTECHNOLOGY equ 20
SETLINECAP equ 21
SETLINEJOIN equ 22
SETMITERLIMIT equ 23
BANDINFO equ 24
DRAWPATTERNRECT equ 25
GETVECTORPENSIZE equ 26
GETVECTORBRUSHSIZE equ 27
ENABLEDUPLEX equ 28
GETSETPAPERBINS equ 29
GETSETPRINTORIENT equ 30
ENUMPAPERBINS equ 31
SETDIBSCALING equ 32
EPSPRINTING equ 33
ENUMPAPERMETRICS equ 34
GETSETPAPERMETRICS equ 35
GETVERSION equ 36
POSTSCRIPT_DATA equ 37
POSTSCRIPT_IGNORE equ 38
MOUSETRAILS equ 39
QUERYROPSUPPORT equ 40
GETDEVICEUNITS equ 42
RESETDEVICE equ 128
GETEXTENDEDTEXTMETRICS equ 256
GETEXTENTTABLE equ 257
GETPAIRKERNTABLE equ 258
GETTRACKKERNTABLE equ 259
EXTTEXTOUT equ 512
GETFACENAME equ 513
DOWNLOADFACE equ 514
ENABLERELATIVEWIDTHS equ 768
ENABLEPAIRKERNING equ 769
SETKERNTRACK equ 770
SETALLJUSTVALUES equ 771
SETCHARSET equ 772
STRETCHBLT equ 2048
QUERYDIBSUPPORT equ 3073
QDI_SETDIBITS equ 1h
QDI_GETDIBITS equ 2h
QDI_DIBTOSCREEN equ 4h
QDI_STRETCHDIB equ 8h
DCICOMMAND equ 3075
VIDEO_PARAMETERS equ 3077 ; to set Display video params.
BEGIN_PATH equ 4096
CLIP_TO_PATH equ 4097
END_PATH equ 4098
EXT_DEVICE_CAPS equ 4099
RESTORE_CTM equ 4100
SAVE_CTM equ 4101
SET_ARC_DIRECTION equ 4102
SET_BACKGROUND_COLOR equ 4103
SET_POLY_MODE equ 4104
SET_SCREEN_ANGLE equ 4105
SET_SPREAD equ 4106
TRANSFORM_CTM equ 4107
SET_CLIP_BOX equ 4108
SET_BOUNDS equ 4109
OPENCHANNEL equ 4110
DOWNLOADHEADER equ 4111
CLOSECHANNEL equ 4112
SETGDIXFORM equ 4113
RESETPAGE equ 4114
POSTSCRIPT_PASSTHROUGH equ 4115
ENCAPSULATED_POSTSCRIPT equ 4116
if 0
*/
#define OEM_FAILED 0x80000000L
#define NEWFRAME 1
#define ABORTDOC 2
#define NEXTBAND 3
#define SETCOLORTABLE 4
#define GETCOLORTABLE 5
#define FLUSHOUTPUT 6
#define DRAFTMODE 7
#define QUERYESCSUPPORT 8
#define SETPRINTERDC 9 // DDK - between GDI and Driver
#define SETABORTPROC 9 // SDK - between APP and GDI
#define STARTDOC 10
#define ENDDOC 11
#define GETPHYSPAGESIZE 12
#define GETPRINTINGOFFSET 13
#define GETSCALINGFACTOR 14
#define MFCOMMENT 15
#define GETPENWIDTH 16
#define SETCOPYCOUNT 17
#define SELECTPAPERSOURCE 18
#define DEVICEDATA 19
#define PASSTHROUGH 19
#define GETTECHNOLGY 20
#define GETTECHNOLOGY 20
#define SETLINECAP 21
#define SETLINEJOIN 22
#define SETMITERLIMIT 23
#define BANDINFO 24
#define DRAWPATTERNRECT 25
#define GETVECTORPENSIZE 26
#define GETVECTORBRUSHSIZE 27
#define ENABLEDUPLEX 28
#define GETSETPAPERBINS 29
#define GETSETPRINTORIENT 30
#define ENUMPAPERBINS 31
#define SETDIBSCALING 32
#define EPSPRINTING 33
#define ENUMPAPERMETRICS 34
#define GETSETPAPERMETRICS 35
#define GETVERSION 36 /* ADOBE_11_1_88 */
#define POSTSCRIPT_DATA 37
#define POSTSCRIPT_IGNORE 38
#define QUERYROPSUPPORT 40
#define GETDEVICEUNITS 42
#define RESETDEVICE 128
#define GETEXTENDEDTEXTMETRICS 256
#define GETEXTENTTABLE 257
#define GETPAIRKERNTABLE 258
#define GETTRACKKERNTABLE 259
#define EXTTEXTOUT 512
#define GETFACENAME 513
#define DOWNLOADFACE 514 /* ADOBE_11_1_88 */
#define ENABLERELATIVEWIDTHS 768
#define ENABLEPAIRKERNING 769
#define SETKERNTRACK 770
#define SETALLJUSTVALUES 771
#define SETCHARSET 772
#define STRETCHBLT 2048
#define QUERYDIBSUPPORT 3073
#define QDI_SETDIBITS 0x0001
#define QDI_GETDIBITS 0x0002
#define QDI_DIBTOSCREEN 0x0004
#define QDI_STRETCHDIB 0x0008
#define DCICOMMAND 3075
#define BEGIN_PATH 4096
#define CLIP_TO_PATH 4097
#define END_PATH 4098
#define EXT_DEVICE_CAPS 4099
#define RESTORE_CTM 4100
#define SAVE_CTM 4101
#define SET_ARC_DIRECTION 4102
#define SET_BACKGROUND_COLOR 4103
#define SET_POLY_MODE 4104
#define SET_SCREEN_ANGLE 4105
#define SET_SPREAD 4106
#define TRANSFORM_CTM 4107
#define SET_CLIP_BOX 4108
#define SET_BOUNDS 4109
#define OPENCHANNEL 4110
#define DOWNLOADHEADER 4111
#define CLOSECHANNEL 4112
#define SETGDIXFORM 4113
#define RESETPAGE 4114
#define POSTSCRIPT_PASSTHROUGH 4115
#define ENCAPSULATED_POSTSCRIPT 4116
typedef FONTINFO FAR *LPFONTINFO;
typedef DRAWMODE FAR *LPDRAWMODE;
typedef TEXTXFORM FAR *LPTEXTXFORM;
typedef TEXTMETRIC FAR *LPTEXTMETRIC;
typedef LOGFONT FAR *LPLOGFONT;
typedef LOGPEN FAR *LPLOGPEN;
typedef LOGBRUSH FAR *LPLOGBRUSH;
typedef BITMAP FAR *LPBITMAP;
typedef FARPROC FAR *LPFARPROC;
typedef GDIINFO FAR *LPGDIINFO;
typedef SCALABLEFONTINFO FAR * LPSCALABLEFONTINFO;
/*
endif
endif
endif
;*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?