Win32 API 日本語リファレンス
ホームStorage.FileSystem › LZDone

LZDone

関数
LZ展開によるファイルコピー処理を終了する。
DLLKERNEL32.dll呼出規約winapi

シグネチャ

// KERNEL32.dll
#include <windows.h>

void LZDone(void);

パラメーターなし。戻り値: void

各言語での呼び出し定義

// KERNEL32.dll
#include <windows.h>

void LZDone(void);
[DllImport("KERNEL32.dll", ExactSpelling = true)]
static extern void LZDone();
<DllImport("KERNEL32.dll", ExactSpelling:=True)>
Public Shared Sub LZDone()
End Sub
Declare PtrSafe Sub LZDone Lib "kernel32" ()
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

LZDone = ctypes.windll.kernel32.LZDone
LZDone.restype = None
LZDone.argtypes = []
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('KERNEL32.dll')
LZDone = Fiddle::Function.new(
  lib['LZDone'],
  [],
  Fiddle::TYPE_VOID)
#[link(name = "kernel32")]
extern "system" {
    fn LZDone();
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("KERNEL32.dll")]
public static extern void LZDone();
"@
$api = Add-Type -MemberDefinition $sig -Name 'KERNEL32_LZDone' -Namespace Win32 -PassThru
# $api::LZDone()
#uselib "KERNEL32.dll"
#func global LZDone "LZDone"
; LZDone
#uselib "KERNEL32.dll"
#func global LZDone "LZDone"
; LZDone
; void LZDone()
#uselib "KERNEL32.dll"
#func global LZDone "LZDone"
; LZDone
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	kernel32 = windows.NewLazySystemDLL("KERNEL32.dll")
	procLZDone = kernel32.NewProc("LZDone")
)

r1, _, err := procLZDone.Call()
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure LZDone; stdcall;
  external 'KERNEL32.dll' name 'LZDone';
result := DllCall("KERNEL32\LZDone", "Int")
●LZDone() = DLL("KERNEL32.dll", "int LZDone()")
# 呼び出し: LZDone()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。