|
There may be an easier way... I found this in the Win32 API: GetUserName() -- "Retrieves the user name of the current thread. This is the name of the user currently logged onto the system." "If the current thread is impersonating another client, the GetUserName function returns the user name of the client that the thread is impersonating." Perfect So I could retrieve user name, and replace the string '$loginname$' with the user name that was returned... Sweet Naturally, we'd want to do the same thing in the U**x version... Of course! On Mon, 21 Jan 2002, Egan, Matt B. (Artco) wrote: > Well if you willing > > For me on win98 it sits here > Hkey\LOCAL_MACHINE\Network\Logon\NetWareUsername"mbegan" > > If it looks like it will take more then 5 to 10 minutes Don't bother cause > its not all that important (serious) I noticed that all the info I need is > in the window header (even if varied off) but it would still be cool. > > You'd think there would be some place easier to grab the currently logged in > user name though wouldn't you. > > Anyway > > Thanks > > Matt > -----Original Message----- > From: Scott Klement [mailto:klemscot@klements.com] > Sent: Monday, January 21, 2002 1:42 PM > To: 'linux5250@midrange.com' > Subject: RE: [LINUX5250] Re: TN5250 under Windows support is ready > for tes ting > > > On Mon, 21 Jan 2002, Egan, Matt B. (Artco) wrote: > > > > For the env.DEVNAME=xxx > > > > I would like that to be dynamic so that in my call center where I have > > several people using a single win9x machine I can identify there session > > names as there novell login name plus a number > > Neat idea. Could you do this by creating a seperate profile for each > user? something like: > > matt { > env.DEVNAME=matt01 > host = example > } > bob { > env.DEVNAME=bob01 > host = whatever > } > mary { > env.DEVNAME=mary01 > host = as400 > } > > Or wouldn't that work? How does Windows know what user you're signed > in under? > > > > > So env.DEVNAME=$loginname$01 > > > > Can this work is it as simple as putting something like that in or is it > > more indepth? > > Making TN5250 change the terminal name by inserting a User-ID would be > somewhat more indepth, but I'd be willing to give it a try. I just > don't know how to determine who is currently signed on :) > > > _______________________________________________ > This is the Linux 5250 Development Project (LINUX5250) mailing list > To post a message email: LINUX5250@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250 > or email: LINUX5250-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/linux5250. > _______________________________________________ > This is the Linux 5250 Development Project (LINUX5250) mailing list > To post a message email: LINUX5250@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250 > or email: LINUX5250-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/linux5250. > > _______________________________________________ This is the Linux 5250 Development Project (LINUX5250) mailing list To post a message email: LINUX5250@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250 or email: LINUX5250-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/linux5250.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.