| |
| HCLIENT WINAPI WhoisConnect(
|
| |
LPCTSTR lpszRemoteHost, |
|
| |
UINT nRemotePort, |
|
| |
UINT nTimeout, |
|
| |
DWORD dwReserved |
|
| );
|
Parameters
- lpszRemoteHost
- A pointer to the name of the server to connect to; this may be
a fully-qualified domain name or an IP address.
- nRemotePort
- The port number the server is listening on; a value of zero
specifies that the default port number should be used.
- nTimeout
- The number of seconds that the client will wait for a response
from the server before failing the current operation.
- dwReserved
- A reserved parameter. This value should always be zero.
Return Value
If the function succeeds, the return value is a handle to a
client session. If the function fails, the return value is
INVALID_CLIENT. To get extended error information, call
WhoisGetLastError.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cstools7.h.
Library: Use cswhoav7.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
WhoisAsyncConnect, WhoisDisconnect, WhoisInitialize, WhoisSearch
|
|