HOWTO: Map File Names with Windows NT 4.0 Shell

ID: Q154123

The information in this article applies to:

SUMMARY

When an application is acting as an OLE drag and drop server with the Windows NT 4.0 shell, that application can specify a file name map that will determine what the destination file name/s will be after the drop takes place. In Windows 95, this is done by supporting the CFSTR_FILENAMEMAP (defined as "FileNameMap") clipboard format and supplying a double NULL terminated list of single NULL terminated strings in response to CDataObject::GetData when the file name mapping clipboard format is requested. In Windows NT 4.0, the list of files for the file name mapping must be in wide character format.

MORE INFORMATION

To implement this, Windows NT 4.0 will support a new clipboard format, CFSTR_FILENAMEMAPW (defined as "FileNameMapW). When supplying the data for the CFSTR_FILENAMEMAPW clipboard format, you should supply a double NULL terminated list of single NULL terminated wide character strings. Window NT 4.0 will not request data for the CFSTR_FILENAMEMAP clipboard format. The enhanced shell that is installed with Internet Explorer 4.0x with the Desktop Update will request both CFSTR_FILENAMEMAP and CFSTR_FILENAMEMAPW formats.

Additional query words:

Keywords          : kbDragDrop kbNTOS400 kbGrpShell 
Issue type        : kbhowto

Last Reviewed: December 25, 1998