Home | History | Annotate | Download | only in src

Lines Matching refs:g_nt

14 SANDBOX_INTERCEPT NtExports g_nt;
22 using sandbox::g_nt;
34 ret = g_nt.AllocateVirtualMemory(NtCurrentProcess, &base, zero_bits,
40 VERIFY_SUCCESS(g_nt.FreeVirtualMemory(NtCurrentProcess, &base, &size,
63 ret = g_nt.AllocateVirtualMemory(NtCurrentProcess, &base, zero_bits,
67 VERIFY_SUCCESS(g_nt.FreeVirtualMemory(NtCurrentProcess, &base, &size,
76 using sandbox::g_nt;
88 ret = g_nt.AllocateVirtualMemory(NtCurrentProcess, &base, 0, &actual_size,
95 ret = g_nt.AllocateVirtualMemory(NtCurrentProcess, &base, 0, &actual_size,
124 NTSTATUS ret = g_nt.MapViewOfSection(g_shared_section, NtCurrentProcess,
136 ret = g_nt.UnmapViewOfSection(NtCurrentProcess, memory);
163 void* heap = g_nt.RtlCreateHeap(HEAP_GROWABLE, NULL, 0, 0, NULL, NULL);
169 g_nt.RtlDestroyHeap(heap);
211 g_nt.memcpy(destination, source, bytes);
272 NTSTATUS ret = g_nt.QueryInformationProcess(process, ProcessBasicInformation,
309 NTSTATUS ret = g_nt.DuplicateObject(NtCurrentProcess, section,
317 ret = g_nt.QuerySection(query_section, SectionBasicInformation, &basic_info,
320 VERIFY_SUCCESS(g_nt.Close(query_section));
333 ansi_string.Length = static_cast<USHORT>(g_nt.strlen(string));
352 NTSTATUS ret = g_nt.RtlAnsiStringToUnicodeString(out_string, &ansi_string,
406 NTSTATUS ret = g_nt.QueryVirtualMemory(NtCurrentProcess, address,
479 NTSTATUS ret = g_nt.ProtectVirtualMemory(NtCurrentProcess, &address,
498 NTSTATUS ret = g_nt.ProtectVirtualMemory(NtCurrentProcess, &address_,
554 result = g_nt.RtlAllocateHeap(sandbox::g_heap, 0, size);
574 VERIFY(g_nt.RtlFreeHeap(sandbox::g_heap, 0, memory));
578 VERIFY_SUCCESS(g_nt.FreeVirtualMemory(NtCurrentProcess, &base, &size,