Ruby  2.4.2p198(2017-09-14revision59899)
Macros | Functions
resolv.c File Reference
#include <ruby.h>
#include <ruby/encoding.h>
#include <windows.h>
#include <iphlpapi.h>
Include dependency graph for resolv.c:

Go to the source code of this file.

Macros

#define NTDDI_VERSION   0x06000000
 

Functions

static VALUE w32error_make_error (DWORD e)
 
static void w32error_raise (DWORD e)
 
static VALUE get_dns_server_list (VALUE self)
 
void InitVM_resolv (void)
 
void Init_resolv (void)
 

Macro Definition Documentation

◆ NTDDI_VERSION

#define NTDDI_VERSION   0x06000000

Definition at line 5 of file resolv.c.

Function Documentation

◆ get_dns_server_list()

static VALUE get_dns_server_list ( VALUE  self)
static

Definition at line 23 of file resolv.c.

References ALLOCV, ALLOCV_END, buf, NULL, Qnil, rb_ary_new(), rb_ary_push(), rb_str_new_cstr(), ULONG(), and w32error_raise().

Referenced by InitVM_resolv().

◆ Init_resolv()

void Init_resolv ( void  )

Definition at line 62 of file resolv.c.

References InitVM.

◆ InitVM_resolv()

void InitVM_resolv ( void  )

◆ w32error_make_error()

static VALUE w32error_make_error ( DWORD  e)
static

Definition at line 10 of file resolv.c.

References rb_class_new_instance(), rb_path2class(), and ULONG2NUM.

Referenced by w32error_raise().

◆ w32error_raise()

static void w32error_raise ( DWORD  e)
static

Definition at line 17 of file resolv.c.

References rb_exc_raise(), and w32error_make_error().

Referenced by get_dns_server_list().