// netdispumdddi.h
PFN_CREATE_MIRACAST_CONTEXT PfnCreateMiracastContext;
NTSTATUS PfnCreateMiracastContext(
[in] HANDLE hMiracastDeviceHandle,
[in] MIRACAST_CALLBACKS *pMiracastCallbacks,
[out] PVOID *ppMiracastContext
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Called by the operating system to create a user-mode Miracast context.
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.
On success, this function returns STATUS_SUCCESS. Otherwise, the function returns an error code defined in the Ntstatus.h header.
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.
The operating system guarantees that only one of the CreateMiracastContext, DestroyMiracastContext, StartMiracastSession, and StopMiracastSession functions is called at a time.