Bewerken

Delen via


PwmParsePinPath function (pwmutil.h)

Parses a pin path under the Pulse Width Modulation (PWM) controller namespace to validate its format and extract the pin number.

Syntax

NTSTATUS PwmParsePinPath(
  [in]            UNICODE_STRING *PinPath,
  [out, optional] ULONG          *PinNumber
);

Parameters

[in] PinPath

A pointer to pin path as a Unicode character string.

[out, optional] PinNumber

A pointer to variable that receives a pin number.

Return value

PwmParsePinPath returns the following values:

Return code Description
STATUS_SUCCESS
Extracted pin path successfully from supplied pin path.
STATUS_INVALID_PARAMETER
The specified pin path pointer is invalid or its Unicode string is invalid.
STATUS_NO_SUCH_FILE
The specified pin path does not constitute a valid pin path.

Remarks

The pin path must be a Unicode character string that ends in the pin number as follows: ...<PinNumber>.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1709
Minimum supported server Windows Server 2016
Target Platform Windows
Minimum KMDF version 1.19
Minimum UMDF version 2.19
Header pwmutil.h (include Pwm.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe (kernel mode)