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:
Connecting a local device to a network resource
Retrieving a universal form for the drive-based path for a network resource
WNetGetLastError
..msdn    Add comment     W32 Constants      Translate this page
The WNetGetLastError function retrieves the most recent extended error code set by a WNet function.
Code examples:
Connecting a local device to a network resource
Retrieving a universal form for the drive-based path for a network resource
Declaration:
DWORD WNetGetLastError(
  LPDWORD lpError,     // error code
  LPTSTR lpErrorBuf,   // error description buffer
  DWORD nErrorBufSize, // size of description buffer
  LPTSTR lpNameBuf,    // buffer for provider name
  DWORD nNameBufSize   // size of provider name buffer
);
FoxPro declaration:
DECLARE INTEGER WNetGetLastError IN mpr;
    INTEGER @ lpError,;
    STRING  @ lpErrorBuf,;
    INTEGER   nErrorBufSize,;
    STRING  @ lpNameBuf,;
    INTEGER   nNameBufSize

Parameters:
lpError
[out] Pointer to the variable that receives the error code reported by the network provider. The error code is specific to the network provider.

lpErrorBuf
[out] Pointer to the buffer that receives the null-terminated string describing the error.

nErrorBufSize
[in] Specifies the size, in characters, of the buffer pointed to by the lpErrorBuf parameter.

lpNameBuf
[out] Pointer to the buffer that receives the null-terminated string identifying the network provider that raised the error.

nNameBufSize
[in] Specifies the size, in characters, of the buffer pointed to by the lpNameBuf parameter.
Return value:
If the function succeeds, and it obtains the last error that the network provider reported, the return value is NO_ERROR.
Word Index links for the WNetGetLastError :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-07-16 15:31:13
Modified: 2002-07-16 15:33:47
Visited in last 7 days: 17
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.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.158.198.141)
6 sec.Function: 'sndPlaySound'
14 sec.Function: 'WNetEnumResource'
21 sec.Function: 'WSACreateEvent'
35 sec.Function: 'SetParent'
42 sec.Function: 'StretchDIBits'
49 sec.Function: 'SQLDriverConnect'
1.03 min.Function: 'SetEnvironmentVariable'
1.18 min.Function: 'WinHttpReadData'
1.42 min.Function: 'SetComputerName'
1.83 min.Function: 'SHBrowseForFolder'
Google
Advertise here!