IWorkspaceRegistration::AddResource method (workspaceruntime.h)

Adds a resource to the connection in RemoteApp and Desktop Connection.

Syntax

HRESULT AddResource(
  [in]  IWorkspaceClientExt *pUnk,
  [out] DWORD               *pdwCookie
);

Parameters

[in] pUnk

A pointer to the IWorkspaceClientExt object that called this method.

[out] pdwCookie

A pointer to a DWORD variable to receive the connection cookie for a new resource.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header workspaceruntime.h

See also

IWorkspaceRegistration

IWorkspaceRegistration2