|
|
От: |
azzx
|
|
| Дата: | 16.10.06 05:56 | ||
| Оценка: | |||
When an application calls DdeCreateStringHandle and specifies a string that already exists in the table, the system increments the usage count rather than adding another occurrence of the string. (An application can also increment the usage count by using DdeKeepStringHandle.) When an application calls the DdeFreeStringHandle function, the system decrements the usage count.
A string is removed from the table when its usage count equals zero. Because more than one application can obtain the handle to a particular string, an application must not free a string handle more times than it has created or retained the handle. Otherwise, the application can cause the string to be removed from the table, denying other applications access to the string.
The DDEML string-management functions are based on the atom manager and are subject to the same size restrictions as are atoms.