ItsPubPlugin::GetResourceList method (tspubplugincom.h)

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.

Syntax

HRESULT GetResourceList(
  [in]  LPCWSTR        userID,
  [out] LONG           *pceAppListSize,
  [out] pluginResource **resourceList
);

Parameters

[in] userID

The user security identifier (SID).

[out] pceAppListSize

A pointer to a LONG variable to receive the number of elements in the resourceList.

[out] resourceList

The address of a pointer to an array of pluginResource structures that receive the resources assigned to the specified user. You must use the CoTaskMemAlloc function to allocate this memory. The caller is responsible for freeing this memory.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header tspubplugincom.h

See also

ItsPubPlugin