Subject: Re: ps and kill
From: [email-masked] ("Ben Constable")

6 Dec 1996 20:54:11 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Original-To: "Scott Field" <[email-masked]>, "'Doug Evans'" <[email-masked]>
Original-Cc: "[email-masked]'" <[email-masked]>
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Original-Sender: [email-masked]

> The code to do this right for both platforms would be very different.

This does not have to be true. Under win32, some devices are mapped to
files. The com ports, for instance, are obtained by opening a file with the
name of the com port. If we wrote a driver for NT that took a filename of
utmp, and it updated everytime somebody logged on and off, then we would
not have a problem anymore. The code for both platforms would open the same
file and then the drivers would be the only different bit.
 
> For Win95, only one logged on security context is possible, so use
> GetUserName()
> For WinNT, multiple users can be logged on (see SU utility is NT reskit)
> .  NetWkstaUserEnum() can give you a list of logged on users.

There you go. My point proven - NT and win95 are different. However, in
this case, it could be gotten over by a little simple driver stuff. Anybody
out there got any driver info (I do not have the DDK)?

> >Maybe `who' has been ported to NT yet.
> >You'll find there are lots of such binaries that will compile but
> >that no one has had time yet to see whether they do anything appropriate
> >or not.

Well, have the people at cygnus heard us? Will B17 have a nonworking who in
it? The short term fix is to use native API's. The long term fix is the
driver solution.

> >One difference between the linux project and the gnu-win32 project
> >is the several orders of magnitude of difference in quantity of
> >contributed patches ....

How do I contribute a patch?

Ben Constable
[email-masked]

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".