Erwin Craps
Erwin.Craps at ithelps.be
Wed Sep 17 01:58:11 CDT 2003
What do you mean with local network name? The workgroup, domain name? Don't know that one, but I supose it's posible. The network user name I can give you an api call for. Hope this helps. Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _ "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long Function GetNetworkUserName() As Variant Dim lngLen As Long Dim lngX As Long Dim strUserName As String strUserName = String$(254, 0) lngLen = 255 lngX = apiGetUserName(strUserName, lngLen) If lngX <> 0 Then GetNetworkUserName = Left$(strUserName, lngLen - 1) Else GetNetworkUserName = Null End If End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, September 16, 2003 7:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Detect what Network I'm on I need to be able to detect the name of what local network I am on. Anyone have an API call for this? John Skolits _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com