gdidefs.inc
来自「用于查询PC机上的USB端口是否有设备挂接上」· INC 代码 · 共 1,679 行 · 第 1/5 页
INC
1,679 行
*/
/* Object definitions used by GDI support routines written in C */
#define OBJ_PEN 1
#define OBJ_BRUSH 2
#define OBJ_FONT 3
/*
endif
LogBrush struc ;*/ typedef struct { /*
lbStyle dw 0 ;Style of logical BRUSH ;*/ unsigned short int lbStyle; /*
lbColor dd 0 ;RGB color ;*/ unsigned long int lbColor; /*
lbHatch dw 0 ;Hatching style ;*/ unsigned short int lbHatch; /*
lbBkColor dd 0 ;Background color for hatched brush ;*/ unsigned long int lbBkColor;/*
lbhcmXform dd 0 ;transform for image color matching ;*/ unsigned long int lbhcmXform;/*
LogBrush ends ;*/ } LOGBRUSH; /*
lbPattern = lbColor ; pointer to physical pattern
if 0
*/
#define lbPattern lbColor
/*
endif
; Brush styles defined by GDI
BS_SOLID equ 0
BS_HOLLOW equ 1
BS_HATCHED equ 2
BS_PATTERN equ 3
MaxBrushStyle equ 3
; Hatched Brush hatching styles defined by GDI
HS_HORIZONTAL equ 0 ; Horizontal -----
HS_VERTICAL equ 1 ; Vertical |||||
HS_FDIAGONAL equ 2 ; Foreward Diagonal /////
HS_BDIAGONAL equ 3 ; Backward Diagonal \\\\\
HS_CROSS equ 4 ; Cross +++++
HS_DIAGCROSS equ 5 ; Diagonal Cross XXXXX
MaxHatchStyle equ 5
if 0
*/
/* Brush Style definitions used by GDI support routines written in C */
#define BS_SOLID 0
#define BS_HOLLOW 1
#define BS_HATCHED 2
#define BS_PATTERN 3
#define MaxBrushStyle 3
/* Hatch Style definitions used by GDI support routines written in C */
#define HS_HORIZONTAL 0 /* ----- */
#define HS_VERTICAL 1 /* ||||| */
#define HS_FDIAGONAL 2 /* ///// */
#define HS_BDIAGONAL 3 /* \\\\\ */
#define HS_CROSS 4 /* +++++ */
#define HS_DIAGCROSS 5 /* xxxxx */
#define MaxHatchStyle 5
/*
endif
; Logical Pen Structure
LogPen struc ;*/ typedef struct { /*
lopnStyle dw 0 ;(solid, hollow, dashed..) ;*/ unsigned short int lopnStyle;/*
lopnWidth dw 0 ;This is really a point type ;*/ PTTYPE lopnWidth;/*
dw 0
lopnColor dd 0 ;*/ unsigned long int lopnColor;/*
lopnStyle2 dw 0 ;end caps and joins ;*/ unsigned short int lopnStyle2;/*
lopnhcmXform dd 0 ;transform for image color matching ;*/ unsigned long int lopnhcmXform;/*
LogPen ends ;*/ } LOGPEN; /*
errnz <(SIZE PTTYPE) -4>
; Line Style definitions for lopnStyle
LS_SOLID equ 0
LS_DASHED equ 1
LS_DOTTED equ 2
LS_DOTDASHED equ 3
LS_DASHDOTDOT equ 4
LS_NOLINE equ 5
LS_INSIDEFRAME equ 6
MaxLineStyle equ LS_NOLINE
; Line Style definitions for lopnStyle2
LS_ENDCAP_FLAT equ 01h
LS_ENDCAP_ROUND equ 02h
LS_ENDCAP_SQUARE equ 04h
LS_JOIN_BEVEL equ 08h
LS_JOIN_MITER equ 10h
LS_JOIN_ROUND equ 20h
if 0
*/
/* Line Style definitions used by GDI support routines written in C */
#define LS_SOLID 0
#define LS_DASHED 1
#define LS_DOTTED 2
#define LS_DOTDASHED 3
#define LS_DASHDOTDOT 4
#define LS_NOLINE 5
#define LS_INSIDEFRAME 6
#define MaxLineStyle LS_NOLINE
#define LS_ENDCAP_FLAT 0x01
#define LS_ENDCAP_ROUND 0x02
#define LS_ENDCAP_SQUARE 0x04
#define LS_JOIN_BEVEL 0x08
#define LS_JOIN_MITER 0x10
#define LS_JOIN_ROUND 0x20
/*
endif
; Various constants for defining a logical font.
OUT_DEFAULT_PRECIS equ 0
OUT_STRING_PRECIS equ 1
OUT_CHARACTER_PRECIS equ 2
OUT_STROKE_PRECIS equ 3
OUT_TT_PRECIS equ 4
OUT_DEVICE_PRECIS equ 5
OUT_RASTER_PRECIS equ 6
OUT_TT_ONLY_PRECIS equ 7
CLIP_DEFAULT_PRECIS equ 0
CLIP_CHARACTER_PRECIS equ 1
CLIP_STROKE_PRECIS equ 2
CLIP_MASK equ 00Fh
CLIP_LH_ANGLES equ 010h
CLIP_TT_ALWAYS equ 020h
CLIP_EMBEDDED equ 080h
DEFAULT_QUALITY equ 0
DRAFT_QUALITY equ 1
PROOF_QUALITY equ 2
DEFAULT_PITCH equ 0
FIXED_PITCH equ 1
VARIABLE_PITCH equ 2
ANSI_CHARSET equ 0
DEFAULT_CHARSET equ 1
SYMBOL_CHARSET equ 2
MAC_CHARSET equ 77
SHIFTJIS_CHARSET equ 128
HANGEUL_CHARSET equ 129
CHINESEBIG5_CHARSET equ 136
OEM_CHARSET equ 255
; GDI font families.
FF_DONTCARE equ 00000000b ; Don't care or don't know.
FF_ROMAN equ 00010000b ; Variable stroke width, serifed.
; Times Roman, Century Schoolbook, etc.
FF_SWISS equ 00100000b ; Variable stroke width, sans-serifed.
; Helvetica, Swiss, etc.
FF_MODERN equ 00110000b ; Constant stroke width, serifed or sans-serifed.
; Pica, Elite, Courier, etc.
FF_SCRIPT equ 01000000b ; Cursive, etc.
FF_DECORATIVE equ 01010000b ; Old English, etc.
; Font weights lightest to darkest.
FW_DONTCARE equ 0d
FW_THIN equ 100d
FW_EXTRALIGHT equ 200d
FW_LIGHT equ 300d
FW_NORMAL equ 400d
FW_MEDIUM equ 500d
FW_SEMIBOLD equ 600d
FW_BOLD equ 700d
FW_EXTRABOLD equ 800d
FW_HEAVY equ 900d
FW_ULTRALIGHT equ FW_EXTRALIGHT
FW_REGULAR equ FW_NORMAL
FW_DEMIBOLD equ FW_SEMIBOLD
FW_ULTRABOLD equ FW_EXTRABOLD
FW_BLACK equ FW_HEAVY
; Enumeration font types.
RASTER_FONTTYPE equ 1
DEVICE_FONTTYPE equ 2
if 0
*/
/* The size to allocate for the lfFaceName field in the logical font. */
#ifndef LF_FACESIZE
#define LF_FACESIZE 32
#endif
/* Various constants for defining a logical font. */
#define OUT_DEFAULT_PRECIS 0
#define OUT_STRING_PRECIS 1
#define OUT_CHARACTER_PRECIS 2
#define OUT_STROKE_PRECIS 3
#define OUT_TT_PRECIS 4
#define OUT_DEVICE_PRECIS 5
#define OUT_RASTER_PRECIS 6
#define OUT_TT_ONLY_PRECIS 7
#define CLIP_DEFAULT_PRECIS 0
#define CLIP_CHARACTER_PRECIS 1
#define CLIP_STROKE_PRECIS 2
#define CLIP_MASK 0x0F
#define CLIP_LH_ANGLES 0x10
#define CLIP_TT_ALWAYS 0x20
#define CLIP_EMBEDDED 0x80
#define DEFAULT_QUALITY 0
#define DRAFT_QUALITY 1
#define PROOF_QUALITY 2
#define DEFAULT_PITCH 0
#define FIXED_PITCH 1
#define VARIABLE_PITCH 2
#define ANSI_CHARSET 0
#define DEFAULT_CHARSET 1
#define SYMBOL_CHARSET 2
#define MAC_CHARSET 77
#define SHIFTJIS_CHARSET 128
#define HANGEUL_CHARSET 129
#define CHINESEBIG5_CHARSET 136
#define OEM_CHARSET 255
/* GDI font families. */
#define FF_DONTCARE (0<<4) /* Don't care or don't know. */
#define FF_ROMAN (1<<4) /* Variable stroke width, serifed. */
/* Times Roman, Century Schoolbook, etc.*/
#define FF_SWISS (2<<4) /* Variable stroke width, sans-serifed. */
/* Helvetica, Swiss, etc. */
#define FF_MODERN (3<<4) /* Constant stroke width, serifed or sans-serifed. */
/* Pica, Elite, Courier, etc. */
#define FF_SCRIPT (4<<4) /* Cursive, etc. */
#define FF_DECORATIVE (5<<4) /* Old English, etc. */
/* Font weights lightest to darkest. */
#define FW_DONTCARE 0
#define FW_THIN 100
#define FW_EXTRALIGHT 200
#define FW_LIGHT 300
#define FW_NORMAL 400
#define FW_MEDIUM 500
#define FW_SEMIBOLD 600
#define FW_BOLD 700
#define FW_EXTRABOLD 800
#define FW_HEAVY 900
#define FW_ULTRALIGHT FW_EXTRALIGHT
#define FW_REGULAR FW_NORMAL
#define FW_DEMIBOLD FW_SEMIBOLD
#define FW_ULTRABOLD FW_EXTRABOLD
#define FW_BLACK FW_HEAVY
/* Enumeration font types. */
#define RASTER_FONTTYPE 1
#define DEVICE_FONTTYPE 2
/*
endif
LogFont struc ;*/ typedef struct { /*
lfHeight dw 0 ;*/ short int lfHeight; /*
lfWidth dw 0 ;*/ short int lfWidth; /*
lfEscapement dw 0 ;*/ short int lfEscapement; /*
lfOrientation dw 0 ;*/ short int lfOrientation; /*
lfWeight dw 0 ;*/ short int lfWeight; /*
lfItalic db 0 ;*/ BYTE lfItalic; /*
lfUnderline db 0 ;*/ BYTE lfUnderline; /*
lfStrikeOut db 0 ;*/ BYTE lfStrikeOut; /*
lfCharSet db 0 ;*/ BYTE lfCharSet; /*
lfOutPrecision db 0 ;*/ BYTE lfOutPrecision; /*
lfClipPrecision db 0 ;*/ BYTE lfClipPrecision; /*
lfQuality db 0 ;*/ BYTE lfQuality; /*
lfPitchAndFamily db 0 ;*/ BYTE lfPitchAndFamily; /*
lfFaceName db 0 ; A variable length field for the face name.;*/ BYTE lfFaceName[LF_FACESIZE]; /*
LogFont ends ;*/ } LOGFONT; /*
endif
endif
page
; Device Definitions - incDevice
ifdef incDevice
if incDevice
InquireInfo = 00000001b ;Inquire Device GDI Info
EnableDevice = 00000000b ;Enable Device
InfoContext = 8000h ;Inquire/Enable for information context
; Device Technologies
DT_PLOTTER equ 0 ; Vector plotter
DT_RASDISPLAY equ 1 ; Raster display
DT_RASPRINTER equ 2 ; Raster printer
DT_RASCAMERA equ 3 ; Raster camera
DT_CHARSTREAM equ 4 ; Character-stream, PLP
DT_METAFILE equ 5 ; Metafile, VDM
DT_DISPFILE equ 6 ; Display-file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?