浏览代码

Command on incompatibility of 4.x drag&drop shell extension with 5.x application

Source commit: 603302bb66a99a24f01a916891c53f947803668b
Martin Prikryl 9 年之前
父节点
当前提交
a821acf376
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      source/dragext/DragExt.h

+ 5 - 0
source/dragext/DragExt.h

@@ -16,6 +16,11 @@ DEFINE_GUID(CLSID_ShellExtension, 0xe15e1d68, 0x0d1c, 0x49f7,
 #endif
 #pragma pack(push, 4)
 //---------------------------------------------------------------------------
+// Note that the change between 0 and 1 was incompatible in both directions.
+// So unfortunatelly version 0 extension (4.x and older) will accept incompatible request
+// from version 1 application (5.x and newer).
+// Luckily the extension will gracefully fail, when using the Unicode path in
+// GetShortPathName(CommStruct->DropDest, ...) and will ignore the request.
 struct TDragExtCommStruct
 {
   enum TVersion