Click here to Skip to main content
15,886,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionAlgoritm in C Pin
cstic22-May-09 9:47
cstic22-May-09 9:47 
AnswerRe: Algoritm in C Pin
Garth J Lancaster22-May-09 18:17
professionalGarth J Lancaster22-May-09 18:17 
QuestionGlobal Keyboard hook works for a few seconds... Pin
mcfonseca22-May-09 7:58
mcfonseca22-May-09 7:58 
Questionprogress bar created in the status bar turns up uncovered the pane Pin
HelloDan200922-May-09 7:27
HelloDan200922-May-09 7:27 
QuestionDoes Postmessage/SendMessage require a Message Map entries Pin
ForNow22-May-09 6:38
ForNow22-May-09 6:38 
AnswerRe: Does Postmessage/SendMessage require a Message Map entries Pin
led mike22-May-09 8:37
led mike22-May-09 8:37 
GeneralRe: Does Postmessage/SendMessage require a Message Map entries Pin
ForNow22-May-09 10:50
ForNow22-May-09 10:50 
GeneralRe: Does Postmessage/SendMessage require a Message Map entries Pin
«_Superman_»22-May-09 16:21
professional«_Superman_»22-May-09 16:21 

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.