Win32 API 日本語リファレンス
ホームUI.Shell › DAD_DragLeave

DAD_DragLeave

関数
ドラッグ画像を消去しドラッグ終了を通知する。
DLLSHELL32.dll呼出規約winapi対応OSWindows 2000 以降

シグネチャ

// SHELL32.dll
#include <windows.h>

BOOL DAD_DragLeave(void);

パラメーターなし。戻り値: BOOL

各言語での呼び出し定義

// SHELL32.dll
#include <windows.h>

BOOL DAD_DragLeave(void);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("SHELL32.dll", ExactSpelling = true)]
static extern bool DAD_DragLeave();
<DllImport("SHELL32.dll", ExactSpelling:=True)>
Public Shared Function DAD_DragLeave() As Boolean
End Function
Declare PtrSafe Function DAD_DragLeave Lib "shell32" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

DAD_DragLeave = ctypes.windll.shell32.DAD_DragLeave
DAD_DragLeave.restype = wintypes.BOOL
DAD_DragLeave.argtypes = []
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('SHELL32.dll')
DAD_DragLeave = Fiddle::Function.new(
  lib['DAD_DragLeave'],
  [],
  Fiddle::TYPE_INT)
#[link(name = "shell32")]
extern "system" {
    fn DAD_DragLeave() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("SHELL32.dll")]
public static extern bool DAD_DragLeave();
"@
$api = Add-Type -MemberDefinition $sig -Name 'SHELL32_DAD_DragLeave' -Namespace Win32 -PassThru
# $api::DAD_DragLeave()
#uselib "SHELL32.dll"
#func global DAD_DragLeave "DAD_DragLeave"
; DAD_DragLeave   ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "SHELL32.dll"
#cfunc global DAD_DragLeave "DAD_DragLeave"
; res = DAD_DragLeave()
; BOOL DAD_DragLeave()
#uselib "SHELL32.dll"
#cfunc global DAD_DragLeave "DAD_DragLeave"
; res = DAD_DragLeave()
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	shell32 = windows.NewLazySystemDLL("SHELL32.dll")
	procDAD_DragLeave = shell32.NewProc("DAD_DragLeave")
)

r1, _, err := procDAD_DragLeave.Call()
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // BOOL
function DAD_DragLeave: BOOL; stdcall;
  external 'SHELL32.dll' name 'DAD_DragLeave';
result := DllCall("SHELL32\DAD_DragLeave", "Int")
●DAD_DragLeave() = DLL("SHELL32.dll", "bool DAD_DragLeave()")
# 呼び出し: DAD_DragLeave()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。