in reply to IActiveDesktop::SetWallpaper from Perl?
#!/usr/bin/perl use strict; use warnings; use Win32::API; use constant CLSID_ACTIVEDESKTOP => '{75048700-EF1F-11D0-9888-006097 +DEACF9}'; my $coci = Win32::API->new('ole32','CoCreateInstance', [qw(I P I I P)] +, 'I') or die "Could not create CoCreateInstance object"; my $setwall; my $res = $coci->Call(CLSID_ACTIVEDESKTOP, undef, 0, 0, \$setwall); print "Got: $res\n";
Errors returned:
And it outputs:Argument "{75048700-EF1F-11D0-9888-006097DEACF9}" isn't numeric in sub +routine entry at noname.pl line 11. Use of uninitialized value in subroutine entry at noname.pl line 11.
Got: -2147024809
Update: Fixed the die message in my code
Edit by tye to change PRE to CODE tags around long lines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: IActiveDesktop::SetWallpaper from Perl?
by blm (Hermit) on Oct 20, 2002 at 01:37 UTC | |
by Mr. Muskrat (Canon) on Oct 21, 2002 at 13:54 UTC |