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