 |
WNetGetConnection ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The WNetGetConnection function retrieves the name of the network resource associated with a local device. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD WNetGetConnection(
LPCTSTR lpLocalName, // local name
LPTSTR lpRemoteName, // buffer for remote name
LPDWORD lpnLength // buffer size
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER WNetGetConnection IN mpr;
STRING lpLocalName,;
STRING @ lpRemoteName,;
INTEGER @ lpnLength
|
 |
 |
 |
| Parameters: |
 |
lpLocalName
[in] Pointer to a constant null-terminated string that specifies the name of the local device to get the network name for.
lpRemoteName
[out] Pointer to a null-terminated character string buffer that receives the remote name used to make the connection.
lpnLength
[in/out] Pointer to a variable that specifies the size, in characters, of the buffer pointed to by the lpRemoteName parameter. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is NO_ERROR (0). |
 |
 |
| Word Index links for the WNetGetConnection : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-06-28 12:21:26 | | Modified: | 2002-06-28 12:22:51 | Visited in last 7 days: 34 |