flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
RedGhost 06 Jan 2006, 13:53
Spidark wrote: Hallo there. i think the fact your code is executing shows they are logged on, and to see who is logged on you can use GetComputerName or GetComputerNameEx (better) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getcomputernameex.asp _________________ redghost.ca |
|||
![]() |
|
Reverend 06 Jan 2006, 23:09
GetSystemMetrics with apriopriate value:
SM_MEDIACENTER - Windows XP Media Center Edition SM_STARTER - Windows XP Starter Edition SM_TABLETPC - Windows XP Tablet PC Edition SM_SERVERR2 - Windows Server 2003 R2 |
|||
![]() |
|
Spidark 07 Jan 2006, 00:16
Reverend wrote: GetSystemMetrics with apriopriate value: Thanks i wil check this INFO later, but think i got a api that does the Job. GetUserName Quote: The GetUserName function retrieves the user name of the current thread. This is the name of the user currently logged onto the system. You see what i,m trying to do is check to see if the user is logged on. Once i got that info, check to see if user has pass his /her curvue. ![]() And Log him/her off. I'm gonna try to put it together. thanks Reverend, and RedGhost for the answers ![]() _________________ Spidark |
|||
![]() |
|
FrozenKnight 07 Jan 2006, 13:31
Just so you know You can run a thread as a diffrent user even as the 'System' so GetUserName may return incorrectly in some cases.
|
|||
![]() |
|
Spidark 09 Jan 2006, 08:19
FrozenKnight wrote: Just so you know You can run a thread as a diffrent user even as the 'System' so GetUserName may return incorrectly in some cases. _________________ Spidark |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.