c148fc15d4708882ab1da1fb3c75bbdf35c26b4b
[reactos.git] / reactos / lib / dnsapi / dnsapi / adns.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/dnsapi/dnsapi/context.c
5 * PURPOSE: ADNS translation.
6 * PROGRAMER: Art Yerkes
7 * UPDATE HISTORY:
8 * 12/15/03 -- Created
9 */
10
11 #include <windows.h>
12 #include <WinError.h>
13 #include <WinDNS.h>
14 #include <internal/windns.h>
15
16 DNS_STATUS DnsIntTranslateAdnsToDNS_STATUS( int Status ) {
17 switch( Status ) {
18 case adns_s_ok:
19 return ERROR_SUCCESS;
20 case adns_s_nomemory:
21 case adns_s_systemfail:
22 default: /* There really aren't any general errors in the dns part. */
23 return DNS_ERROR_NO_MEMORY;
24 }
25 }
26