|< 1 2 >| | 18 Einträge, 2 Seiten |
1 2 3 4 5 6 7 8 9
#!/usr/bin/perl use Win32::API; use constant SPI_SETDESKWALLPAPER => 20; use constant SPIF_UPDATEANDSENDINI => 3; use constant NULL => 0; my $syspinf = Win32::API->new('user32','SystemParametersInfo', [I,I,P,I], I) or die "Could not import function."; $syspinf->Call(SPI_SETDESKWALLPAPER, 0, $ARGV[0], SPIF_UPDATEANDSENDINI);
1
2
3
4
M:\daten\perl\bgr_kalender>perl -MWin32::API -e 1
Can't locate loadable object for module Win32::API in @INC (@INC contains: c:/Perl/lib c:/Perl/site/lib .) at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
1
2
3
4
5
6
7
8
9
10
11
12
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState SRL. All Rights Reserved.
Entering interactive shell. Using Term::ReadLine::Stub as readline library.
Type 'help' to get started.
ppm> search win32::API
Searching in Active Repositories
1. Win32-API [0.41] Perl Win32 API Import Facility
2. Win32-API-OutputDebugString [0.03] OutputDebugString Win32 API support
ppm>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
M:\daten\perl\bgr_kalender\bilder\09>ppm
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a devision of Sophos.
Entering interactive shell. Using Term::ReadLine::Stub as readline library.
Type 'help' to get started.
ppm> search Win32::API
Searching in Active Repositories
1. Win32-API [0.41] Perl Win32 API Import Facility
2. Win32-API-OutputDebugString [0.03] OutputDebugString Win32 API support
ppm> install 1
Package 1:
====================
Install 'Win32-API' version 0.41 in ActivePerl 5.8.4.810.
====================
Downloaded 36283 bytes.
Extracting 22/22: blib/arch/auto/Win32/API/Callback/Callback.lib
Installing C:\Perl\site\lib\auto\Win32\API\API.bs
Installing C:\Perl\site\lib\auto\Win32\API\API.dll
Installing C:\Perl\site\lib\auto\Win32\API\API.exp
Installing C:\Perl\site\lib\auto\Win32\API\API.lib
Installing C:\Perl\site\lib\auto\Win32\API\Callback\Callback.bs
Installing C:\Perl\site\lib\auto\Win32\API\Callback\Callback.dll
Installing C:\Perl\site\lib\auto\Win32\API\Callback\Callback.exp
Installing C:\Perl\site\lib\auto\Win32\API\Callback\Callback.lib
Installing C:\Perl\html\site\lib\Win32\API.html
Installing C:\Perl\html\site\lib\Win32\API\Callback.html
Installing C:\Perl\html\site\lib\Win32\API\Struct.html
Installing C:\Perl\html\site\lib\Win32\API\Type.html
Files found in blib\arch: installing files in blib\lib into architecture dependent library tree
Installing C:\Perl\site\lib\Win32\API.pm
Installing C:\Perl\site\lib\Win32\API\Callback.pm
Installing C:\Perl\site\lib\Win32\API\Struct.pm
Installing C:\Perl\site\lib\Win32\API\Type.pm
Successfully installed Win32-API version 0.41 in ActivePerl 5.8.4.810.
ppm>
|< 1 2 >| | 18 Einträge, 2 Seiten |