Overview | ||||||||||||||||
Group | ||||||||||||||||
Quick Info
|
DdeCreateStringHandle
The DdeCreateStringHandle function creates a handle that identifies the string pointed to by the psz parameter. A dynamic data exchange (DDE) client or server application can pass the string handle as a parameter to other Dynamic Data Exchange Management Library (DDEML) functions. HSZ DdeCreateStringHandle( DWORD idInst,
| // instance identifier
|
LPTSTR psz,
| // pointer to null-terminated string
|
int iCodePage
| // code page identifier
|
);
|
|
DMLERR_NO_ERROR
DMLERR_SYS_ERROR Remarks The value of a string handle is not related to the case of the string it identifies. When an application either creates a string handle or receives one in the callback function and then uses the DdeKeepStringHandle function to keep it, the application must free that string handle when it is no longer needed. An instance-specific string handle cannot be mapped from string handle to string and back to string handle. This is shown in the following example, in which the DdeQueryString function creates a string from a string handle and DdeCreateStringHandle creates a string handle from that string, but the two handles are not the same: DWORD idInst; DWORD cb; HSZ hszInst, hszNew; PSZ pszInst; DdeQueryString(idInst, hszInst, pszInst, cb, CP_WINANSI); hszNew = DdeCreateStringHandle(idInst, pszInst, CP_WINANSI); // hszNew != hszInst ! See Also DdeAccessData, DdeCmpStringHandles, DdeFreeStringHandle, DdeInitialize, DdeKeepStringHandle, DdeQueryString
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers - More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples - Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database