PsGetVersion function (wdm.h)

This function is obsolete in Windows XP and later versions of the Windows operating system. Use RtlGetVersion instead.

Syntax

BOOLEAN PsGetVersion(
  PULONG          MajorVersion,
  PULONG          MinorVersion,
  PULONG          BuildNumber,
  PUNICODE_STRING CSDVersion
);

Parameters

MajorVersion

[out, optional]

MinorVersion

[out, optional]

BuildNumber

[out, optional]

CSDVersion

[out, optional]

Return value

None

Requirements

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI compliance rules IrqlPsPassive, PowerIrpDDis, HwStorPortProhibitedDDIs