Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAn Easy Question Pin
rahul.kulshreshtha16-Dec-11 21:56
rahul.kulshreshtha16-Dec-11 21:56 
AnswerRe: An Easy Question PinPopular
Richard MacCutchan16-Dec-11 22:57
mveRichard MacCutchan16-Dec-11 22:57 
GeneralRe: An Easy Question Pin
rahul.kulshreshtha17-Dec-11 2:53
rahul.kulshreshtha17-Dec-11 2:53 
QuestionRe: An Easy Question Pin
CPallini17-Dec-11 9:35
mveCPallini17-Dec-11 9:35 
AnswerRe: An Easy Question Pin
Richard MacCutchan17-Dec-11 21:14
mveRichard MacCutchan17-Dec-11 21:14 
QuestionProcedure entry point error when using CreateProcessWithTokenW Pin
Lucidation16-Dec-11 10:20
Lucidation16-Dec-11 10:20 
AnswerRe: Procedure entry point error when using CreateProcessWithTokenW Pin
Chris Meech16-Dec-11 10:45
Chris Meech16-Dec-11 10:45 
AnswerRe: Procedure entry point error when using CreateProcessWithTokenW Pin
Randor 16-Dec-11 10:47
professional Randor 16-Dec-11 10:47 
Hi,

I am very happy to hear that you went straight to MSDN to get your answers. That is definitely a working recipe for becoming a better software engineer. When you are reading these MSDN function descriptions... always scroll to the bottom... the MSDN almost always gives which library the function is being exported from (in this case Advapi32.dll) and the minimum operating system/service pack required. You have obviously already discovered that the minimum OS is Vista for this function.

If you already have an access token then you should use the CreateProcessAsUser function[^]

Lucidation wrote:
So what do I need to do to either make this work on XP, or else drop back to using CreateProcessAsUser on Windows XP, but still use CreateProcessWithTokenW on Windows 7?


I would personally recommend using CreateProcessAsUser for both scenarios. Why create two code paths? CreateProcessAsUser should work for XP all the way to Win7Sp1.

Best Wishes,
-David Delaune
QuestionCRecordset fails to retrieve fileds when only one record is in the recordset .SOLVED ?? Pin
Vaclav_16-Dec-11 6:30
Vaclav_16-Dec-11 6:30 
AnswerRe: CRecordset fails to retrieve fileds when only one record is in the recordset . Pin
Richard MacCutchan16-Dec-11 7:10
mveRichard MacCutchan16-Dec-11 7:10 
GeneralRe: CRecordset fails to retrieve fileds when only one record is in the recordset . Pin
Vaclav_16-Dec-11 8:15
Vaclav_16-Dec-11 8:15 
GeneralRe: CRecordset fails to retrieve fileds when only one record is in the recordset . Pin
bsdtux19-Dec-11 8:29
bsdtux19-Dec-11 8:29 
GeneralRe: CRecordset fails to retrieve fileds when only one record is in the recordset . Pin
Vaclav_19-Dec-11 8:38
Vaclav_19-Dec-11 8:38 
GeneralRe: CRecordset fails to retrieve fileds when only one record is in the recordset . Pin
Vaclav_16-Dec-11 8:53
Vaclav_16-Dec-11 8:53 
GeneralRe: CRecordset fails to retrieve fileds when only one record is in the recordset . Pin
Vaclav_16-Dec-11 9:40
Vaclav_16-Dec-11 9:40 
QuestionRe: CRecordset fails to retrieve fileds when only one record is in the recordset .SOLVED ?? Pin
David Crow18-Dec-11 17:28
David Crow18-Dec-11 17:28 
AnswerRe: CRecordset fails to retrieve fileds when only one record is in the recordset .SOLVED ?? Pin
Vaclav_18-Dec-11 17:56
Vaclav_18-Dec-11 17:56 
QuestionRe: CRecordset fails to retrieve fileds when only one record is in the recordset .SOLVED ?? Pin
David Crow19-Dec-11 2:12
David Crow19-Dec-11 2:12 
AnswerRe: CRecordset fails to retrieve fileds when only one record is in the recordset .SOLVED ?? Pin
Vaclav_19-Dec-11 4:40
Vaclav_19-Dec-11 4:40 
QuestionHow to access application's extern variable inside a dll Pin
rahul.kulshreshtha15-Dec-11 19:57
rahul.kulshreshtha15-Dec-11 19:57 
AnswerRe: How to access application's extern variable inside a dll Pin
CPallini15-Dec-11 21:32
mveCPallini15-Dec-11 21:32 
GeneralRe: How to access application's extern variable inside a dll Pin
rahul.kulshreshtha16-Dec-11 3:51
rahul.kulshreshtha16-Dec-11 3:51 
GeneralRe: How to access application's extern variable inside a dll Pin
CPallini16-Dec-11 5:27
mveCPallini16-Dec-11 5:27 
GeneralRe: How to access application's extern variable inside a dll Pin
rahul.kulshreshtha16-Dec-11 5:46
rahul.kulshreshtha16-Dec-11 5:46 
AnswerRe: How to access application's extern variable inside a dll Pin
Erudite_Eric16-Dec-11 0:40
Erudite_Eric16-Dec-11 0:40 

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.