How to find out if a user has logged on ?

P

Polaris

Hi:

Within a Windows Service, is there a way to find out if a user (any user)
has already logged on to the machine ?

Thanks In Advance !
Polaris
 
A

AliR

You can use NetWkstaGetInfo with a level of 102 to get the number of logged
on users.
And NetWkstaUserGetInfo will give you information about the logged in user.

AliR.
 
P

Polaris

Hi:

I have an executable which is signed by Veri-Signe Authenti code. I'd like
to know, within another program, how to check/verify the signed executable?
Is there API for this or any link to articles ?

Thanks In Advance !
Polaris
 
P

Polaris

Thanks!

AliR said:
You can use NetWkstaGetInfo with a level of 102 to get the number of
logged
on users.
And NetWkstaUserGetInfo will give you information about the logged in
user.

AliR.
 
I

Igor Tandetnik

Polaris said:
I have an executable which is signed by Veri-Signe Authenti code. I'd
like to know, within another program, how to check/verify the signed
executable? Is there API for this or any link to articles ?

WinVerifyTrust
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top