Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
win32-utils.h
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 /*
15  * This is included in ABI checking, so protect it with #ifdef _WIN32,
16  * so it doesn't break ABI checking on UN*X.
17  */
18 #ifdef _WIN32
19 
20 #include "ws_symbol_export.h"
21 
22 #include <glib.h>
23 #include <windows.h>
24 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
48 WS_DLL_PUBLIC
49 gchar * protect_arg (const gchar *argv);
50 
56 WS_DLL_PUBLIC
57 const char * win32strerror(DWORD error);
58 
64 WS_DLL_PUBLIC
65 const char * win32strexception(DWORD exception);
66 
82 WS_DLL_PUBLIC
83 BOOL win32_create_process(const char *application_name, const char *command_line,
84  LPSECURITY_ATTRIBUTES process_attributes, LPSECURITY_ATTRIBUTES thread_attributes,
85  BOOL inherit_handles, DWORD creation_flags, LPVOID environment,
86  const char *current_directory, LPSTARTUPINFO startup_info, LPPROCESS_INFORMATION process_information
87 );
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif /* _WIN32 */
94 
95 #endif /* __WIN32UTIL_H__ */