in reply to Re: IActiveDesktop::SetWallpaper from Perl?
in thread IActiveDesktop::SetWallpaper from Perl?

IMHO you are getting that error message because the first parameter of

STDAPI CoCreateInstance( REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID riid, LPVOID * ppv );
is a struct not a string
typedef struct _GUID { // size is 16 DWORD Data1; WORD Data2; WORD Data3; BYTE Data4[8]; } GUID;

defined on my machine in WINNT.H

--blm--

Replies are listed 'Best First'.
Re: Re: Re: IActiveDesktop::SetWallpaper from Perl?
by Mr. Muskrat (Canon) on Oct 21, 2002 at 13:54 UTC

    Thanks. I don't play with the system calls too often. I was using the code that bbfu provided. I didn't know if it was correct or not. Perhaps I'll have time to play with this more later in the week. It's becoming quite fun.