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