Wireshark 4.7.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
44WS_DLL_PUBLIC
45char * protect_arg (const char *argv);
46
57WS_DLL_PUBLIC
58bool win32_is_pipe_name(const char* pipe_name);
59
66WS_DLL_PUBLIC
67const char * win32strerror(DWORD error);
68
75WS_DLL_PUBLIC
76const char * win32strexception(DWORD exception);
77
101WS_DLL_PUBLIC
102BOOL win32_create_process(const char *application_name, const char *command_line,
103 LPSECURITY_ATTRIBUTES process_attributes, LPSECURITY_ATTRIBUTES thread_attributes,
104 size_t n_inherit_handles, HANDLE *inherit_handles,
105 DWORD creation_flags, LPVOID environment,
106 const char *current_directory, LPSTARTUPINFO startup_info, LPPROCESS_INFORMATION process_information
107);
108
109#ifdef __cplusplus
110}
111#endif
112
113#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)
Tests a UTF-8 string to see if it is a Windows pipe name.
Definition win32-utils.c:87
WS_DLL_PUBLIC const char * win32strerror(DWORD error)
Generate a string for a Windows error.
Definition win32-utils.c:117
WS_DLL_PUBLIC char * protect_arg(const char *argv)
Quote a command-line argument for Windows process creation.
Definition win32-utils.c:31
WS_DLL_PUBLIC const char * win32strexception(DWORD exception)
Generate a string for a Win32 exception code.
Definition win32-utils.c:171