13#define HANDLE_DETACHED_PROCESS (HANDLE)-1
14#define HANDLE_CREATE_NEW_CONSOLE (HANDLE)-2
15#define HANDLE_CREATE_NO_WINDOW (HANDLE)-3
38 DWORD dwDesiredAccess,
97 DWORD dwDesiredAccess,
static CHAR AppName[MAX_PATH]
DWORD WINAPI PropDialogHandler(IN LPVOID lpThreadParameter)
VOID SetUpConsoleInfo(IN BOOLEAN CaptureTitle, IN OUT LPDWORD pTitleLength, IN OUT LPWSTR *lpTitle OPTIONAL, IN OUT LPDWORD pDesktopLength, IN OUT LPWSTR *lpDesktop OPTIONAL, IN OUT PCONSOLE_START_INFO ConsoleStartInfo)
LPCWSTR IntCheckForConsoleFileName(IN LPCWSTR pszName, IN DWORD dwDesiredAccess)
DWORD WINAPI ConsoleControlDispatcher(IN LPVOID lpThreadParameter)
BOOL WINAPI VerifyConsoleIoHandle(HANDLE Handle)
BOOL WINAPI GetConsoleHandleInformation(IN HANDLE hHandle, OUT LPDWORD lpdwFlags)
VOID SetTEBLangID(VOID)
Internal helper function used to synchronize the current thread's language ID with the one from the c...
HANDLE WINAPI DuplicateConsoleHandle(HANDLE hConsole, DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwOptions)
HANDLE TranslateStdHandle(HANDLE hHandle)
BOOL WINAPI SetConsoleHandleInformation(IN HANDLE hHandle, IN DWORD dwMask, IN DWORD dwFlags)
USHORT GetCurrentExeName(OUT PWCHAR ExeName, IN USHORT BufferSize)
HANDLE WINAPI GetConsoleInputWaitHandle(VOID)
BOOL WINAPI CloseConsoleHandle(HANDLE Handle)
BOOLEAN WINAPI ConDllInitialize(IN ULONG Reason, IN PWSTR SessionDir)
VOID SetUpHandles(IN PCONSOLE_START_INFO ConsoleStartInfo)
VOID InitializeCtrlHandling(VOID)
HANDLE WINAPI OpenConsoleW(LPCWSTR wsName, DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwShareMode)
VOID SetUpAppName(IN BOOLEAN CaptureStrings, IN OUT LPDWORD CurDirLength, IN OUT LPWSTR *CurDir, IN OUT LPDWORD AppNameLength, IN OUT LPWSTR *AppName)
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
static BOOL bInheritHandle
PULONG MinorVersion OPTIONAL
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags