Debian Codegraph @

libcerror/libcerror_system.h

raw symbols SCIP
1 /*
2 * System functions
3 *
4 * Copyright (C) 2008-2024, Joachim Metz <[email protected]>
5 *
6 * Refer to AUTHORS for acknowledgements.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 #if !defined( _LIBCERROR_SYSTEM_H )
23 #define _LIBCERROR_SYSTEM_H
24
25 #include <common.h>
26 #include <types.h>
27
28 #include <stdio.h>
29
30 #include "libcerror_extern.h"
31 #include "libcerror_types.h"
32
33 #if defined( __cplusplus )
34 extern "C" {
35 #endif
36
37 #if defined( WINAPI ) && ( WINVER <= 0x0500 )
38
39 DWORD libcerror_FormatMessageA(
40 DWORD flags,
41 LPCVOID source,
42 DWORD message_identifier,
43 DWORD language_identifier,
44 LPCSTR string,
45 DWORD string_size,
46 va_list *argument_list );
47
48 DWORD libcerror_FormatMessageW(
49 DWORD flags,
50 LPCVOID source,
51 DWORD message_identifier,
52 DWORD language_identifier,
53 LPWSTR string,
54 DWORD string_size,
55 va_list *argument_list );
56
57 #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */
58
59 int libcerror_system_copy_string_from_error_number(
60 system_character_t *string,
61 size_t string_size,
62 uint32_t error_number );
63
64 LIBCERROR_EXTERN \
65 void libcerror_system_set_error(
66 libcerror_error_t **error,
67 int error_domain,
68 int error_code,
69 uint32_t system_error_code,
70 const char *format_string,
71 ... );
72
73 #if defined( __cplusplus )
74 }
75 #endif
76
77 #endif /* !defined( _LIBCERROR_SYSTEM_H ) */
78