From this
below reply from Bernhard, I was able to figure out why hrSystemNumUsers is
showing two for windows,
But how
will I verify it.
Is there
any command in windows like linux(finger and who) to find out the details of
the users who logged in.
If so
please do inform me, so that I will be able to know who all have logged
in.
Thanks,
> On
Thu, 2005-08-18 at 13:24 +0530,
Naganarasimha wrote:
>
> >
My OS on my comp is windows 2000 and I tried the same in
> suse
linux it
> >
gives one gnome but 2 in KDE
>
> >
So can some one explain why is it (hrSystemNumUsers ) having more
> >
value then actually what it has
>
>
> This
value is calculated differently on Windows- and
>
Unix-based systems.
>
Under Windows, it uses the call NetWkstaGetInfo(), and takes
> the
value of the field wki102_logged_on_users. From the MSDN
>
documentation:
>
>
wki102_logged_on_users
> Specifies
the number of users who are logged on to the
> local
computer.
>
> I've
no idea why this might be returning '2' instead of '1'.
This
function will return 2 because the "SYSTEM" user for the various
Windows-Services
is also logged in.
Regards,
Bernhard