Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ILocation interface

Provides methods used to manage location reports, event registration, and sensor permissions.

Members

The ILocation interface inherits from the IUnknown interface. ILocation also has these types of members:

Methods

The ILocation interface has these methods.

MethodDescription
GetDesiredAccuracy

Retrieves the current requested accuracy.

GetReport

Retrieves a location report.

GetReportInterval

Retrieves the minimum amount of time, in milliseconds, between report events.

GetReportStatus

Retrieves the status for the specified report type.

RegisterForReport

Requests location report events.

RequestPermissions

Opens a system dialog box to request user permission for location-enabled devices.

SetDesiredAccuracy

Specifies the requested accuracy.

SetReportInterval

Specifies the minimum amount of time, in milliseconds, between report events.

UnregisterForReport

Stops event notifications for the specified report type.

 

Remarks

When CoCreateInstance is callled to create an ILocation object, it may result in a notification being displayed in the taskbar, and a Location Activity event being logged in Event Viewer, if it is the application's first use of location.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

Header

LocationApi.h

DLL

LocationAPI.dll

See also

About Location Notifications
About Logging Location Activity

 

 

Community Additions

Show:
© 2014 Microsoft