WcmGetProfileList function (wcmapi.h)

The WcmGetProfileList function retrieves a list of profiles in preferred order, descending from the most preferred to the least preferred. The list includes all WCM-managed auto-connect profiles across all WCM-managed media types.

Syntax

DWORD WcmGetProfileList(
        void                  *pReserved,
  [out] WCM_PROFILE_INFO_LIST **ppProfileList
);

Parameters

pReserved

Type: PVOID

Reserved.

[out] ppProfileList

Type: PWCM_PROFILE_INFO_LIST*

The list of profiles.

Return value

Type: DWORD

Returns ERROR_SUCCESS if successful, or an error value otherwise.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header wcmapi.h
Library Wcmapi.lib
DLL Wcmapi.dll

See also

PWCM_PROFILE_INFO_LIST