Click here to Skip to main content
15,894,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFeature Pack 2008? Pin
Software200721-Jul-09 4:52
Software200721-Jul-09 4:52 
AnswerRe: Feature Pack 2008? Pin
Maximilien21-Jul-09 5:50
Maximilien21-Jul-09 5:50 
QuestionNumber of interactive logged on users on Windows Vista Pin
Eikthrynir21-Jul-09 3:18
Eikthrynir21-Jul-09 3:18 
QuestionRe: Number of interactive logged on users on Windows Vista Pin
David Crow21-Jul-09 4:17
David Crow21-Jul-09 4:17 
AnswerRe: Number of interactive logged on users on Windows Vista Pin
Eikthrynir21-Jul-09 4:34
Eikthrynir21-Jul-09 4:34 
GeneralRe: Number of interactive logged on users on Windows Vista Pin
Eikthrynir21-Jul-09 4:40
Eikthrynir21-Jul-09 4:40 
QuestionRe: Number of interactive logged on users on Windows Vista Pin
David Crow21-Jul-09 4:43
David Crow21-Jul-09 4:43 
AnswerRe: Number of interactive logged on users on Windows Vista Pin
Eikthrynir21-Jul-09 5:12
Eikthrynir21-Jul-09 5:12 
No need to check. I think I known what's happening. I modified the application to display other information too. The SessionId for each occurence of MyAdminUser is different: it runs both in Session 0 and Session 1 and that's why it is shown twice. On Vista (I guess Window 7 too) I only have to skip counting the user running in Session 0. Thus, I get the correct number of interactive logged on users. As I have seen, on Windows XP there is no need for this trick.

I consider this problem solved now.
But there is something strange that happened while I was testing on my Vista machine: I had MyAdminUser and MyLimitedUser both logged on; my application showed 3 users (Session 0 (MyAdminUser), Session 1 (MyAdminUser), and Session 2 (MyLimitedUser)); I logged off from MyLimitedUser and immediately ran the application; it still showed 3 users; after almost minute, when I re-ran the application, it correctly showed 2 users: MyAdminUser (Session 0) and MyAdminUser (Session 1). What I am trying to say is that it showed 3 users for almost a minute... Confused | :confused:

The strange thing is that I could not reproduce the problem. I tried to make it happen again, but I couldn't. I wonder why Windows needed so much time to update the number of interactive logged on users...
QuestionRe: Number of interactive logged on users on Windows Vista Pin
David Crow21-Jul-09 5:18
David Crow21-Jul-09 5:18 
QuestionHow to apply alpha value to COLORREF Pin
mutpan21-Jul-09 2:32
mutpan21-Jul-09 2:32 
AnswerRe: How to apply alpha value to COLORREF Pin
Nishad S21-Jul-09 3:08
Nishad S21-Jul-09 3:08 
QuestionDebugging unmanaged DLL called from managed C# Pin
Chesnokov Yuriy21-Jul-09 2:11
professionalChesnokov Yuriy21-Jul-09 2:11 
QuestionHow to find where the EXIT_SUCCESS and EXIT_FAILURE included please? Pin
ggyyree21-Jul-09 1:43
ggyyree21-Jul-09 1:43 
AnswerRe: How to find where the EXIT_SUCCESS and EXIT_FAILURE included please? Pin
ggyyree21-Jul-09 1:47
ggyyree21-Jul-09 1:47 
AnswerRe: How to find where the EXIT_SUCCESS and EXIT_FAILURE included please? Pin
Stuart Dootson21-Jul-09 2:30
professionalStuart Dootson21-Jul-09 2:30 
QuestionMemory function equivalent to that found in fread Pin
alleyes21-Jul-09 1:32
professionalalleyes21-Jul-09 1:32 
AnswerRe: Memory function equivalent to that found in fread Pin
«_Superman_»21-Jul-09 2:37
professional«_Superman_»21-Jul-09 2:37 
GeneralRe: Memory function equivalent to that found in fread Pin
alleyes21-Jul-09 3:15
professionalalleyes21-Jul-09 3:15 
GeneralRe: Memory function equivalent to that found in fread Pin
alleyes24-Jul-09 5:40
professionalalleyes24-Jul-09 5:40 
GeneralRe: Memory function equivalent to that found in fread Pin
«_Superman_»24-Jul-09 17:13
professional«_Superman_»24-Jul-09 17:13 
GeneralRe: Memory function equivalent to that found in fread Pin
alleyes25-Jul-09 1:16
professionalalleyes25-Jul-09 1:16 
QuestionUse template with "Conversion Functions" get problem. [modified] Pin
hawkgao012921-Jul-09 0:28
hawkgao012921-Jul-09 0:28 
AnswerRe: Use template with "Conversion Functions" get problem. Pin
«_Superman_»21-Jul-09 0:36
professional«_Superman_»21-Jul-09 0:36 
GeneralRe: Use template with "Conversion Functions" get problem. Pin
hawkgao012921-Jul-09 0:52
hawkgao012921-Jul-09 0:52 
GeneralRe: Use template with "Conversion Functions" get problem. Pin
«_Superman_»21-Jul-09 0:59
professional«_Superman_»21-Jul-09 0:59 

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.