in reply to Re: Win32::API and CreateProcessWithLogonW
in thread Win32::API and CreateProcessWithLogonW

So isn't there a way to pass in Unicode (wChar) to a Win32::API process?

-------------------------------
Need a good Perl friendly Host Provider?
http://www.dreamhost.com

  • Comment on Re^2: Win32::API and CreateProcessWithLogonW

Replies are listed 'Best First'.
Re^3: Win32::API and CreateProcessWithLogonW (WCHAR*)
by tye (Sage) on Jan 30, 2007 at 06:56 UTC

    Last I checked, to pass via Win32::API a pointer to anything other than a "\0"-terminated string, you have to jump through some extra hoops. You have to say that you want to pass in an int not a pointer ("I" not "P") and then actually pass in unpack( "L", pack "p", $utf18 ). But perhaps the newer versions of Win32::API provide less cumbersome ways.

    - tye