Thread [Win32::Printer::Enum] - Windows Standarddrucker (9 answers)
Opened by Kean at 2012-08-29 14:49

Gast gast2
 2012-08-30 14:52
#161489 #161489
Das Funktioniert auf Windows 7 x64:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use warnings;
use strict;

use Win32::API;

my $winspool_path = 'winspool.drv';
my $printer_name_size = 256;
my $printer_name = " " x $printer_name_size; # Speicher allozieren

my $GetDefaultPrinter = Win32::API->new($winspool_path, 'GetDefaultPrinter', 'PP', 'I');

$GetDefaultPrinter->Call($printer_name, $printer_name_size);

print $printer_name;

Last edited: 2012-08-30 14:55:26 +0200 (CEST)

View full thread [Win32::Printer::Enum] - Windows Standarddrucker