Edit

Share via


ILocationPermissions::CheckLocationCapability method (sensorsapi.h)

Gets the ___location capability of the Windows Store app of the given thread

Syntax

HRESULT CheckLocationCapability(
  DWORD dwClientThreadId
);

Parameters

dwClientThreadId

Thread Id of the app to check the ___location capability of

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 and the app is ___location enabled.
E_ACCESSDENIED
The app has not declared ___location capability or the user has declined or revoked ___location access.
E_ILLEGAL_METHOD_CALL
An invalid client thread was provided.

Remarks

Note  CheckLocationCapability is available in Windows 8.
 
For more information on ___location settings in Windows 8 see Location settings.

Requirements

Requirement Value
Target Platform Windows
Header sensorsapi.h

See also

ILocationPermissions