呼び出し側アプリケーション内の文字列ハンドルを解放する
Declare Function DdeFreeStringHandle Lib "user32.dll" _
(ByVal idInst As Long, ByVal hsz As Long) As Long
Declare Function DdeFreeStringHandle Lib "user32.dll" _
(ByVal idInst As Integer, ByVal hsz As Integer) As Integer
BOOL DdeFreeStringHandle(
DWORD idInst,
HSZ hsz
);
引数
idInst
DdeInitialize()関数を使って取得したアプリケーションインスタンス識別子hsz
解放する文字列ハンドル戻り値
正常終了のとき 0以外備考
エラーのとき 0
この関数で解放できるのは、DdeCreateStringHandle()関数で作成した文字列ハンドルだけ。