Partager via


Device Parameters

banner art

Windows Media Device Manager uses device parameters to control the behavior of a device. These parameters are added by an installation file (INF) for the device at the time the device is installed. The following table lists the device parameters that Windows Media Device Manager queries. Additional information about each parameter is given below the table.

Device parameter name Registry data type Description
WMDMSPCLSID REG_SZ CLSID of the service provider controlling this device. This parameter is mandatory for PnP support.
OptimalTransferSize REG_DWORD Preferred transfer size. Windows Media Device Manager would use this transfer size during read and write operations. This parameter is optional. If it is not supplied, Windows Media Device Manager uses its default transfer size.
UseMetadataViews REG_DWORD Determines whether Windows Media Device Manager organizes the content by metadata while presenting device content to applications. This parameter is optional.
ShowInShell REG_DWORD Determines whether the device shows up in Windows Explorer. This parameter is optional.

WMDMSPCLSID

This parameter specifies, as a string, the CLSID of the service provider responsible for this device.

Note   The parameter value must be the CLSID, not the ProgID of the service provider. This parameter is mandatory to support Plug and Play (PnP) under Windows Media Device Manager. For more information, see Enabling PnP for Windows Media Device Manager Devices.

OptimalTransferSize

Windows Media Device Manager queries this parameter to determine the optimal buffer size used in read and write operations. This parameter is optional. If this parameter is not supplied, Windows Media Device Manager uses its default transfer size.

UseMetadataViews

When applications enumerate the content on the storages of a portable audio player, Windows Media Device Manager can present the content organized by metadata. This is especially useful for devices with large storage capacity.

Applications and devices have the ability to control this behavior. Devices indicate their preference through the device parameter UseMetadataViews.

Possible values of this parameter are listed in the following table.

Value Description
1 Requests that the content be presented to the applications organized by metadata.
0 Requests that content be presented to the applications exactly as organized on the file system of the device.

Note   This parameter is optional. If it is not supplied, a default value of 0 is used.

ShowInShell

The ShowInShell parameter determines whether the device shows up in Windows Explorer. This parameter is optional. For more information, see Requirements for Portable Audio Players to Appear in Windows Explorer.

See Also