File: winfix.h

package info (click to toggle)
nmap 6.00-0.3%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 55,576 kB
  • sloc: ansic: 108,190; cpp: 60,191; sh: 19,314; python: 16,531; xml: 9,428; makefile: 2,473; perl: 1,980; yacc: 608; lex: 469; asm: 372
file content (37 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef WINFIX_H
#define WINFIX_H

#include <winsock2.h>
#include <windows.h>
#include <iphlpapi.h>

#ifndef EXTERNC
# ifdef __cplusplus
#  define EXTERNC extern "C"
# else
#  define EXTERNC extern
# endif
#endif

//	windows-specific options

#include <pcap.h>

/*   (exported) functions   */
/* The code that has no preconditions to being called, so it can be
   executed before even Nmap options parsing (so o.debugging and the
   like don't need to be used.  Its main function is to do
   WSAStartup() as some of the option parsing code does DNS
   resolution */
EXTERNC void win_pre_init();

/* Requires that win_pre_init() has already been called, also that
   options processing has been done so that o.debugging is
   available */
EXTERNC void win_init();
EXTERNC void win_barf(const char *msg);
#endif