ホーム › UI.Input.KeyboardAndMouse › SetDoubleClickTime
SetDoubleClickTime
関数ダブルクリックの判定時間を設定する。
シグネチャ
// USER32.dll
#include <windows.h>
BOOL SetDoubleClickTime(
DWORD param0
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| param0 | DWORD | in |
戻り値の型: BOOL
各言語での呼び出し定義
// USER32.dll
#include <windows.h>
BOOL SetDoubleClickTime(
DWORD param0
);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("USER32.dll", SetLastError = true, ExactSpelling = true)]
static extern bool SetDoubleClickTime(
uint param0 // DWORD
);<DllImport("USER32.dll", SetLastError:=True, ExactSpelling:=True)>
Public Shared Function SetDoubleClickTime(
param0 As UInteger ' DWORD
) As Boolean
End Function' param0 : DWORD
Declare PtrSafe Function SetDoubleClickTime Lib "user32" ( _
ByVal param0 As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
SetDoubleClickTime = ctypes.windll.user32.SetDoubleClickTime
SetDoubleClickTime.restype = wintypes.BOOL
SetDoubleClickTime.argtypes = [
wintypes.DWORD, # param0 : DWORD
]
# GetLastError: use ctypes.GetLastError() (or ctypes.WinDLL(use_last_error=True))require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('USER32.dll')
SetDoubleClickTime = Fiddle::Function.new(
lib['SetDoubleClickTime'],
[
-Fiddle::TYPE_INT, # param0 : DWORD
],
Fiddle::TYPE_INT)#[link(name = "user32")]
extern "system" {
fn SetDoubleClickTime(
param0: u32 // DWORD
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("USER32.dll", SetLastError = true)]
public static extern bool SetDoubleClickTime(uint param0);
"@
$api = Add-Type -MemberDefinition $sig -Name 'USER32_SetDoubleClickTime' -Namespace Win32 -PassThru
# $api::SetDoubleClickTime(param0)#uselib "USER32.dll"
#func global SetDoubleClickTime "SetDoubleClickTime" sptr
; SetDoubleClickTime param0 ; 戻り値は stat
; param0 : DWORD -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "USER32.dll"
#cfunc global SetDoubleClickTime "SetDoubleClickTime" int
; res = SetDoubleClickTime(param0)
; param0 : DWORD -> "int"; BOOL SetDoubleClickTime(DWORD param0)
#uselib "USER32.dll"
#cfunc global SetDoubleClickTime "SetDoubleClickTime" int
; res = SetDoubleClickTime(param0)
; param0 : DWORD -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
user32 = windows.NewLazySystemDLL("USER32.dll")
procSetDoubleClickTime = user32.NewProc("SetDoubleClickTime")
)
// param0 (DWORD)
r1, _, err := procSetDoubleClickTime.Call(
uintptr(param0),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction SetDoubleClickTime(
param0: DWORD // DWORD
): BOOL; stdcall;
external 'USER32.dll' name 'SetDoubleClickTime';result := DllCall("USER32\SetDoubleClickTime"
, "UInt", param0 ; DWORD
, "Int") ; return: BOOL●SetDoubleClickTime(param0) = DLL("USER32.dll", "bool SetDoubleClickTime(dword)")
# 呼び出し: SetDoubleClickTime(param0)
# param0 : DWORD -> "dword"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。