Share via


LocationGetProvidersInfo

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function retrieves information about all loaded Provider DLLs on the system.

Syntax

DWORD LocationGetProvidersInfo(
    HLOCATION             hLocation,
    PROVIDER_INFORMATION* pProviders,
    DWORD*                pcbBuffer
);

Parameters

  • hLocation
    A handle to the Location Framework returned from a call to LocationOpen.
  • pProviders
    Pointer to a structure to contain information about loaded providers.
  • pcbBuffer
    On input, specifies the number of bytes the application has allocated for pProviders. On output, indicates the number of bytes required.

Return Value

If successful, returns ERROR_SUCCESS.

If unsuccessful, returns an error code.

Remarks

All loaded providers are returned in the pProviders array, even those that may be in the error state. Providers that failed to load because of registry configuration errors or failure to load the DLL are not included in this list.

Requirements

Header lfapi.h
Library lfapi.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

Location Framework Functions
LocationOpen