Wireshark  4.3.0
The Wireshark network protocol analyzer
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 <gerald@wireshark.org>
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
24 extern "C" {
25 #endif
26 
41 WS_DLL_PUBLIC
42 char * protect_arg (const char *argv);
43 
49 WS_DLL_PUBLIC
50 const char * win32strerror(DWORD error);
51 
57 WS_DLL_PUBLIC
58 const char * win32strexception(DWORD exception);
59 
83 WS_DLL_PUBLIC
84 BOOL win32_create_process(const char *application_name, const char *command_line,
85  LPSECURITY_ATTRIBUTES process_attributes, LPSECURITY_ATTRIBUTES thread_attributes,
86  size_t n_inherit_handles, HANDLE *inherit_handles,
87  DWORD creation_flags, LPVOID environment,
88  const char *current_directory, LPSTARTUPINFO startup_info, LPPROCESS_INFORMATION process_information
89 );
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
95 #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:221
WS_DLL_PUBLIC const char * win32strerror(DWORD error)
Definition: win32-utils.c:94
WS_DLL_PUBLIC char * protect_arg(const char *argv)
Definition: win32-utils.c:30
WS_DLL_PUBLIC const char * win32strexception(DWORD exception)
Definition: win32-utils.c:148