ホーム › System.Threading › RtwqUnregisterPlatformEvents
RtwqUnregisterPlatformEvents
関数RTWQプラットフォームのイベント通知の登録を解除する。
シグネチャ
// RTWorkQ.dll
#include <windows.h>
HRESULT RtwqUnregisterPlatformEvents(
IRtwqPlatformEvents* platformEvents
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| platformEvents | IRtwqPlatformEvents* | in |
戻り値の型: HRESULT
各言語での呼び出し定義
// RTWorkQ.dll
#include <windows.h>
HRESULT RtwqUnregisterPlatformEvents(
IRtwqPlatformEvents* platformEvents
);[DllImport("RTWorkQ.dll", ExactSpelling = true)]
static extern int RtwqUnregisterPlatformEvents(
IntPtr platformEvents // IRtwqPlatformEvents*
);<DllImport("RTWorkQ.dll", ExactSpelling:=True)>
Public Shared Function RtwqUnregisterPlatformEvents(
platformEvents As IntPtr ' IRtwqPlatformEvents*
) As Integer
End Function' platformEvents : IRtwqPlatformEvents*
Declare PtrSafe Function RtwqUnregisterPlatformEvents Lib "rtworkq" ( _
ByVal platformEvents As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RtwqUnregisterPlatformEvents = ctypes.windll.rtworkq.RtwqUnregisterPlatformEvents
RtwqUnregisterPlatformEvents.restype = ctypes.c_int
RtwqUnregisterPlatformEvents.argtypes = [
ctypes.c_void_p, # platformEvents : IRtwqPlatformEvents*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('RTWorkQ.dll')
RtwqUnregisterPlatformEvents = Fiddle::Function.new(
lib['RtwqUnregisterPlatformEvents'],
[
Fiddle::TYPE_VOIDP, # platformEvents : IRtwqPlatformEvents*
],
Fiddle::TYPE_INT)#[link(name = "rtworkq")]
extern "system" {
fn RtwqUnregisterPlatformEvents(
platformEvents: *mut core::ffi::c_void // IRtwqPlatformEvents*
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("RTWorkQ.dll")]
public static extern int RtwqUnregisterPlatformEvents(IntPtr platformEvents);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RTWorkQ_RtwqUnregisterPlatformEvents' -Namespace Win32 -PassThru
# $api::RtwqUnregisterPlatformEvents(platformEvents)#uselib "RTWorkQ.dll"
#func global RtwqUnregisterPlatformEvents "RtwqUnregisterPlatformEvents" sptr
; RtwqUnregisterPlatformEvents platformEvents ; 戻り値は stat
; platformEvents : IRtwqPlatformEvents* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "RTWorkQ.dll"
#cfunc global RtwqUnregisterPlatformEvents "RtwqUnregisterPlatformEvents" sptr
; res = RtwqUnregisterPlatformEvents(platformEvents)
; platformEvents : IRtwqPlatformEvents* -> "sptr"; HRESULT RtwqUnregisterPlatformEvents(IRtwqPlatformEvents* platformEvents)
#uselib "RTWorkQ.dll"
#cfunc global RtwqUnregisterPlatformEvents "RtwqUnregisterPlatformEvents" intptr
; res = RtwqUnregisterPlatformEvents(platformEvents)
; platformEvents : IRtwqPlatformEvents* -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
rtworkq = windows.NewLazySystemDLL("RTWorkQ.dll")
procRtwqUnregisterPlatformEvents = rtworkq.NewProc("RtwqUnregisterPlatformEvents")
)
// platformEvents (IRtwqPlatformEvents*)
r1, _, err := procRtwqUnregisterPlatformEvents.Call(
uintptr(platformEvents),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction RtwqUnregisterPlatformEvents(
platformEvents: Pointer // IRtwqPlatformEvents*
): Integer; stdcall;
external 'RTWorkQ.dll' name 'RtwqUnregisterPlatformEvents';result := DllCall("RTWorkQ\RtwqUnregisterPlatformEvents"
, "Ptr", platformEvents ; IRtwqPlatformEvents*
, "Int") ; return: HRESULT●RtwqUnregisterPlatformEvents(platformEvents) = DLL("RTWorkQ.dll", "int RtwqUnregisterPlatformEvents(void*)")
# 呼び出し: RtwqUnregisterPlatformEvents(platformEvents)
# platformEvents : IRtwqPlatformEvents* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。