GNUnet  0.10.x
Functions
w32nsp-uninstall.c File Reference
#include <ws2spi.h>
#include <windows.h>
#include <nspapi.h>
#include <initguid.h>
#include "gnunet_w32nsp_lib.h"
#include <stdio.h>
Include dependency graph for w32nsp-uninstall.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 9 of file w32nsp-uninstall.c.

References ret.

10 {
11  int ret;
12  GUID id = GNUNET_NAMESPACE_PROVIDER_DNS;
13  WSADATA wsd;
14 
15  if (WSAStartup (MAKEWORD (2,2), &wsd) != 0)
16  {
17  fprintf (stderr, "WSAStartup () failed: %lu\n", GetLastError ());
18  return 5;
19  }
20 
21  ret = WSCUnInstallNameSpace (&id);
22  if (ret == NO_ERROR)
23  {
24  fprintf (stderr, "Uninstalled GNUnet DNS provider\n");
25  WSACleanup ();
26  return 0;
27  }
28  fprintf (stderr, "WSCUnInstallNameSpace () failed: %lu\n", GetLastError ());
29  WSACleanup ();
30  return 1;
31 }
static int ret
Final status code.
Definition: gnunet-arm.c:89