Using Win32 functions in Visual FoxPro Image Gallery
Windows Networking
..msdn
NetGetJoinInformation
NetJoinDomain
NetUnjoinDomain
WNetAddConnection
WNetAddConnection2
WNetCancelConnection2
WNetCloseEnum
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetEnumResource
WNetGetConnection
WNetGetLastError
WNetGetNetworkInformation
WNetGetProviderName
WNetGetUniversalName
WNetGetUser
WNetOpenEnum
Code examples:
Retrieving current user for the process
WNetGetUser
..msdn    Add comment     W32 Constants      Translate this page
The WNetGetUser function retrieves the current default user name, or the user name used to establish a network connection.
Code examples:
Retrieving current user for the process
Declaration:
DWORD WNetGetUser(
  LPCTSTR lpName,     // device or resource name
  LPTSTR lpUserName,  // name buffer
  LPDWORD lpnLength   // buffer size
);
FoxPro declaration:
DECLARE INTEGER WNetGetUser IN mpr;
    INTEGER   lpName,;
    STRING  @ lpUserName,;
    INTEGER @ lpnLength
Parameters:
lpName
[in] Pointer to a constant null-terminated string that specifies either the name of a local device or the remote name of a network resource.

lpUserName
[out] Pointer to a buffer that receives the null-terminated user name.

lpnLength
[in/out] Pointer to a variable that specifies the size, in characters, of the buffer pointed to by the lpUserName parameter.
Return value:
If the function succeeds, the return value is NO_ERROR (0).
My comment:
Compare this function with the GetUserName.

SYS(0) -- the network machine information -- returns computer name and user name in one string.
Word Index links for the WNetGetUser :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-06-06 08:32:04
Modified: 2002-06-07 08:45:19
Visited in last 7 days: 9
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.197.86)
8 sec.Function: 'IsClipboardFormatAvailable'
16 sec.Function: 'SQLConnect'
23 sec.Function: 'GetPriorityClass'
29 sec.Example: 'Using named pipes for interprocess communication'
37 sec.Function: 'getprotobynumber'
44 sec.Function: 'CreateEllipticRgn'
51 sec.Function: 'GetErrorMode'
59 sec.Function: 'InetIsOffline'
1.12 min.Function: 'GetAdaptersAddresses'
1.25 min.Function: 'MQHandleToFormatName'
Google
Advertise here!