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