IMFPMPHostApp::LockProcess method (mfidl.h)

Blocks the protected media path (PMP) process from ending.

Syntax

HRESULT LockProcess();

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

When this method is called, it increments the lock count on the PMP process. For every call to this method, the application should make a corresponding call to IMFPMPHostApp::UnlockProcess, which decrements the lock count. When the PMP process is ready to exit, it waits for about 3 seconds, or until the lock count reaches zero, before exiting.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also

IMFPMPHostApp

PMP Media Session

Protected Media Path