The information in this article applies to:
SUMMARY
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.
MORE INFORMATION
Most of the information below applies to the 32-bit versions of Internet
Explorer, unless specifically indicated.
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."
Note that all strings passed to DDEML using DdeCreateStringHandle are limited to 255 characters. When passing item names to any of the topics described below, strings greater than 255 characters long are truncated. For more information about this 255-character limit in DDEML, please see the following article in the Microsoft Knowledge Base: Q102570 DOCERR: DdeCreateStringHandle() lpszString param OpenURLOpenURL retrieves a URL off the Web and displays it, based on specified WindowID:
In the 32-bit versions of Internet Explorer, all other parameters specified
in the SDI spec are ignored.
Note that when specifying the URL for the 16-bit version of Internet Explorer, be sure to specify the full URL, including the protocol, for example: For more information, please see the MSDN Web Workshop: http://msdn.microsoft.com/workshop/default.aspinstead of "www.msdn.microsoft.com"; otherwise, the OpenUrl call will fail. For IE4, itemName can be specified as follows:
Note that the second parameter, FileSpec, specified in the SDI spec, is ignored, and is, therefore, not specified in the itemName example above. All other parameters following the WindowID parameter that are not specified above are similarly ignored. Specifying a WindowID of 0 tells the browser to open a new window; whereas, -1 opens the URL in the most recently active browser window. ShowFileShowFile passes FileSpec to be rendered in a given WindowID:
All other parameters are ignored. ActivateWindowRegardless of the WindowId specified, ActivateWindow brings the most recently active browser window to the foreground:
All other parameters are ignored.
Note that the WindowID returned is synthetic; that is, it can only be used in other DDE transactions with Internet Explorer. It should not be assumed as an HWND. ExitExit tells the browser to shut down and exit:
RegisterURLEchoRegisterURLEcho requests that ApplicationName be notified of URLEcho events whenever a URL gets loaded. Multiple servers can be registered to get these notifications:
ApplicationName is a DDE server that is registered to receive WWW_URLEcho
notifications from the browser with the following information:
NOTE: WWW_RegisterURLEcho and WWW_UnRegisterURLEcho are new to IE 3.01. An application using IE 3.0 may need to upgrade to IE 3.01 to take advantage of this functionality. UnRegisterURLEchoUnRegisterURLEcho terminates associated request for URLEcho events notification:
Internet Explorer 4 returns success/failure on this (instead of ALWAYS 0).
RegisterProtocolRegisterProtocol registers the DDE Server application, Server.exe, to handle URLs of a specific Protocol type:
Where "AppName" is Server.exe's registered Service Name, and "mailto" is
the protocol to be registered.
Note that each of the strings have to be explicitly enclosed in double quotes. For Example, in C, the same string will have to be specified as follows:
Server.exe will then get notifications from the browser with the following
information:
Note that Flags is currently undefined and is always set to 0. In order to convert hsz1 and hsz2 into strings, the function DdeQueryString needs to be called. Note that, as indicated in the specification, a protocol can be registered to only one DDE server application at a time. In this case, only the application Server.exe will get notifications from the browser whenever the user clicks on any "mailto:" reference on a Web page. NOTE: As of Internet Explorer 4.0, RegisterProtocol (and UnRegisterProtocol) are no longer supported. The replacement technology for DDE in this regard is "Asynchronous Pluggable Protocols." See the REFERENCES section. UnRegisterProtocolUnRegisterProtocol terminates associated request for protocol notification:
ListWindowsAccording to the Spyglass specification, returns a list of window IDs for windows currently used by the browser:
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 GetWindowInfoReturns URL and WindowText currently being displayed in the browser window:
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 "!\"!".
Summary TableThe following table summarizes the DDE topics that are supported by various versions of Internet Explorer:"SpyGlass" indicates that the topic is described in the SpyGlass specification located at WWW.SPYGLASS.COM (search for "SDI").
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 REFERENCES
"Software Development Interface" document at WWW.SPYGLASS.COM
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 |
Last Reviewed: July 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |