| |
| INT WINAPI WhoisSearch(
|
| |
HCLIENT hClient, |
|
| |
LPCTSTR lpszKeyword, |
|
| |
UINT nSearchType |
|
| );
|
The WhoisSearch function submits the specified keyword to
the server.
Parameters
- hClient
- Handle to the client session.
- lpszKeyword
- Points to a null-terminated string which specifies the query
keyword. It may be a handle, name or mailbox.
- nSearchType
- The type of search being performed. One of the following values
may be used:
| Constant |
Description |
| WHOIS_SEARCH_ANY |
Search for any record that matches the specified keyword. |
| WHOIS_SEARCH_HANDLE |
Search only for handles that match the specified keyword. |
| WHOIS_SEARCH_MAILBOX |
Search only for mailboxes that match the specified
keyword. |
Return Value
If the function succeeds, the return value is zero. If the
function fails, the return value is WHOIS_ERROR. 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, WhoisConnect, WhoisIsReadable, WhoisRead
|
|