VpeGetDevice

<< Click to Display Table of Contents >>

Navigation:  Device Control Properties >

VpeGetDevice

Previous pageReturn to chapter overviewNext page

[Windows platform only; not supported by the Community Edition]

Retrieves the current output device.

void VpeGetDevice(

VpeHandle hDoc,

LPSTR device,

int size

)

VpeHandle hDoc

Document Handle

LPSTR device

the name of the output device

int size

Specifies the maximum number of characters to copy to the buffer (the string "device"). If the text exceeds this limit, it is truncated.

Remarks:

VPE selects by default the standard (default) output device when OpenDoc() is called.

 

In case of an error, LastError is set to VERR_COMMON. An error may occur in case a device is not present or not available for some reason.