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
S_OK
The method succeeded.
HRESULT_FROM_WIN32(ERROR_INVALID_STATE)
The caller is not registered to receive events for the specified report type.
HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)
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

ILocation