ホーム › UI.Controls › DSA_Clone
DSA_Clone
関数動的構造体配列を複製する。
シグネチャ
// COMCTL32.dll
#include <windows.h>
HDSA DSA_Clone(
HDSA hdsa
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hdsa | HDSA | in |
戻り値の型: HDSA
各言語での呼び出し定義
// COMCTL32.dll
#include <windows.h>
HDSA DSA_Clone(
HDSA hdsa
);[DllImport("COMCTL32.dll", ExactSpelling = true)]
static extern IntPtr DSA_Clone(
IntPtr hdsa // HDSA
);<DllImport("COMCTL32.dll", ExactSpelling:=True)>
Public Shared Function DSA_Clone(
hdsa As IntPtr ' HDSA
) As IntPtr
End Function' hdsa : HDSA
Declare PtrSafe Function DSA_Clone Lib "comctl32" ( _
ByVal hdsa As LongPtr) As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
DSA_Clone = ctypes.windll.comctl32.DSA_Clone
DSA_Clone.restype = ctypes.c_ssize_t
DSA_Clone.argtypes = [
ctypes.c_ssize_t, # hdsa : HDSA
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('COMCTL32.dll')
DSA_Clone = Fiddle::Function.new(
lib['DSA_Clone'],
[
Fiddle::TYPE_INTPTR_T, # hdsa : HDSA
],
Fiddle::TYPE_INTPTR_T)#[link(name = "comctl32")]
extern "system" {
fn DSA_Clone(
hdsa: isize // HDSA
) -> isize;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("COMCTL32.dll")]
public static extern IntPtr DSA_Clone(IntPtr hdsa);
"@
$api = Add-Type -MemberDefinition $sig -Name 'COMCTL32_DSA_Clone' -Namespace Win32 -PassThru
# $api::DSA_Clone(hdsa)#uselib "COMCTL32.dll"
#func global DSA_Clone "DSA_Clone" sptr
; DSA_Clone hdsa ; 戻り値は stat
; hdsa : HDSA -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "COMCTL32.dll"
#cfunc global DSA_Clone "DSA_Clone" sptr
; res = DSA_Clone(hdsa)
; hdsa : HDSA -> "sptr"; HDSA DSA_Clone(HDSA hdsa)
#uselib "COMCTL32.dll"
#cfunc global DSA_Clone "DSA_Clone" intptr
; res = DSA_Clone(hdsa)
; hdsa : HDSA -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
comctl32 = windows.NewLazySystemDLL("COMCTL32.dll")
procDSA_Clone = comctl32.NewProc("DSA_Clone")
)
// hdsa (HDSA)
r1, _, err := procDSA_Clone.Call(
uintptr(hdsa),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HDSAfunction DSA_Clone(
hdsa: NativeInt // HDSA
): NativeInt; stdcall;
external 'COMCTL32.dll' name 'DSA_Clone';result := DllCall("COMCTL32\DSA_Clone"
, "Ptr", hdsa ; HDSA
, "Ptr") ; return: HDSA●DSA_Clone(hdsa) = DLL("COMCTL32.dll", "int DSA_Clone(int)")
# 呼び出し: DSA_Clone(hdsa)
# hdsa : HDSA -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。