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