* Read functions *
******************/
-DWORD
-WINAPI
-GetConsoleInputExeNameW(DWORD nBufferLength, LPWSTR lpBuffer);
-
static
BOOL
IntReadConsole(IN HANDLE hConsoleInput,
ReadConsoleRequest->Unicode = bUnicode;
/*
- * Retrieve the current console executable name string and length (always
- * in UNICODE format).
- * FIXME: Do not use GetConsoleInputExeNameW but use something else...
+ * Retrieve the (current) Input EXE name string and length,
+ * not NULL-terminated (always in UNICODE format).
*/
- // 1- Get the exe name length in characters, including NULL character.
ReadConsoleRequest->ExeLength =
- (USHORT)GetConsoleInputExeNameW(0, (PWCHAR)ReadConsoleRequest->StaticBuffer);
- // 2- Get the exe name (GetConsoleInputExeNameW returns 1 in case of success).
- if (GetConsoleInputExeNameW(ReadConsoleRequest->ExeLength,
- (PWCHAR)ReadConsoleRequest->StaticBuffer) != 1)
- {
- // Nothing
- ReadConsoleRequest->ExeLength = 0;
- }
- else
- {
- // Remove the NULL character, and convert in number of bytes.
- ReadConsoleRequest->ExeLength--;
- ReadConsoleRequest->ExeLength *= sizeof(WCHAR);
- }
+ GetCurrentExeName((PWCHAR)ReadConsoleRequest->StaticBuffer,
+ sizeof(ReadConsoleRequest->StaticBuffer));
/*** For DEBUGGING purposes ***/
{
}
_SEH2_END;
- /* Check for sanity */
+ /* FIXME: Check for sanity */
/*
if (!NT_SUCCESS(Status) && pInputControl)
{
* Read functions *
******************/
-/*--------------------------------------------------------------
- * ReadConsoleW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * PeekConsoleInputW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * PeekConsoleInputA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleInputW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleInputA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleInputExW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleInputExA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleOutputW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleOutputA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleOutputCharacterW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleOutputCharacterA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * ReadConsoleOutputAttribute
- *
+/*
* @implemented
*/
BOOL
* Write functions *
*******************/
-/*--------------------------------------------------------------
- * WriteConsoleW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleInputW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleInputA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleInputVDMW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleInputVDMA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleOutputW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleOutputA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleOutputCharacterW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleOutputCharacterA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * WriteConsoleOutputAttribute
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * FillConsoleOutputCharacterW
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * FillConsoleOutputCharacterA
- *
+/*
* @implemented
*/
BOOL
}
-/*--------------------------------------------------------------
- * FillConsoleOutputAttribute
- *
+/*
* @implemented
*/
BOOL