INFO: DDE Support in Internet Explorer VersionsID: Q160957
|
Several years ago Spyglass Inc. defined a Software Development Interface
(SDI) that has served as the basis for most common interprocess
communication (IPC) support in current browsers.
The SDI is composed of a number of generic, platform-independent verbs that
are implemented through platform-specific transports. For Internet Explorer
(IE) running in the Microsoft Windows environment, that platform-specific
transport is DDE.
The 16-bit versions of Internet Explorer for Windows 3.1 and Windows NT
3.51 very closely followed this Spyglass specification. Versions 2.x and
3.x of the 16-bit Internet Explorer supported the entire list of topics as
well as parameters outlined in the spec. If your application specifically
targets the 16-bit version of Internet Explorer, please refer to the
Spyglass SDI specs above for more information on its DDE support.
On the other hand, the 32-bit versions of Internet Explorer supported only
a subset of the topics described in the Spyglass SDI specification. This
article specifically lists this subset of topics supported by the 32-bit
Internet Explorer versions, as well as relevant DDE-specific information
for each of these topics.
Most of the information below applies to the 32-bit versions of Internet
Explorer, unless specifically indicated.
In each of the following DDE transactions, you need to specify the
following:
ApplicationName : iexplore
DDE Transaction Type: XTYP_EXECUTE or XTYP_REQUEST
Topic and item names and expected return values for each verb are described
below. Note that Internet Explorer version 2.0 and earlier used "mosaic" as
its service name, instead of "iexplore."
Q102570 DOCERR: DdeCreateStringHandle() lpszString param
topicName: WWW_OpenURL
itemName : URL <Example: "<LINK TYPE="GENERIC" VALUE="http://www.microsoft.com">">http://www.microsoft.com"></LINK>
returnValue: -2 for acknowledgment, -3 for error
In the 32-bit versions of Internet Explorer, all other parameters specified
in the SDI spec are ignored.
http://msdn.microsoft.com/workshop/default.aspinstead of "www.msdn.microsoft.com"; otherwise, the OpenUrl call will fail.
itemName: URL,[FileSpec],WindowID <Example:
"<LINK TYPE="GENERIC" VALUE="http://www.microsoft.com",,0>">http://www.microsoft.com",,0></LINK>
topicName: WWW_ShowFile
itemName: FileSpec
returnValue: -2 for acknowledgment, -3 for error
topicName: WWW_Activate
itemName: WindowID <any value>
returnValue: WindowID
All other parameters are ignored.
topicName: WWW_Exit
itemName: WWW_Exit
returnValue: 0
topicName: WWW_RegisterURLEcho
itemName: ApplicationName (enclosed in double quotes)
returnValue: Non-Zero for success, 0 for failure
ApplicationName is a DDE server that is registered to receive WWW_URLEcho
notifications from the browser with the following information:
topicName (hsz1): WWW_URLEcho
itemName (hsz2): URL,MIMEType,WindowID
<Example: "<LINK TYPE="GENERIC" VALUE="http://www.home.com","text/html",-1>">http://www.home.com","text/html",-1></LINK>
Transaction: XTYP_POKE
topicName: WWW_UnRegisterURLEcho
itemName: ApplicationName (enclosed in double quotes)
returnValue: 0
Internet Explorer 4 returns success/failure on this (instead of ALWAYS 0).
topic Name: WWW_RegisterProtocol
item Name: AppName,Protocol <Example:"AppName","mailto">
Where "AppName" is Server.exe's registered Service Name, and "mailto" is
the protocol to be registered.
"\"AppName\",\"mailto\""
returnValue: Non-Zero for success, 0 for failure
Server.exe will then get notifications from the browser with the following
information:
topic Name (hsz1): WWW_OpenURL
item Name (hsz2): URL,[FileSpec],WindowID,Flags
<Example:"mailto:billg@ms.com",,-1,0>
Transaction: XTYP_REQUEST
topicName: WWW_UnRegisterProtocol
itemName: ApplicationName (enclosed in double quotes)
returnValue: 0
topicName: WWW_ListWindows
itemName: WWW_ListWindows
returns: NumItemsInTheList,ArrayOfWindowIDs
(ie [count,winID,winID,winID])
Currently Internet Explorer does not return a list of window IDs, but
rather a list corresponding to the number of instances of the browser that
are currently opened. For additional information, please see the following
article in the Microsoft Knowledge Base:
Q191508 PRB: Confusing Return Values from DDE topic WWW_ListWindows
topicName: WWW_GetWindowInfo
itemName: WWW_GetWindowInfo
returnValue: URL,WindowText
<Example: "<LINK TYPE="GENERIC" VALUE="http://www.microsoft.com/","Microsoft">http://www.microsoft.com/","Microsoft</LINK> Home Page">
Note that the strings are quoted; therefore, double quotes are denoted with
backslashes. For example, if the title consists of the three characters
!"!, the title portion of the returned string as the six characters "!\"!".
16bit 16bit SP1 Beta
3.02 3.03 4.0 4.0 4.01 4.01 5.0
DDE Topic Status * 1712 PP2 2106 3110 626
___________________________ ________ __________________________________
WWW_Activate SpyGlass X X X X X X X
WWW_BeginProgress SpyGlass X
WWW_CancelTransaction SpyGlass X X
WWW_EndProgress SpyGlass X
WWW_Exit SpyGlass X X X X X X X
WWW_GetWindowInfo SpyGlass X X X X X X X
WWW_ListWindows SpyGlass X X X X X X X
WWW_MakingProgress SpyGlass X
WWW_OpenURL SpyGlass X X X X X X X
WWW_OpenURLResult SpyGlass X
WWW_ParseAnchor SpyGlass X X
WWW_QueryVersion SpyGlass X X
WWW_RegisterAppClose SpyGlass X
WWW_RegisterDone SpyGlass X X
WWW_RegisterProtocol SpyGlass X X
WWW_RegisterURLEcho SpyGlass X X X X X X X
WWW_RegisterViewer SpyGlass X X
WWW_RegisterWindowClose SpyGlass X X
WWW_SetProgressRange SpyGlass X
WWW_ShowFile SpyGlass X X X X X X X
WWW_UnRegisterAppClose SpyGlass X
WWW_UnRegisterProtocol SpyGlass X X
WWW_UnRegisterURLEcho SpyGlass X X X X X X X
WWW_UnRegisterWindowClose SpyGlass X X
WWW_UnRegisterViewer SpyGlass X X
For additional information, please see the following articles in the
Microsoft Knowledge Base:
Q160976 How to Control the Currently Running Instance of IE3 via DDE
Q191508 Confusing Return Values from DDE topic WWW_ListWindows
"Software Development Interface" document at WWW.SPYGLASS.COM
For more information, please see the MSDN Web Workshop:
http://msdn.microsoft.com/workshop/default.asp
Additional query words: DDE kbDSupport kbdsi ie2 ie
Keywords : kbDDE kbIE300 kbIE301 kbIE400 kbIE401 kbIE302 kbIE401sp1 kbIE500dp1 kbDSupport
Version : WINDOWS:3.0,3.01,3.02,4.0,4.01,4.01 SP1,5.0dp1
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: July 23, 1999