Group: Windows Networking - Library: odbc32
Retrieving a universal form for the drive-based path for a network resource
Connecting a local device to a network resource
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
);
DECLARE INTEGER WNetGetLastError IN mpr;
INTEGER @ lpError,;
STRING @ lpErrorBuf,;
INTEGER nErrorBufSize,;
STRING @ lpNameBuf,;
INTEGER nNameBufSize
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.
If the function succeeds, and it obtains the last error that the network provider reported, the return value is NO_ERROR.