ホーム › System.DataExchange › DdeDisconnectList
DdeDisconnectList
関数DDE会話リスト内の全会話を切断し破棄する。
シグネチャ
// USER32.dll
#include <windows.h>
BOOL DdeDisconnectList(
HCONVLIST hConvList
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hConvList | HCONVLIST | in |
戻り値の型: BOOL
各言語での呼び出し定義
// USER32.dll
#include <windows.h>
BOOL DdeDisconnectList(
HCONVLIST hConvList
);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("USER32.dll", ExactSpelling = true)]
static extern bool DdeDisconnectList(
IntPtr hConvList // HCONVLIST
);<DllImport("USER32.dll", ExactSpelling:=True)>
Public Shared Function DdeDisconnectList(
hConvList As IntPtr ' HCONVLIST
) As Boolean
End Function' hConvList : HCONVLIST
Declare PtrSafe Function DdeDisconnectList Lib "user32" ( _
ByVal hConvList As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
DdeDisconnectList = ctypes.windll.user32.DdeDisconnectList
DdeDisconnectList.restype = wintypes.BOOL
DdeDisconnectList.argtypes = [
wintypes.HANDLE, # hConvList : HCONVLIST
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('USER32.dll')
DdeDisconnectList = Fiddle::Function.new(
lib['DdeDisconnectList'],
[
Fiddle::TYPE_VOIDP, # hConvList : HCONVLIST
],
Fiddle::TYPE_INT)#[link(name = "user32")]
extern "system" {
fn DdeDisconnectList(
hConvList: *mut core::ffi::c_void // HCONVLIST
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("USER32.dll")]
public static extern bool DdeDisconnectList(IntPtr hConvList);
"@
$api = Add-Type -MemberDefinition $sig -Name 'USER32_DdeDisconnectList' -Namespace Win32 -PassThru
# $api::DdeDisconnectList(hConvList)#uselib "USER32.dll"
#func global DdeDisconnectList "DdeDisconnectList" sptr
; DdeDisconnectList hConvList ; 戻り値は stat
; hConvList : HCONVLIST -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "USER32.dll"
#cfunc global DdeDisconnectList "DdeDisconnectList" sptr
; res = DdeDisconnectList(hConvList)
; hConvList : HCONVLIST -> "sptr"; BOOL DdeDisconnectList(HCONVLIST hConvList)
#uselib "USER32.dll"
#cfunc global DdeDisconnectList "DdeDisconnectList" intptr
; res = DdeDisconnectList(hConvList)
; hConvList : HCONVLIST -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
user32 = windows.NewLazySystemDLL("USER32.dll")
procDdeDisconnectList = user32.NewProc("DdeDisconnectList")
)
// hConvList (HCONVLIST)
r1, _, err := procDdeDisconnectList.Call(
uintptr(hConvList),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction DdeDisconnectList(
hConvList: THandle // HCONVLIST
): BOOL; stdcall;
external 'USER32.dll' name 'DdeDisconnectList';result := DllCall("USER32\DdeDisconnectList"
, "Ptr", hConvList ; HCONVLIST
, "Int") ; return: BOOL●DdeDisconnectList(hConvList) = DLL("USER32.dll", "bool DdeDisconnectList(void*)")
# 呼び出し: DdeDisconnectList(hConvList)
# hConvList : HCONVLIST -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。