GDI 数据类型GDI Data Types

下表中定义的数据类型显示在设备驱动程序接口。The data types defined in the following table appear in the device driver interface. 多个列出的数据类型已描述中GDI 用户对象Several of the listed data types have already been described in GDI User Objects. 是指针的数据类型将标有星号 (*)。Data types that are pointers are marked with an asterisk (*).

图形 DDI 数据类型Graphics DDI Data Type 变量名称前缀Variable Name Prefix 定义Definition

BOOLBOOL

bb

可以是一个 32 位值,则返回 TRUEFALSEA 32-bit value that can be either TRUE or FALSE.

BYTEBYTE

jj

一个 8 位无符号的整数。An 8-bit unsigned integer.

BRUSHOBJBRUSHOBJ

pbopbo

指向一个画笔对象的指针。A pointer to a brush object.

CLIPLINECLIPLINE

clcl

一个 clipline 对象。A clipline object.

CLIPOBJCLIPOBJ

pcopco

指向一个剪辑对象的指针。A pointer to a clipping object.

DHPDEVDHPDEV

dhpdevdhpdev

由设备驱动程序,用于标识物理设备定义一个 32 位句柄。A 32-bit handle, defined by the device driver, that identifies a physical device.

DHSURFDHSURF

dhsurfdhsurf

由设备驱动程序,用于标识设备管理面定义一个 32 位句柄。A 32-bit handle, defined by the device driver, that identifies a device-managed surface.

FIXFIX

修复fix

固定点数字。A fixed-point number.

FLOATLFLOATL

Ee

一个浮点数。A floating-point number.

FLOAT_LONGFLOAT_LONG

elel

一个 32 位重载值,该值被解释为 long 类型的值或 FLOATL,具体取决于上下文。A 32-bit overloaded value that is interpreted as either a LONG or FLOATL, depending on context.

FLONGFLONG

flfl

32 位标志的一组。A set of 32-bit flags.

FONTOBJFONTOBJ

pfopfo

指向字体对象的指针。A pointer to a font object.

FSHORTFSHORT

fsfs

一组 16 位标志。A set of 16-bit flags.

FWORDFWORD

fwfw

一个 16 位有符号的整数。A 16-bit signed integer.

HBMHBM

hbmhbm

通过 GDI,用于标识位图定义一个 32 位句柄。A 32-bit handle, defined by GDI, that identifies a bitmap.

HPALHPAL

hpalhpal

通过 GDI,标识调色板定义一个 32 位句柄。A 32-bit handle, defined by GDI, that identifies a palette.

HSURFHSURF

hsurfhsurf

通过 GDI,标识一个面定义一个 32 位句柄。A 32-bit handle, defined by GDI, that identifies a surface.

LONG

ll

一个 32 位有符号的整数。A 32-bit signed integer.

MIXMIX

mixmix

32 位数量,其低 16 位定义前景色和背景混合模式。A 32-bit quantity, whose lower 16 bits define foreground and background mix modes.

PALOBJPALOBJ

ppaloppalo

指向调色板对象的指针。A pointer to a palette object.

PATHOBJPATHOBJ

ppoppo

指向一个路径对象的指针。A pointer to a path object.

POINTEPOINTE

ptepte

组成的点结构 {FLOATL xy;}。A point structure that consists of {FLOATL x, y;}.

POINTFIXPOINTFIX

ptfxptfx

组成的点结构 {修复xy;}。A point structure that consists of {FIX x, y;}.

POINTQFPOINTQF

ptqptq

组成的点结构 {LARGE_INTEGER xy;}。A point structure that consists of {LARGE_INTEGER x, y;}. 此结构的每个成员是 28.36 格式的 64 位坐标。Each member of this structure is a 64-bit coordinate in 28.36 format.

PWSZPWSZ

pwszpwsz

指向以 null 结尾的 Unicode 字符串的指针。A pointer to a null-terminated Unicode string.

PVOIDPVOID

pvpv

指向 VOID、 未定义的数据类型的指针。A pointer to a VOID, an undefined data type.

RECTFXRECTFX

rcfxrcfx

包含一个矩形结构 {修复xLeftxRightyBottom;}。A rectangle structure that consists of {FIX xLeft, yTop, xRight, yBottom;}.

ROP4ROP4

rop4rop4

一个 32 位值,该值指定源、 目标、 模式和掩码像素的方式混合使用。A 32-bit value that specifies how source, destination, pattern, and mask pixels are to be mixed.

SHORT

文件s

一个 16 位有符号的整数。A 16-bit signed integer.

为原始大小SIZEL

sizlsizl

组成的结构 {长cxcy;}。A structure that consists of {LONG cx, cy;}.

STROBJSTROBJ

pstropstro

指向一个文本字符串对象的指针。A pointer to a text string object.

SURFOBJSURFOBJ

psopso

指向图面上对象的指针。A pointer to a surface object.

ULONGULONG

ulul

一个 32 位无符号的整数。A 32-bit unsigned integer.

USHORTUSHORT

usus

一个 16 位无符号的整数。A 16-bit unsigned integer.

XFORMOBJXFORMOBJ

pxopxo

指向坐标转换对象的指针。A pointer to a coordinate transform object.

XLATEOBJ\*XLATEOBJ\*

pxlopxlo

指向一个颜色转换对象的指针。A pointer to a color translation object.

下表中列出的参数前缀用于修改根据其使用情况的变量名称前缀。The parameter prefixes listed in the next table are used to modify variable name prefixes in accordance with their usage.

前缀Prefix 参数的用法Parameter Usage

图标i

枚举的索引An enumerated index

cc

计数A count

pp

一个指针,A pointer