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 |
---|---|
|
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. |
Remarks
Note CheckLocationCapability is available in Windows 8.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | sensorsapi.h |
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