35 if (ConsoleCtrlInfoLength !=
sizeof(DesktopConsoleThreadInfo))
63 OldThreadId =
Desktop->dwConsoleThreadId;
72 DesktopConsoleThreadInfo.
ThreadId = OldThreadId;
93 if (ConsoleCtrlInfoLength !=
sizeof(
ATOM))
117 if (ConsoleCtrlInfoLength !=
sizeof(hPalette))
126 hPalette = *(HPALETTE*)ConsoleCtrlInfo;
144 ERR(
"NtUserConsoleControl - ConsoleAcquireDisplayOwnership is UNIMPLEMENTED\n");
150 ERR(
"Calling invalid control %d in NtUserConsoleControl\n", ConsoleCtrl);
#define DBG_DEFAULT_CHANNEL(ch)
#define NT_SUCCESS(StatCode)
#define INVALID_HANDLE_VALUE
VOID NTAPI ProbeForRead(IN CONST VOID *Address, IN SIZE_T Length, IN ULONG Alignment)
VOID NTAPI ProbeForWrite(IN PVOID Address, IN SIZE_T Length, IN ULONG Alignment)
#define EXCEPTION_EXECUTE_HANDLER
@ ConsoleCtrlDesktopConsoleThread
@ ConsoleMakePalettePublic
@ ConsoleAcquireDisplayOwnership
struct _DESKTOP_CONSOLE_THREAD * PDESKTOP_CONSOLE_THREAD
enum _CONSOLECONTROL CONSOLECONTROL
#define GDI_OBJ_HMGR_PUBLIC
#define STATUS_NOT_IMPLEMENTED
#define STATUS_INVALID_INFO_CLASS
VOID FASTCALL UserLeave(VOID)
VOID FASTCALL UserEnterExclusive(VOID)
ATOM gaGuiConsoleWndClass
NTSTATUS NTAPI ObReferenceObjectByHandle(IN HANDLE Handle, IN ACCESS_MASK DesiredAccess, IN POBJECT_TYPE ObjectType, IN KPROCESSOR_MODE AccessMode, OUT PVOID *Object, OUT POBJECT_HANDLE_INFORMATION HandleInformation OPTIONAL)
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
#define _SEH2_YIELD(__stmt)
#define STATUS_ACCESS_DENIED
#define STATUS_INFO_LENGTH_MISMATCH
POBJECT_TYPE ExDesktopObjectType
BOOL NTAPI GreSetObjectOwnerEx(HGDIOBJ hobj, ULONG ulOwner, ULONG Flags)
NTSTATUS APIENTRY NtUserConsoleControl(IN CONSOLECONTROL ConsoleCtrl, IN PVOID ConsoleCtrlInfo, IN ULONG ConsoleCtrlInfoLength)
#define ObDereferenceObject
#define PsGetCurrentProcess