How To Map File Names with Windows NT 4.0 Shell
Article ID: 154123
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
- Microsoft Windows 2000 Standard Edition
This article was previously published under Q154123
SUMMARY
When an application is acting as an OLE drag and drop server with the
Windows NT 4.0 or Windows 2000 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 and Windows 2000, the list of files for the file name mapping must be in wide character format.
MORE INFORMATION
To implement this, Windows NT 4.0 and Windows 2000 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 and Windows 2000 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.
Keywords: kbhowto KB154123