3 * Process utility definitions
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef _WSUTIL_PROCESSES_H_
13 #define _WSUTIL_PROCESSES_H_
15 #include "ws_symbol_export.h"
19 * On Windows, a process ID is a HANDLE.
20 * Include <windows.h> to make sure HANDLE is defined.
25 * On UN*X, a process ID is a pid_t.
26 * Include <sys/types.h> to make sure pid_t is defined.
28 #include <sys/types.h>
33 #endif /* __cplusplus */
37 * On Windows, a process ID is a HANDLE.
39 typedef HANDLE ws_process_id
;
41 #define WS_INVALID_PID INVALID_HANDLE_VALUE
45 * On UN*X, a process ID is a pid_t.
47 typedef pid_t ws_process_id
;
49 #define WS_INVALID_PID -1
54 #endif /* __cplusplus */
56 #endif /* _WSUTIL_PROCESSES_H_ */