GetPrinterNamesA
レンダリングと印刷
説明
末尾の A は ANSI(char)DLL エントリポイントを示します。ActiveX/COM インターフェースでは Unicode 形式のみを公開します。動作は GetPrinterNames と同じで、文字列引数は現在の SetAnsiMode コードページを使用して解釈されます
システムで使用可能なすべてのプリンター名を含む CSV 文字列を返します。結果は、アプリの起動時に列挙されたキャッシュ済みリストです。新しい GetLatestPrinterNames 関数は最新のプリンター一覧を返します
構文
Delphi
Function DLGetPrinterNamesA(InstanceID: Integer): PAnsiChar;
DLL
const char * DLGetPrinterNamesA(int InstanceID);