CreateMiracastContext
Collapse the table of content
Expand the table of content

CreateMiracastContext routine

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

Syntax


PFN_CREATE_MIRACAST_CONTEXT CreateMiracastContext;

NTSTATUS NTAPI* CreateMiracastContext(
  _In_  HANDLE             hMiracastDeviceHandle,
  _In_  MIRACAST_CALLBACKS *pMiracastCallbacks,
  _Out_ PVOID              *ppMiracastContext
)
{ ... }

Parameters

hMiracastDeviceHandle [in]

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

pMiracastCallbacks [in]

A pointer to a MIRACAST_CALLBACKS structure that has pointers to callback functions, supplied by the operating system, that the Miracast user-mode driver can call.

ppMiracastContext [out]

A pointer to a buffer, supplied by the operating system, that holds the Miracast context that the Miracast user-mode driver returns.

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

Header

Netdispumdddi.h (include Netdispumdddi.h)

See also

DestroyMiracastContext
MIRACAST_CALLBACKS
StartMiracastSession
StopMiracastSession

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft