|
|
| INT
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 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, WhoisConnect, WhoisIsReadable, WhoisRead
|
|