#include <ntoskrnl.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ PRODUCT_TAG
◆ RtlGetNtGlobalFlags()
◆ RtlGetNtProductType()
Retrieves the NT type product of the operating system. This is the kernel-mode variant of this function.
- Parameters
-
[out] | ProductType | The NT type product enumeration value returned by the call. |
- Returns
- The function returns TRUE when the call successfully returned the type product of the system. It'll return FALSE on failure otherwise. In the latter case the function will return WinNT as the default product type.
Definition at line 87 of file misc.c.
110 DPRINT1(
"RtlGetNtProductType(): Memory pool allocation has failed!\n");
126 DPRINT1(
"RtlGetNtProductType(): The ZwOpenKey() function has failed! (Status: 0x%lx)\n",
Status);
144 DPRINT1(
"RtlGetNtProductType(): The ZwQueryValueKey() function has failed! (Status: 0x%lx)\n",
Status);
156 DPRINT1(
"RtlGetNtProductType(): An invalid value type has been found!\n");
193 DPRINT1(
"RtlGetNtProductType(): Couldn't find a valid product type! Defaulting to WinNT...\n");
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define OBJ_CASE_INSENSITIVE
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
#define OBJ_KERNEL_HANDLE
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFKEY * Key
#define NT_SUCCESS(StatCode)
struct _KEY_VALUE_PARTIAL_INFORMATION * PKEY_VALUE_PARTIAL_INFORMATION
#define ExAllocatePoolWithTag(hernya, size, tag)
ULONG RtlCompareUnicodeString(PUNICODE_STRING s1, PUNICODE_STRING s2, BOOLEAN UpCase)
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG _Out_ PULONG ReturnedLength
#define InitializeObjectAttributes(p, n, a, r, s)
#define ExFreePoolWithTag(_P, _T)
#define RTL_CONSTANT_STRING(s)
◆ RtlGetVersion()
Definition at line 41 of file misc.c.
#define VER_PLATFORM_WIN32_NT
struct _OSVERSIONINFOEXW * PRTL_OSVERSIONINFOEXW
◆ RtlPrefetchMemoryNonTemporal()
◆ NtGlobalFlag
Definition at line 54 of file init.c.
Referenced by AVrfDllLoadNotification(), AVrfDllUnloadNotification(), ExpInitializeExecutive(), KdDebuggerInitialize1(), KdpReport(), MiLoadImageSection(), MmCreatePeb(), MmLoadSystemImage(), ObReferenceFileObjectForWrite(), QSI_DEF(), RtlGetNtGlobalFlags(), RtlSetProcessIsCritical(), RtlSetThreadIsCritical(), SSI_DEF(), and STRUCT().
◆ NtMajorVersion
◆ NtMinorVersion
◆ NtOSCSDVersion