Page 1 of 1 1
Topic Options
#500 - 1999-09-22 09:45 PM IP-Adress, logon server an Domain name
Anonymous
Unregistered


When a user is logged on i want to see witch IP-adress is used and what the logon server is.

So i like to change the value of 'Network Neigbourhood. Does anyone know witch registry key i need to reed to parse that value to mij network neigbourhood icon.

Thanks in advantage
Chris broekmeulen

Top
#501 - 1999-09-23 07:29 AM Re: IP-Adress, logon server an Domain name
Anonymous
Unregistered


Here is a subroutine I use to write the User's name to the network neighborhood icon.

[CODE];****************************************************************************************
:NETNEIGHBOR
; Description:
; Change the name of the "Network Neighborhood" icon to be the user's name. This
; provides a quick method for one to determine the name of the logged in user.
;
; Input:
; $HKLM_S (HKEY_LOCAL_MACHINE\Software), $nam(@FULLNAME), $rsz(REG_SZ)
;
; Output:
; None
;****************************************************************************************
; Modification History
; Date Initials Description
; 12 Aug 99 bvv Wrote first cut.
;****************************************************************************************
;
Dim $userfull, $keyclass, $keyroot, $temp, $returncode, $classname, $writname, $testvalue
$classname="'Network Neighborhood'"
$writname="user's name"
$testvalue=$nam+"'s Neighborhood"
$keyclass="{208D2C60-3AEA-1069-A2D7-08002B30309D}"
$keyroot=$HKLM_S+"Classes\CLSID\"
Gosub WRITECLASS
Return
;
:WRITECLASS
$key=$keyroot+$keyclass
$temp=ReadValue($key,"") ; Reads the "(Default)" value at the key.
? "The "+$classname+" name in: "+$key
? "is: "+$temp
If $temp<>$testvalue
$returncode=WriteValue($key,"",$testvalue,$rsz)
If $returncode=0
? "The "+$testvalue+" was written to: "+$key
Else
? "There was an error writing the "+$testvalue+" to: "+$key
? "The error code is: "+$returncode
Endif
Endif
Return[/CODE}

Regards,

Brad

Top
#502 - 1999-09-23 07:30 AM Re: IP-Adress, logon server an Domain name
Anonymous
Unregistered


Oops,

Ignore the 'CODE' parts. I was trying to use the ubb codes and messed up the closing ].

Brad

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1343 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.046 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org