IWorkspaceResTypeRegistry::ModifyResourceType method

Modifies a third-party file name extension that is registered with the RemoteApp and Desktop Connections runtime.

Syntax


HRESULT ModifyResourceType(
  [in] VARIANT_BOOL fMachineWide,
  [in] BSTR         bstrFileExtension,
  [in] BSTR         bstrLauncher
);

Parameters

fMachineWide [in]

Specifies whether the resource is registered per user or per machine.

VARIANT_TRUE

The resource is registered per machine.

VARIANT_FALSE

The resource is registered per user.

bstrFileExtension [in]

A string that contains the file name extension to update. The period must be included in the extension, for example, ".txt".

bstrLauncher [in]

A string that contains the new fully qualified path and file name of the application to use to launch files with the extension specified by the bstrFileExtension parameter.

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

Header

WorkspaceAX.h

Type library

TSWorkspace.dll

DLL

TSWorkspace.dll

IID

CLSID_WorkspaceResTypeRegistry is defined as F2C4CDB0-2714-42AD-A948-2ED958A322E3

IID_IWorkspaceResTypeRegistry is defined as 1D428C79-6E2E-4351-A361-C0401A03A0BA

See also

IWorkspaceResTypeRegistry

 

 

Show: