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