ILocationPermissions::CheckLocationCapability method (sensorsapi.h)
Gets the location capability of the Windows Store app of the given thread
HRESULT CheckLocationCapability( DWORD dwClientThreadId );
Thread Id of the app to check the location capability of
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded and the app is location enabled.|
||The app has not declared location capability or the user has declined or revoked location access.|
||An invalid client thread was provided.|