The information in this article applies to:
SUMMARY
Instance-specific string handles in DDEML may be used in DdeConnect()
or DdeConnectList() in order to connect to a particular instance of a
server. These string handles are received by a DDEML callback as the
HSZ2 parameter to the XTYP_REGISTER/XTYP_UNREGISTER transactions
whenever a server application registers or unregisters the service
name it supports.
MORE INFORMATION
Currently, instance-specific string handles contain two pieces of
information: the original service name string plus the handle to a
hidden window created by DDEML, which is associated with that string.
These two pieces of information are then merged [that is, MAKELONG
(SvcNameAtom, hWnd)] into an HSZ.
An instance-specific string handle is not mappable from string handle to string to string handle again. The DdeQueryString() function creates a string from a string handle and then DdeCreateStringHandle() creates a string handle from that string, but the two handles are not the same.This might be better explained as follows:
Note how instance-specific 0x56F8C18F passed in to DdeQueryString() is not the same as the HSZ returned (0x0000C193) from the DdeCreateStringHandle() on the same string; whereas regular string handles (that is, non-instance-specific HSZs) would have mapped to the same string handle. Additional query words: 3.10 3.50 4.00
Keywords : kbNTOS350 kbNTOS351 kbWinOS95 |
Last Reviewed: September 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |