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