25{
27
28 DPRINT1(
"SrvRegisterConsoleVDM(%d)\n", RegisterVDMRequest->RegisterFlags);
29
30 if (RegisterVDMRequest->RegisterFlags != 0)
31 {
35
36
37
38
39
40
43
44 Console->VDMBufferSize = RegisterVDMRequest->VDMBufferSize;
45
48
49
50
51
56 &SectionSize,
61 {
62 DPRINT1(
"Error: Impossible to create a shared section, Status = 0x%08lx\n",
Status);
64 }
65
66
67
68
74 0,
75 0,
79 0,
82 {
83 DPRINT1(
"Error: Impossible to map the shared section, Status = 0x%08lx\n",
Status);
86 }
87
88
89
90
91
97 0,
98 0,
102 0,
105 {
106 DPRINT1(
"Error: Impossible to map the shared section, Status = 0x%08lx\n",
Status);
110 }
111
112
113
114 RegisterVDMRequest->VDMBuffer =
Console->ClientVDMBuffer;
115
117 }
118 else
119 {
120
121
122
123
125 {
126
127
128
129
133 }
135
137
139 }
140}
NTSTATUS NTAPI NtUnmapViewOfSection(IN HANDLE ProcessHandle, IN PVOID BaseAddress)
NTSTATUS NTAPI NtCreateSection(OUT PHANDLE SectionHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN PLARGE_INTEGER MaximumSize OPTIONAL, IN ULONG SectionPageProtection OPTIONAL, IN ULONG AllocationAttributes, IN HANDLE FileHandle OPTIONAL)
NTSTATUS NTAPI NtMapViewOfSection(IN HANDLE SectionHandle, IN HANDLE ProcessHandle, IN OUT PVOID *BaseAddress, IN ULONG_PTR ZeroBits, IN SIZE_T CommitSize, IN OUT PLARGE_INTEGER SectionOffset OPTIONAL, IN OUT PSIZE_T ViewSize, IN SECTION_INHERIT InheritDisposition, IN ULONG AllocationType, IN ULONG Protect)
#define CsrGetClientThread()
#define NT_SUCCESS(StatCode)
_In_ HANDLE ProcessHandle
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID _In_ ULONG_PTR _In_ SIZE_T _Inout_opt_ PLARGE_INTEGER _Inout_ PSIZE_T ViewSize
#define SECTION_ALL_ACCESS
#define NtCurrentProcess()
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
struct _CHAR_CELL CHAR_CELL
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size