Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Initiates "no response" reporting on the specified window.
HRESULT WerReportHang(
[in] HWND hwndHungApp,
[in, optional] PCWSTR pwzHungApplicationName
);
[in] hwndHungApp
Handle to the window that is not responding.
[in, optional] pwzHungApplicationName
The name of the not-responding application to be shown in the Hang Reporting UI. The name is limited to 128 characters including the NULL terminator. If NULL, WER tries to get the name from the target image resources. If it cannot get the name from the image, the image name will be used.
Returns S_OK if the function was able to initiate the reporting or an error code on failure. Note that S_OK does not necessarily mean that "no response" reporting has completed successfully, only that it was initiated.
This function is asynchronous; it does not wait for no-response reporting to complete. There is no way to cancel no-response reporting after it is started.
If you use this function, it is important that you adhere to the following requirements:
Requirement | Value |
---|---|
Minimum supported client | Windows Vista with SP1 [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | errorrep.h |
Library | Faultrep.lib |
DLL | Faultrep.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today