IWorkspaceResTypeRegistry::AddResourceType method (workspaceax.h)

Registers a third-party file name extension with the RemoteApp and Desktop Connections runtime.

Syntax

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

Parameters

[in] fMachineWide

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

VARIANT_TRUE

The resource is registered per machine.

VARIANT_FALSE

The resource is registered per user.

[in] bstrFileExtension

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

[in] bstrLauncher

A string that contains the 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.

Remarks

This method is called when the plug-in is installed to register non-RDP resources.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header workspaceax.h
DLL TSWorkspace.dll

See also

IWorkspaceResTypeRegistry