The system I am running is WinXP Pro SP1 and VB6 SP5. The target systems
will be WinXP Pro and Win 2000.
Here is my code:
lpUsername = "newuser"
lpDomain = "domain"
lpPassword = "password"
lpApplicationName = "c:\winnt\notepad.exe"
lpCommandLine = vbNullString
lpCurrentDirectory = vbNullString
StartInfo.cb = LenB(StartInfo)
StartInfo.dwFlags = 0&
CreateProcessWithLogonW StrPtr(lpUsername), StrPtr(lpDomain),
StrPtr(lpPassword),
LOGON_NETCREDENTIALS_ONLY, StrPtr(lpApplicationName),
StrPtr(lpCommandLine),
CREATE_DEFAULT_ERROR_MODE Or CREATE_NEW_CONSOLE Or
CREATE_NEW_PROCESS_GROUP,
ByVal 0&, StrPtr(lpCurrentDirectory), StartInfo, ProcessInfo
CloseHandle ProcessInfo.hThread
CloseHandle ProcessInfo.hProcess
Can anyone see what may be a problem.
Thanks
for email remove nospam from the address
gsempl...@ixsis.com