mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:25:52 +00:00
[NTVDM] Missed this file.
This commit is contained in:
parent
9716814879
commit
d822478e06
1 changed files with 0 additions and 26 deletions
|
@ -22,32 +22,6 @@
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
#include "process.h"
|
#include "process.h"
|
||||||
|
|
||||||
/* PRIVATE FUNCTIONS **********************************************************/
|
|
||||||
|
|
||||||
/* Taken from base/shell/cmd/console.c */
|
|
||||||
static BOOL IsConsoleHandle(HANDLE hHandle)
|
|
||||||
{
|
|
||||||
DWORD dwMode;
|
|
||||||
|
|
||||||
/* Check whether the handle may be that of a console... */
|
|
||||||
if ((GetFileType(hHandle) & FILE_TYPE_CHAR) == 0) return FALSE;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* It may be. Perform another test... The idea comes from the
|
|
||||||
* MSDN description of the WriteConsole API:
|
|
||||||
*
|
|
||||||
* "WriteConsole fails if it is used with a standard handle
|
|
||||||
* that is redirected to a file. If an application processes
|
|
||||||
* multilingual output that can be redirected, determine whether
|
|
||||||
* the output handle is a console handle (one method is to call
|
|
||||||
* the GetConsoleMode function and check whether it succeeds).
|
|
||||||
* If the handle is a console handle, call WriteConsole. If the
|
|
||||||
* handle is not a console handle, the output is redirected and
|
|
||||||
* you should call WriteFile to perform the I/O."
|
|
||||||
*/
|
|
||||||
return GetConsoleMode(hHandle, &dwMode);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* PUBLIC FUNCTIONS ***********************************************************/
|
/* PUBLIC FUNCTIONS ***********************************************************/
|
||||||
|
|
||||||
VOID DosCopyHandleTable(LPBYTE DestinationTable)
|
VOID DosCopyHandleTable(LPBYTE DestinationTable)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue