Platform SDK: Network Management |
The DnsWriteQuestionToBuffer function type creates a DNS query message and stores it in a DNS_MESSAGE_BUFFER structure. Like many DNS functions, the DnsWriteQuestionToBuffer function type is implemented in multiple forms to facilitate different character encoding. Based on the character encoding involved, use one of the following functions:
DnsWriteQuestionToBuffer_W (_W for Unicode encoding)
DnsWriteQuestionToBuffer_UTF8 (_UTF8 for UTF-8 encoding)
If the DnsWriteQuestionToBuffer function type is called without its suffix (either _W or _UTF8), a compiler error will occur.
BOOL WINAPI DnsWriteQuestionToBuffer ( PDNS_MESSAGE_BUFFER pDnsBuffer, LPDWORD pdwBufferSize, LPWSTR pszName, WORD wType, WORD Xid, BOOL fRecursionDesired );
Returns TRUE upon successful execution, otherwise returns FALSE.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Windns.h.
Library: Use Dnsapi.lib.