2003-12-18 10:54:02 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
|
|
|
* FILE: lib/dnsapi/dnsapi/context.c
|
|
|
|
* PURPOSE: ADNS translation.
|
|
|
|
* PROGRAMER: Art Yerkes
|
|
|
|
* UPDATE HISTORY:
|
|
|
|
* 12/15/03 -- Created
|
|
|
|
*/
|
|
|
|
|
2005-10-19 17:03:38 +00:00
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
2003-12-18 10:54:02 +00:00
|
|
|
|
2008-07-04 22:41:28 +00:00
|
|
|
DNS_STATUS
|
|
|
|
DnsIntTranslateAdnsToDNS_STATUS(int Status)
|
|
|
|
{
|
|
|
|
switch(Status)
|
|
|
|
{
|
|
|
|
case adns_s_ok:
|
|
|
|
return ERROR_SUCCESS;
|
2003-12-18 10:54:02 +00:00
|
|
|
|
2008-07-04 22:41:28 +00:00
|
|
|
case adns_s_nomemory:
|
|
|
|
case adns_s_systemfail:
|
|
|
|
default: /* There really aren't any general errors in the dns part. */
|
|
|
|
return ERROR_OUTOFMEMORY;
|
|
|
|
}
|
|
|
|
}
|