| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
processes.h
Go to the documentation of this file.
1
11
12#ifndef _WSUTIL_PROCESSES_H_
13#define _WSUTIL_PROCESSES_H_
14
15#include "ws_symbol_export.h"
16
17#ifdef _WIN32
18/*
19 * On Windows, a process ID is a HANDLE.
20 * Include <windows.h> to make sure HANDLE is defined.
21 */
22#include <windows.h>
23#else
24/*
25 * On UN*X, a process ID is a pid_t.
26 * Include <sys/types.h> to make sure pid_t is defined.
27 */
28#include <sys/types.h>
29#endif
30
31#ifdef __cplusplus
32 extern "C" {
33#endif /* __cplusplus */
34
35#ifdef _WIN32
36/*
37 * On Windows, a process ID is a HANDLE.
38 */
39 typedef HANDLE ws_process_id;
40
41#define WS_INVALID_PID INVALID_HANDLE_VALUE
42
43#else
44/*
45 * On UN*X, a process ID is a pid_t.
46 */
47 typedef pid_t ws_process_id;
48
49#define WS_INVALID_PID -1
50#endif
51
52#ifdef __cplusplus
53}
54#endif /* __cplusplus */
55
56#endif /* _WSUTIL_PROCESSES_H_ */