MCPcopy Create free account
hub / github.com/OpenMW/openmw / isRedirected

Function isRedirected

components/debug/debugging.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46{
47#ifdef _WIN32
48 bool isRedirected(DWORD nStdHandle)
49 {
50 DWORD fileType = GetFileType(GetStdHandle(nStdHandle));
51
52 return (fileType == FILE_TYPE_DISK) || (fileType == FILE_TYPE_PIPE);
53 }
54
55 bool attachParentConsole()
56 {

Callers 1

attachParentConsoleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected