in reply to Win32::API and CreateProcessWithLogonW
Update: Corrected UTF8LE to UTF-16LE per tye's post below.
The problem is that your are importing the wide (W) api, CreateProcessWithLogonW(), and attempting to pass it ascii character strings. You will need to promote these to UTF-16LE.
Google does turn a handful of references to an A variant, CreateProcessWithLogonA(), but none of them are at an MS site, or anywhere that looks authoratative. I also consulted my 'big list of exports', and no A variant is exported from any of the DLLs on my system. Of those that I've catalogued--I may still have missed some.
I can never remember the official invocations required to convert/promote an ascii string to utf-16le, and you can supersearch as well as I can. "UTF-16LE" would probably be a good search term. From memory, I believe ikegami &| Corion have posted definitive information on this subject, which might serve to speed your search.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::API and CreateProcessWithLogonW
by tye (Sage) on Jan 30, 2007 at 06:50 UTC | |
by BrowserUk (Patriarch) on Jan 30, 2007 at 07:15 UTC | |
by tye (Sage) on Jan 30, 2007 at 07:21 UTC |