GetPrinterMediaTypesA
渲染和打印
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。行为与 GetPrinterMediaTypes 相同,字符串参数使用当前 SetAnsiMode 代码页解释
此函数返回字符串,包含指定打印机所有可用介质类型的介质类型编号和名称。返回字符串中每种介质类型各有一行文本,各行以 CR/LF 字符分隔。每行包含数值介质类型编号、逗号和用双引号括起的介质类型名称
语法
Delphi
Function DLGetPrinterMediaTypesA(InstanceID: Integer; PrinterName: PAnsiChar): PAnsiChar;
DLL
const char * DLGetPrinterMediaTypesA(int InstanceID, const char * PrinterName);
参数
| PrinterName | 要查询的打印机名称。这是 Windows 打印管理器中显示的名称。使用 GetPrinterNames 函数可返回系统中有效打印机的列表。此处也可使用 NewCustomPrinter 函数返回的值 |
|---|