Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
win32-utils.h
Go to the documentation of this file.
1/* win32-utils.h
2 * Windows utility definitions
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <[email protected]>
6 * Copyright 2006 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef __WIN32UTIL_H__
12#define __WIN32UTIL_H__
13
14#include <wireshark.h>
15
16#include <windows.h>
17
23#ifdef __cplusplus
24extern "C" {
25#endif
26
41WS_DLL_PUBLIC
42char * protect_arg (const char *argv);
43
52WS_DLL_PUBLIC
53bool win32_is_pipe_name(const char* pipe_name);
54
60WS_DLL_PUBLIC
61const char * win32strerror(DWORD error);
62
68WS_DLL_PUBLIC
69const char * win32strexception(DWORD exception);
70
94WS_DLL_PUBLIC
95BOOL win32_create_process(const char *application_name, const char *command_line,
96 LPSECURITY_ATTRIBUTES process_attributes, LPSECURITY_ATTRIBUTES thread_attributes,
97 size_t n_inherit_handles, HANDLE *inherit_handles,
98 DWORD creation_flags, LPVOID environment,
99 const char *current_directory, LPSTARTUPINFO startup_info, LPPROCESS_INFORMATION process_information
100);
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* __WIN32UTIL_H__ */
WS_DLL_PUBLIC BOOL win32_create_process(const char *application_name, const char *command_line, LPSECURITY_ATTRIBUTES process_attributes, LPSECURITY_ATTRIBUTES thread_attributes, size_t n_inherit_handles, HANDLE *inherit_handles, DWORD creation_flags, LPVOID environment, const char *current_directory, LPSTARTUPINFO startup_info, LPPROCESS_INFORMATION process_information)
ws_pipe_create_process Create a process and assign it to the main application job object so that it w...
Definition win32-utils.c:244
WS_DLL_PUBLIC bool win32_is_pipe_name(const char *pipe_name)
Definition win32-utils.c:87
WS_DLL_PUBLIC const char * win32strerror(DWORD error)
Definition win32-utils.c:117
WS_DLL_PUBLIC char * protect_arg(const char *argv)
Definition win32-utils.c:31
WS_DLL_PUBLIC const char * win32strexception(DWORD exception)
Definition win32-utils.c:171