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