Condividi tramite


Metodo ILocation::UnregisterForReport (locationapi.h)

[L'API Location Win32 è disponibile per l'uso nei sistemi operativi specificati nella sezione Requisiti. È possibile che in versioni successive sia stata modificata o non sia più disponibile. Usare invece l'API Windows.Devices.Geolocation . ]

Arresta le notifiche degli eventi per il tipo di report specificato.

Sintassi

HRESULT UnregisterForReport(
  [in] REFIID reportType
);

Parametri

[in] reportType

REFIID che specifica l'ID interfaccia del tipo di report per il quale arrestare gli eventi.

Valore restituito

Il metodo restituisce un valore HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.

Codice restituito Descrizione
S_OK
Il metodo è riuscito.
HRESULT_FROM_WIN32(ERROR_INVALID_STATE)
Il chiamante non è registrato per ricevere eventi per il tipo di report specificato.
HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)
reportType è diverso da IID_ILatLongReport o IID_ICivicAddressReport.

Requisiti

   
Client minimo supportato Windows 7 [solo app desktop],Windows 7
Server minimo supportato Nessuno supportato
Piattaforma di destinazione Windows
Intestazione locationapi.h
DLL LocationAPI.dll

Vedi anche

ILocation