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