Share via


Media Library Configuration File (MLConfig.XML) (Compact 7)

3/12/2014

The MLConfig.xml file defines the location and attributes of monitored media storage folders for the media library.

Syntax

<MLConfig dbpath="<path\file name>">
  <DisableThumbnailGeneration/>
  <WatchLocations>
    <WatchLocation DataSourceId="1" Root="<directory>" Profile="<value>" Auto="1"/>
  </WatchLocations>
</MLConfig>

Elements

Element name Description Attributes

MLConfig

Top-level node.

dbpath

The fully qualified path and file name for the Media Library database.

DisableThumbnailGeneration

If this element is present, thumbnails will not be generated.

None

WatchLocation

Defines the attributes and location of the folder to be monitored.

DataSourceId

Numeric value that corresponds to a member of the MLDataSourceId enumeration that specifies the type of data source.

Root

Topmost directory of the storage location to be monitored.

Do not use the "\My Documents" folder here because it may conflict with MTP Responder and other applications and it triggers excessive file processing. You can use a subfolder of "\My Documents" such as "\My Documents\My Application\Watch." Also, do not use the path returned by the GetTempPath function because this is the path Media Library uses to store intermediate files when processing metadata.

Auto

Set to "1" to automatically watch this folder.

Profile

Device profile name. Use "local" for nonremovable storage. Supported profiles:

  • SDMemory
  • SDHCMemory
  • MMC
  • RamDisk
  • MSFlash
  • HDProfile
  • CDProfile
  • USBHDProfile
  • USBCDProfile
  • USBFDProfile

Remarks

The mount location for the specific attached storage will be used as a prefix for "Root." In the following example, because USBHDProfile is mounted at \Hard Disk, the full watched path will be \Hard Disk\image.

<WatchLocation DataSourceId="1" Root="image" Profile="USBHDProfile" Auto="1"/>

For "local," the full path should be specified.

See Also

Other Resources

Media Library