ReactOS 0.4.15-dev-8146-gdc0ed6d
utils.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Console Utilities Library
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Base set of functions for loading string resources
5 * and message strings, and handle type identification.
6 * COPYRIGHT: Copyright 2017-2021 ReactOS Team
7 * Copyright 2017-2021 Hermes Belusca-Maito
8 */
9
18#ifndef __UTILS_H__
19#define __UTILS_H__
20
21#pragma once
22
23#ifndef _UNICODE
24#error The ConUtils library at the moment only supports compilation with _UNICODE defined!
25#endif
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31INT
35 IN UINT uID,
36 IN LANGID LanguageId,
38 IN INT nBufferMax);
39
40INT
44 IN UINT uID,
46 IN INT nBufferMax);
47
52 IN LPCVOID lpSource OPTIONAL,
53 IN DWORD dwMessageId,
54 IN DWORD dwLanguageId,
57 IN va_list *Arguments OPTIONAL);
58
61 IN LANGID LangId OPTIONAL);
62
63BOOL
64IsTTYHandle(IN HANDLE hHandle);
65
66BOOL
68
69
70// #include <wincon.h>
71
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* __UTILS_H__ */
78
79/* EOF */
char * va_list
Definition: acmsvcex.h:78
HINSTANCE hInstance
Definition: charmap.c:19
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
USHORT LANGID
Definition: mui.h:9
unsigned int UINT
Definition: ndis.h:50
#define IsConsoleHandle(h)
Definition: console.h:14
LANGID ConSetThreadUILanguage(IN LANGID LangId OPTIONAL)
Definition: utils.c:352
INT WINAPI K32LoadStringW(IN HINSTANCE hInstance OPTIONAL, IN UINT uID, OUT LPWSTR lpBuffer, IN INT nBufferMax)
Definition: utils.c:173
INT WINAPI K32LoadStringExW(IN HINSTANCE hInstance OPTIONAL, IN UINT uID, IN LANGID LanguageId, OUT LPWSTR lpBuffer, IN INT nBufferMax)
Definition: utils.c:99
BOOL IsTTYHandle(IN HANDLE hHandle)
Definition: utils.c:393
DWORD WINAPI FormatMessageSafeW(IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId, OUT LPWSTR lpBuffer, IN DWORD nSize, IN va_list *Arguments OPTIONAL)
Definition: utils.c:254
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2084
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
CONST void * LPCVOID
Definition: windef.h:191
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184