PFN_CREATE_MIRACAST_CONTEXT callback function

Called by the operating system to create a user-mode Miracast context.

Syntax

PFN_CREATE_MIRACAST_CONTEXT PfnCreateMiracastContext;

NTSTATUS PfnCreateMiracastContext(
  HANDLE hMiracastDeviceHandle,
  MIRACAST_CALLBACKS *pMiracastCallbacks,
  PVOID *ppMiracastContext
)
{...}

Parameters

hMiracastDeviceHandle

A handle to the current Miracast display device, supplied by the operating system.

pMiracastCallbacks

ppMiracastContext

Return Value

On success, this function returns STATUS_SUCCESS. Otherwise, the function returns an error code defined in the Ntstatus.h header.

Remarks

When this function is called, the Miracast user-mode driver should prepare all resources that it needs for a new Miracast connected session.

The driver can call the callback functions pointed to by pMiracastCallbacks only during the lifetime of the current Miracast context.

Thread Safety

The operating system guarantees that only one of the CreateMiracastContext, DestroyMiracastContext, StartMiracastSession, and StopMiracastSession functions is called at a time.

Requirements

   
Minimum supported client Windows 8.1
Minimum supported server Windows Server 2012 R2
Target Platform Desktop
Header netdispumdddi.h (include Netdispumdddi.h)

See Also

DestroyMiracastContext

MIRACAST_CALLBACKS

StartMiracastSession

StopMiracastSession