The Miracast user-mode driver can also call these optional callback functions provided by the operating system: Function This network info is provided by operating system calls to the pfnDataRateNotify function. The RegisterForDataRateNotifications callback function can optionally be called by the Miracast user-mode driver to register with the operating system to receive, once a second, network quality of service (QoS) notifications and the current network bandwidth of the Miracast connection. The Miracast user-mode driver should then put the Miracast sink into a low-power state. When the display miniport driver receives a DxgkDdiCommitVidPn request to power off the connected Miracast monitor, the driver should call the operating system-supplied DxgkCbMiracastSendMessage callback function to send a message to the Miracast user-mode driver. The Miracast user-mode driver should release all the software resources that it allocated in CreateMiracastContext in response to the operating system's calls to the DestroyMiracastContext function. It also shouldn't send a request to the display miniport driver to report an HPD on monitor departure. The driver shouldn't close the RTSP socket that the operating system gave it. In response to this function call, the driver should close all the sockets it created and drop all the further data streaming. When the operating system stops a Miracast connected session, it calls the Miracast user-mode driver's StopMiracastSession function. The Miracast user-mode driver should also query Miracast sink info and capabilities and report some of this info, such as the monitor description, to the display miniport driver by calling MiracastIoControl.Īfter the Miracast connected session has been started, and after streaming data has been prepared and before sending it to the network, the driver needs to call the ReportStatistic callback function to report the statistics of the Miracast link to the operating system. If a Miracast display becomes available, the Miracast user-mode driver calls the operating system-supplied MiracastIoControl function to send an I/O control request to the display miniport driver to report a monitor arrival hot-plug detection (HPD) awareness value. When the driver responds to this function call, it should use the Winsock getaddrinfo function, or other relevant functions, to get the Internet Protocol (IP) address of the Miracast sink and use standard Winsock functions to create a Hypertext Caching Protocol (HTCP) Remote Desktop Protocol (RDP) socket. Then after a Real-Time Streaming Protocol (RTSP) link is established, the operating system calls StartMiracastSession to actually start the Miracast connected session. In this call, the operating system also provides pointers to callback functions that the driver can call during the lifetime of the current Miracast context. When this function is called, the Miracast user-mode driver allocates all the software resources it needs to start a Miracast connected session. When the operating system is ready to prepare for a Miracast connected session, it calls the Miracast user-mode driver's CreateMiracastContext function. For example, a 64-bit version of the driver is used on a 64-bit processor. This driver binary must not use an existing Direct3D user-mode display driver DLL.īecause the Miracast user-mode driver is loaded into the UMDF0 process, no separate Windows on Windows (WOW) version of this driver is needed. The DLL should have an export function named QueryMiracastDriverInterface that the operating system can call. HKR, MiracastDriverName, %REG_SZ%, Miracast.dll Add the name of the driver in device software settings in the INF file as MiracastDriverName: This driver is loaded in a dedicated session 0 process. To enable Miracast wireless displays on windows 8.1, you need to create a standalone, unique DLL that implements a Miracast user-mode driver. Microsoft might remove support for custom Miracast stacks in a future version of Windows. The relevant WHLK documentation at .WirelessDisplayĭriver developers should no longer implement a custom Miracast stack. For information about the Microsoft Miracast stack and the requirements of drivers and hardware to support Miracast displays starting in Windows 10, see the following documentation:īuilding best-in-class Wireless projection solutions with Windows 10 Starting in Windows 10 (WDDM 2.0), the operating system ships with a built-in Miracast stack that can work on any GPU.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |