ILocation::UnregisterForReport method (locationapi.h)
[The Win32 Location API is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the Windows.Devices.Geolocation API. ]
Stops event notifications for the specified report type.
Syntax
HRESULT UnregisterForReport(
[in] REFIID reportType
);
Parameters
[in] reportType
REFIID that specifies the interface ID of the report type for which to stop events.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
The caller is not registered to receive events for the specified report type. |
|
reportType is other than IID_ILatLongReport or IID_ICivicAddressReport. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only],Windows 7 |
Minimum supported server | None supported |
Target Platform | Windows |
Header | locationapi.h |
DLL | LocationAPI.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for