|
|
| HCLIENT
WhoisConnect(
|
|
|
LPCTSTR
lpszRemoteHost, |
|
|
|
|
UINT
nRemotePort, |
|
|
|
|
UINT nTimeout, |
|
|
|
|
DWORD
dwReserved |
|
|
| );
|
Parameters
- lpszRemoteHost
- A pointer to the name of the remote host to connect to; this
may be a fully-qualified domain name, or an IP address.
- nRemotePort
- The port number the remote 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
before failing the operation; a value of zero indicates that the
client should wait an indefinite period of time.
- 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 Vista, Windows XP or Windows
2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or
Windows 2000 Server.
Header: Include cstools6.h.
Library: Use cswhoav6.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
WhoisAsyncConnect, WhoisDisconnect, WhoisInitialize, WhoisSearch
|
|