Microsoft KB Archive/154123

{|
 * width="100%"|

HOWTO: Map File Names with Windows NT 4.0 Shell

 * }

Q154123

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows NT 4.0
 * the operating system: Microsoft Windows 2000

-

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.

Additional query words:

Keywords : _IK kbOSWinNT400 kbOSWin2000 kbSDKWin32 kbGrpDSShell

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch