DdeFreeStringHandle

機能
呼び出し側アプリケーション内の文字列ハンドルを解放する
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()関数で作成した文字列ハンドルだけ。