Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
PDEVICE
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
typedef struct tagPDEVICE {
    short pdType;
} PDEVICE;
 
The PDEVICE structure contains information that a graphics driver uses to
identify a device and the current state of the device. The size and content
of the structure depends entirely on the driver. For example, the structure
may include the current pen, the current position, the communication port of
a particular device, and other state information. However, the first member
in every PDEVICE structure must be pdType.
 
Member  Description
────────────────────────────────────────────────────────────────────────────
 
pdType  Specifies the device type. If this member is nonzero, the structure
        identifies a device and all remaining members are driver specific.
        If this member is zero, the structure identifies a memory bitmap and
        all remaining members must be identical to a PBITMAP structure.
 
Comments
 
GDI allocates space for the PDEVICE structure when it calls the Enable
function to initialize a device driver. The size of this structure must be
specified in the dpDEVICEsize member of the GDIINFO structure.
 
See Also
 
Enable