Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: using Hotkeys Pin
Rajesh R Subramanian22-May-09 21:28
professionalRajesh R Subramanian22-May-09 21:28 
GeneralRe: using Hotkeys Pin
jalsa G22-May-09 21:48
jalsa G22-May-09 21:48 
GeneralRe: using Hotkeys Pin
Rajesh R Subramanian22-May-09 23:06
professionalRajesh R Subramanian22-May-09 23:06 
GeneralRe: using Hotkeys Pin
Hamid_RT22-May-09 23:32
Hamid_RT22-May-09 23:32 
AnswerRe: using Hotkeys Pin
Hamid_RT22-May-09 23:32
Hamid_RT22-May-09 23:32 
Questionexecution time of function increases Pin
VCProgrammer22-May-09 20:00
VCProgrammer22-May-09 20:00 
QuestionRe: execution time of function increases Pin
Rajesh R Subramanian22-May-09 21:50
professionalRajesh R Subramanian22-May-09 21:50 
AnswerRe: execution time of function increases Pin
Shivanand Gupta22-May-09 22:07
Shivanand Gupta22-May-09 22:07 
AnswerRe: execution time of function increases Pin
Rob 222-May-09 23:01
Rob 222-May-09 23:01 
AnswerRe: execution time of function increases Pin
Hamid_RT22-May-09 23:27
Hamid_RT22-May-09 23:27 
GeneralRe: execution time of function increases Pin
cute_friend707722-May-09 23:35
cute_friend707722-May-09 23:35 
GeneralRe: execution time of function increases Pin
Hamid_RT23-May-09 1:28
Hamid_RT23-May-09 1:28 
GeneralRe: execution time of function increases Pin
ThatsAlok24-May-09 18:38
ThatsAlok24-May-09 18:38 
GeneralRe: execution time of function increases Pin
Hamid_RT25-May-09 0:53
Hamid_RT25-May-09 0:53 
GeneralRe: execution time of function increases Pin
ThatsAlok25-May-09 3:33
ThatsAlok25-May-09 3:33 
QuestionGet active user's desktop resolution from system account. Pin
«_Superman_»22-May-09 16:39
professional«_Superman_»22-May-09 16:39 
Hi Guys,

What's up!!!

I'm trying to figure out how to get the desktop resolution of the active user from the system account.

The situation is something like this -

I have a custom print processor (One of the print spooler components) that runs in the context of the SYSTEM account. I need to get the desktop resolution of the user who gave the print command in order to do some image processing on an EMF file. So it doesn't matter how many users have logged-in to the machine.

I tried using WTSEnumerateSessions/WTSQuerySessionInformation. This only works if you are using a remote session (mstsc.exe) and not for a normal session.

My alternate solution for this would be to spawn some process in the user context (Don't know how) and get the desktop resolution to the registry from where it could be read in the SYSTEM context.

But I was wondering if there was a cleaner way to achieve this.

«_Superman
I love work. It gives me something to do between weekends.

AnswerRe: Get active user's desktop resolution from system account. Pin
Garth J Lancaster22-May-09 20:09
professionalGarth J Lancaster22-May-09 20:09 
QuestionMenu and Icon's Pin
BobInNJ22-May-09 11:18
BobInNJ22-May-09 11:18 
AnswerRe: Menu and Icon's Pin
Stuart Dootson22-May-09 11:41
professionalStuart Dootson22-May-09 11:41 
QuestionNeed Help Debugging Program Pin
Ryuk199022-May-09 11:10
Ryuk199022-May-09 11:10 
AnswerRe: Need Help Debugging Program Pin
BobInNJ22-May-09 11:26
BobInNJ22-May-09 11:26 
AnswerRe: Need Help Debugging Program Pin
Stuart Dootson22-May-09 11:33
professionalStuart Dootson22-May-09 11:33 
QuestionViewing Design Pin
Ryuk199022-May-09 10:20
Ryuk199022-May-09 10:20 
AnswerRe: Viewing Design Pin
Stuart Dootson22-May-09 10:34
professionalStuart Dootson22-May-09 10:34 
GeneralRe: Viewing Design Pin
Ryuk199022-May-09 11:13
Ryuk199022-May-09 11:13 

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.