DeployedAppEnum

Top  Previous  Next

int _stdcall

DeployedAppEnum(

   IN  DEPLOYEDAPP_ENUM_CALLBACK    Callback,

   IN  LPVOID                       Data )

Enumerates virtual applications currently deployed on the user's profiles. This routine enumerates the HKCU\Software\VOS registry key.

Parameters

Callback [in]

Callback function called for each deployed virtual application. The callback routine should be of type:

BOOL _stdcall DEPLOYEDAPP_ENUM_CALLBACK(

 IN  LPVOID                                Data,

 IN  WCHAR*                                AppID )

Data [in]

Arbitrary data to passed to the callback routine.

Return value

If successful, the return value is APIRET_SUCCESS.

Code sample

// DeployedAppEnumCallback

BOOL _stdcall

DeployedAppEnumCallback(

 IN  LPVOID                                Data,

 IN  TCHAR*                                AppID )

{

 CString                                        BaseDirName;

 DeployedAppGetDir(AppID, BaseDirName.GetBuffer(MAX_PATH), MAX_PATH);

 BaseDirName.ReleaseBuffer();

 printf("%ws:\n  %ws\n", AppID, BaseDirName);

 return (TRUE);

}

 

...

 

DeployedAppEnum(DeployedAppEnumCallback, NULL);