IShellApp::GetAppInfo method (shappmgr.h)
Gets general information about an application.
Syntax
HRESULT GetAppInfo(
[out] PAPPINFODATA pai
);
Parameters
[out] pai
Type: APPINFODATA*
A pointer to an APPINFODATA structure that returns the application information.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Add/Remove Programs in the Control Panel will set the dwMask member of the APPINFODATA structure to indicate that you should return AIM_DISPLAYNAME and AIM_SUPPORTURL. For each value that you return in APPINFODATA, you must set the corresponding bit in dwMask. All other bits should be cleared.
Examples
Here is a sample of how to use the dwMask bits::
HRESULT CPubApp::GetAppInfo(APPINFODATA *pData)
{
if (sizeof(APPINFODATA) != pData->cbSize)
return E_FAIL;
// First save off the mask of requested data items.
const DWORD dwMask = pData->dwMask;
// Zero-out the mask. Bits will be set as items are obtained.
pData->dwMask = 0;
// Call an internal function that obtains data and sets
// bits in pData->dwMask for each item obtained.
return get_app_info_data(pData, dwMask);
}
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP, Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shappmgr.h |
DLL | Shell32.dll |
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για