IWorkspaceRegistration::AddResource method

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

Syntax


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

Parameters

pUnk [in]

A pointer to the IWorkspaceClientExt object that called this method.

pdwCookie [out]

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

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

IDL

WorkspaceRuntime.idl

Type library

Wksprt.exe

IID

CLSID_Workspace is defined as 4F1DFCA6-3AAD-48E1-8406-4BC21A501D7C

IID_IWorkspaceRegistration is defined as B922BBB8-4C55-4FEA-8496-BEB0B44285E6

See also

IWorkspaceRegistration2
IWorkspaceRegistration

 

 

Show: