+{
+ DWORD dwRecords = 0;
+ DNS_STATUS Status = ERROR_SUCCESS;
+
+ DPRINT("DnsQuery_W()\n");
+
+ *QueryResultSet = NULL;
+
+ RpcTryExcept
+ {
+ Status = R_ResolverQuery(NULL,
+ Name,
+ Type,
+ Options,
+ &dwRecords,
+ (DNS_RECORDW **)QueryResultSet);
+ DPRINT("R_ResolverQuery() returned %lu\n", Status);
+ }
+ RpcExcept(EXCEPTION_EXECUTE_HANDLER)
+ {
+ Status = RpcExceptionCode();
+ DPRINT("Exception returned %lu\n", Status);
+ }
+ RpcEndExcept;
+
+ return Status;
+}
+
+
+DNS_STATUS
+WINAPI
+Query_Main(LPCWSTR Name,
+ WORD Type,
+ DWORD Options,
+ PDNS_RECORD *QueryResultSet)