From: s2172184 AT cse DOT unsw DOT edu DOT au ("Ben Constable") Subject: Re: ps and kill 6 Dec 1996 20:54:11 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <961207020349.22312.cygnus.gnu-win32@cse.unsw.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Original-To: "Scott Field" , "'Doug Evans'" Original-Cc: "'gnu-win32 AT cygnus DOT com'" X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 Original-Sender: owner-gnu-win32 AT cygnus DOT com > 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 s2172184 AT cse DOT unsw DOT edu DOT au - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".