Something went wrong. Try again.
Reactos
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980/* * PROJECT: ReactOS Console Utilities Library * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) * PURPOSE: Base set of functions for loading string resources * and message strings, and handle type identification. * COPYRIGHT: Copyright 2017-2021 ReactOS Team * Copyright 2017-2021 Hermes Belusca-Maito */
/** * @file utils.h * @ingroup ConUtils * * @brief General-purpose utility functions (wrappers around * or reimplementations of Win32 APIs). **/
#ifndef __UTILS_H__#define __UTILS_H__
#pragma once
#ifndef _UNICODE#error The ConUtils library at the moment only supports compilation with _UNICODE defined!#endif
#ifdef __cplusplusextern "C" {#endif
INTWINAPIK32LoadStringExW( IN HINSTANCE hInstance OPTIONAL, IN UINT uID, IN LANGID LanguageId, OUT LPWSTR lpBuffer, IN INT nBufferMax);
INTWINAPIK32LoadStringW( IN HINSTANCE hInstance OPTIONAL, IN UINT uID, OUT LPWSTR lpBuffer, IN INT nBufferMax);
DWORDWINAPIFormatMessageSafeW( IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId, OUT LPWSTR lpBuffer, IN DWORD nSize, IN va_list *Arguments OPTIONAL);
LANGIDConSetThreadUILanguage( IN LANGID LangId OPTIONAL);
BOOLIsTTYHandle(IN HANDLE hHandle);
BOOLIsConsoleHandle(IN HANDLE hHandle);
// #include <wincon.h>
#ifdef __cplusplus}#endif
#endif /* __UTILS_H__ */
/* EOF */