Retrieves a list of resources assigned to the specified user. The RemoteApp and Desktop Connection Management service calls this method in the following situations:
- When the user has no cache in Remote Desktop Web Access (RD Web Access).
- When the user has a cache, but it has expired.
- When a call to GetCacheLastUpdateTime returns a time that is later than the time stored in the user's cache.
HRESULT GetResource2List( [in] LPCWSTR userID, [out] LONG *pceAppListSize, [out] pluginResource2 **resourceList );
- userID [in]
A null-terminated string that contains the security identifier (SID) of the user. If this parameter is NULL, this method should return the resources for all users.
- pceAppListSize [out]
The address of a LONG variable that receives the number of elements in the resourceList array.
- resourceList [out]
The address of an array of pluginResource2 structures that contains the resources for the specified user. You must use the CoTaskMemAlloc function to allocate this memory. The caller is responsible for freeing this memory.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Minimum supported client
|Windows 8 [desktop apps only]|
Minimum supported server
|Windows Server 2012 [desktop apps only]|
Build date: 10/15/2013