IDefaultLocation interface (locationapi.h)

[The Win32 Location API is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the Windows.Devices.Geolocation API. ]

IDefaultLocation provides methods used to specify or retrieve the default location.

Inheritance

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

Methods

The IDefaultLocation interface has these methods.

 
IDefaultLocation::GetReport

Retrieves the specified report type from the default location provider.
IDefaultLocation::SetReport

Sets the default location.

Remarks

Note  An application does not receive the expected location change event from OnLocationChanged if both of the following conditions are true. First, the application runs as a service, in the context of the LOCALSERVICE, SYSTEM, or NETWORKSERVICE user account. Second, the location change event results from changing the default location, either manually when the user selects Default Location in Control Panel, or programmatically when an application calls IDefaultLocation::SetReport.
 

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header locationapi.h