ホーム › UI.Controls › InitCommonControls
InitCommonControls
関数コモンコントロールDLLを登録し初期化する。
シグネチャ
// COMCTL32.dll
#include <windows.h>
void InitCommonControls(void);パラメーターなし。戻り値: void
各言語での呼び出し定義
// COMCTL32.dll
#include <windows.h>
void InitCommonControls(void);[DllImport("COMCTL32.dll", ExactSpelling = true)]
static extern void InitCommonControls();<DllImport("COMCTL32.dll", ExactSpelling:=True)>
Public Shared Sub InitCommonControls()
End SubDeclare PtrSafe Sub InitCommonControls Lib "comctl32" ()
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
InitCommonControls = ctypes.windll.comctl32.InitCommonControls
InitCommonControls.restype = None
InitCommonControls.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('COMCTL32.dll')
InitCommonControls = Fiddle::Function.new(
lib['InitCommonControls'],
[],
Fiddle::TYPE_VOID)#[link(name = "comctl32")]
extern "system" {
fn InitCommonControls();
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("COMCTL32.dll")]
public static extern void InitCommonControls();
"@
$api = Add-Type -MemberDefinition $sig -Name 'COMCTL32_InitCommonControls' -Namespace Win32 -PassThru
# $api::InitCommonControls()#uselib "COMCTL32.dll"
#func global InitCommonControls "InitCommonControls"
; InitCommonControls#uselib "COMCTL32.dll"
#func global InitCommonControls "InitCommonControls"
; InitCommonControls; void InitCommonControls()
#uselib "COMCTL32.dll"
#func global InitCommonControls "InitCommonControls"
; InitCommonControlsimport (
"golang.org/x/sys/windows"
"unsafe"
)
var (
comctl32 = windows.NewLazySystemDLL("COMCTL32.dll")
procInitCommonControls = comctl32.NewProc("InitCommonControls")
)
r1, _, err := procInitCommonControls.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure InitCommonControls; stdcall;
external 'COMCTL32.dll' name 'InitCommonControls';result := DllCall("COMCTL32\InitCommonControls", "Int")●InitCommonControls() = DLL("COMCTL32.dll", "int InitCommonControls()")
# 呼び出し: InitCommonControls()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。