GetManagedApplications function
The GetManagedApplications function gets a list of applications that are displayed in the Add pane of Add/Remove Programs (ARP) for a specified user context.
Syntax
DWORD GetManagedApplications( _In_ GUID *pCategory, _In_ DWORD dwQueryFlags, _In_ DWORD dwInfoLevel, _Out_ LPDWORD pdwApps, _Out_ PMANAGEDAPPLICATION *prgManagedApps );
Parameters
- pCategory [in]
-
A pointer to a GUID that specifies the category of applications to be listed. If pCategory is not null, dwQueryFlags must contain MANAGED_APPS_FROMCATEGORY. If pCategory is null, dwQueryFlags cannot contain MANAGED_APPS_FROMCATEGORY.
- dwQueryFlags [in]
-
This parameter can contain one or more of the following values.
- dwInfoLevel [in]
-
This parameter must be MANAGED_APPS_INFOLEVEL_DEFAULT.
- pdwApps [out]
-
The count of applications in the list returned by this function.
- prgManagedApps [out]
-
This parameter is a pointer to an array of MANAGEDAPPLICATION structures. This array contains the list of applications listed in the Add pane of Add/Remove Programs (ARP). You must call LocalFree to free the array when they array is no longer required.
Return value
If the function succeeds, the return value is ERROR_SUCCESS. Otherwise, the function returns one of the system error codes. For a complete list of error codes, see System Error Codes or the header file WinError.h.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also