Bewerken

Delen via


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(
  [out, optional] PULONG          MajorVersion,
  [out, optional] PULONG          MinorVersion,
  [out, optional] PULONG          BuildNumber,
  [out, optional] PUNICODE_STRING CSDVersion
);

Parameters

[out, optional] MajorVersion

[out, optional] MinorVersion

[out, optional] BuildNumber

[out, optional] CSDVersion

Requirements

Requirement Value
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 HwStorPortProhibitedDDIs(storport), IrqlPsPassive(wdm), PowerIrpDDis(wdm)