ホーム › Graphics.GdiPlus › GdiplusNotificationUnhook
GdiplusNotificationUnhook
関数GDI+の通知フックを解除する。
シグネチャ
// gdiplus.dll
#include <windows.h>
void GdiplusNotificationUnhook(
UINT_PTR token
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| token | UINT_PTR | in |
戻り値の型: void
各言語での呼び出し定義
// gdiplus.dll
#include <windows.h>
void GdiplusNotificationUnhook(
UINT_PTR token
);[DllImport("gdiplus.dll", ExactSpelling = true)]
static extern void GdiplusNotificationUnhook(
UIntPtr token // UINT_PTR
);<DllImport("gdiplus.dll", ExactSpelling:=True)>
Public Shared Sub GdiplusNotificationUnhook(
token As UIntPtr ' UINT_PTR
)
End Sub' token : UINT_PTR
Declare PtrSafe Sub GdiplusNotificationUnhook Lib "gdiplus" ( _
ByVal token As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
GdiplusNotificationUnhook = ctypes.windll.gdiplus.GdiplusNotificationUnhook
GdiplusNotificationUnhook.restype = None
GdiplusNotificationUnhook.argtypes = [
ctypes.c_size_t, # token : UINT_PTR
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('gdiplus.dll')
GdiplusNotificationUnhook = Fiddle::Function.new(
lib['GdiplusNotificationUnhook'],
[
Fiddle::TYPE_UINTPTR_T, # token : UINT_PTR
],
Fiddle::TYPE_VOID)#[link(name = "gdiplus")]
extern "system" {
fn GdiplusNotificationUnhook(
token: usize // UINT_PTR
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("gdiplus.dll")]
public static extern void GdiplusNotificationUnhook(UIntPtr token);
"@
$api = Add-Type -MemberDefinition $sig -Name 'gdiplus_GdiplusNotificationUnhook' -Namespace Win32 -PassThru
# $api::GdiplusNotificationUnhook(token)#uselib "gdiplus.dll"
#func global GdiplusNotificationUnhook "GdiplusNotificationUnhook" sptr
; GdiplusNotificationUnhook token
; token : UINT_PTR -> "sptr"#uselib "gdiplus.dll"
#func global GdiplusNotificationUnhook "GdiplusNotificationUnhook" sptr
; GdiplusNotificationUnhook token
; token : UINT_PTR -> "sptr"; void GdiplusNotificationUnhook(UINT_PTR token)
#uselib "gdiplus.dll"
#func global GdiplusNotificationUnhook "GdiplusNotificationUnhook" intptr
; GdiplusNotificationUnhook token
; token : UINT_PTR -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
gdiplus = windows.NewLazySystemDLL("gdiplus.dll")
procGdiplusNotificationUnhook = gdiplus.NewProc("GdiplusNotificationUnhook")
)
// token (UINT_PTR)
r1, _, err := procGdiplusNotificationUnhook.Call(
uintptr(token),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure GdiplusNotificationUnhook(
token: NativeUInt // UINT_PTR
); stdcall;
external 'gdiplus.dll' name 'GdiplusNotificationUnhook';result := DllCall("gdiplus\GdiplusNotificationUnhook"
, "UPtr", token ; UINT_PTR
, "Int") ; return: void●GdiplusNotificationUnhook(token) = DLL("gdiplus.dll", "int GdiplusNotificationUnhook(int)")
# 呼び出し: GdiplusNotificationUnhook(token)
# token : UINT_PTR -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。