Click here to Skip to main content
15,914,367 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralError message for 12045 Pin
__Sigma11-May-04 0:14
suss__Sigma11-May-04 0:14 
GeneralRe: Error message for 12045 Pin
Genius Logics11-May-04 0:34
sussGenius Logics11-May-04 0:34 
GeneralRe: Error message for 12045 Pin
nguyenvhn11-May-04 0:43
nguyenvhn11-May-04 0:43 
GeneralRe: Error message for 12045 Pin
__Sigma11-May-04 22:10
suss__Sigma11-May-04 22:10 
GeneralRe: Error message for 12045 Pin
nguyenvhn11-May-04 22:22
nguyenvhn11-May-04 22:22 
GeneralRe: Error message for 12045 Pin
__Sigma12-May-04 3:38
suss__Sigma12-May-04 3:38 
GeneralCreateProcessWithLogonW Pin
Genius Logics11-May-04 0:13
sussGenius Logics11-May-04 0:13 
GeneralRe: CreateProcessWithLogonW Pin
Mike Dimmick11-May-04 2:37
Mike Dimmick11-May-04 2:37 
At a guess, I'd say that the user you're trying to log on doesn't have file-system permission to execute the file you've specified. Check this.

The documentation indicates, for XP and 2003: "CreateProcessWithLogonW accesses the specified directory and executable image in the security context of the target user" and goes on to talk about network drives.

You should also check that the RunAs service is started, on Windows 2000. On Windows XP and 2003, the service is called Secondary Logon.

Also, the documentation states: "The user account must have the Log On Locally permission on the local computer. This permission is granted to all users on workstations and servers, but only to administrators on domain controllers."

A bit of Googling has also revealed that you might need to set the lpDesktop member of lpStartupInfo to Winsta0\Desktop.

Is there any pattern to which computers it works/doesn't work on, with respect to OS and Service Pack level?

Stability. What an interesting concept. -- Chris Maunder
GeneralDirectShow Tutorials Pin
mcsherry10-May-04 23:27
mcsherry10-May-04 23:27 
GeneralRe: DirectShow Tutorials Pin
GermanGeorge11-May-04 4:02
GermanGeorge11-May-04 4:02 
Questionany articles written about cryptography for beginners?? Pin
FASTian10-May-04 23:21
FASTian10-May-04 23:21 
AnswerRe: any articles written about cryptography for beginners?? Pin
nguyenvhn11-May-04 0:06
nguyenvhn11-May-04 0:06 
GeneralRe: any articles written about cryptography for beginners?? Pin
Miguel Lopes11-May-04 2:32
Miguel Lopes11-May-04 2:32 
AnswerRe: any articles written about cryptography for beginners?? Pin
toxcct11-May-04 0:40
toxcct11-May-04 0:40 
GeneralRe: any articles written about cryptography for beginners?? Pin
FASTian12-May-04 0:28
FASTian12-May-04 0:28 
GeneralOutlook Express API Pin
Ajay Vijayvargiya10-May-04 23:08
Ajay Vijayvargiya10-May-04 23:08 
GeneralISAPI FILTER ON A ISA SERVER Pin
SuzannaS10-May-04 23:04
SuzannaS10-May-04 23:04 
QuestionHow to add callouts Pin
muthukumar_pandian10-May-04 22:52
muthukumar_pandian10-May-04 22:52 
QuestionHow to Load/Save Image in database using VC++ MFC Pin
Sumit Kapoor10-May-04 22:14
Sumit Kapoor10-May-04 22:14 
AnswerRe: How to Load/Save Image in database using VC++ MFC Pin
Maxwell Chen10-May-04 22:21
Maxwell Chen10-May-04 22:21 
GeneralRe: How to Load/Save Image in database using VC++ MFC Pin
Sumit Kapoor10-May-04 22:31
Sumit Kapoor10-May-04 22:31 
GeneralRe: How to Load/Save Image in database using VC++ MFC Pin
Maxwell Chen10-May-04 22:47
Maxwell Chen10-May-04 22:47 
GeneralRe: How to Load/Save Image in database using VC++ MFC Pin
Sumit Kapoor10-May-04 23:00
Sumit Kapoor10-May-04 23:00 
GeneralRe: How to Load/Save Image in database using VC++ MFC Pin
Miguel Lopes11-May-04 0:29
Miguel Lopes11-May-04 0:29 
GeneralRe: How to Load/Save Image in database using VC++ MFC Pin
Maxwell Chen11-May-04 1:29
Maxwell Chen11-May-04 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.