Share via


Media MDB Optimization (Compact 7)

3/12/2014

You can modify Media MDB settings to optimize them for your device, for example, to manage memory usage and to optimize performance. To adjust Media MDB optimization settings, modify the Mediaaps.reg file, which is located at:

%_WINCEROOT%\Public\Mediaapps\Oak\Files\Mediaapps.reg

The optimization setting for the Media MDB is located in the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\MTP\Responder\MediaMDB

This setting is described in the following table. When you build your OS design, this setting is included in the boot image to configure Media MDB memory usage.

Name Type Default value Description

MaxNumSessionEntries

REG_DWORD

10000

You specify the maximum number of entries expected. This number will depend on the storage capacity of your device, the scenarios that your device supports, or other factors.

The value that you specify for MaxNumSessionEntries defines the maximum number of objects that are enumerable in an MTP session. You must set this value to support the actual capability of your device.

See Also

Concepts

MTP Storage
Media MDB MTP Operations
Media MDB Object Formats
Media MDB Object Properties
Media MDB Implementation