Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
wsutil
processes.h
1
/* processes.h
2
* Process utility definitions
3
*
4
* Wireshark - Network traffic analyzer
5
* By Gerald Combs <gerald@wireshark.org>
6
* Copyright 1998 Gerald Combs
7
*
8
* SPDX-License-Identifier: GPL-2.0-or-later
9
*/
10
11
#ifndef _WSUTIL_PROCESSES_H_
12
#define _WSUTIL_PROCESSES_H_
13
14
#include "ws_symbol_export.h"
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
/* __cplusplus */
19
20
#ifdef _WIN32
21
/*
22
* On Windows, a process ID is a HANDLE.
23
* Include <windows.h> to make sure HANDLE is defined.
24
*/
25
#include <windows.h>
26
27
typedef
HANDLE ws_process_id;
28
29
#define WS_INVALID_PID INVALID_HANDLE_VALUE
30
#else
31
/*
32
* On UN*X, a process ID is a pid_t.
33
* Include <sys/types.h> to make sure pid_t is defined.
34
*/
35
#include <sys/types.h>
36
37
typedef
pid_t ws_process_id;
38
39
#define WS_INVALID_PID -1
40
#endif
41
42
#ifdef __cplusplus
43
}
44
#endif
/* __cplusplus */
45
46
#endif
/* _WSUTIL_PROCESSES_H_ */
Generated by
1.8.11