ホーム › Networking.Clustering › FreeClusterCrypt
FreeClusterCrypt
関数クラスタ暗号化処理で確保したメモリを解放する。
シグネチャ
// RESUTILS.dll
#include <windows.h>
DWORD FreeClusterCrypt(
void* pCryptInfo
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pCryptInfo | void* | in |
戻り値の型: DWORD
各言語での呼び出し定義
// RESUTILS.dll
#include <windows.h>
DWORD FreeClusterCrypt(
void* pCryptInfo
);[DllImport("RESUTILS.dll", ExactSpelling = true)]
static extern uint FreeClusterCrypt(
IntPtr pCryptInfo // void*
);<DllImport("RESUTILS.dll", ExactSpelling:=True)>
Public Shared Function FreeClusterCrypt(
pCryptInfo As IntPtr ' void*
) As UInteger
End Function' pCryptInfo : void*
Declare PtrSafe Function FreeClusterCrypt Lib "resutils" ( _
ByVal pCryptInfo As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
FreeClusterCrypt = ctypes.windll.resutils.FreeClusterCrypt
FreeClusterCrypt.restype = wintypes.DWORD
FreeClusterCrypt.argtypes = [
ctypes.POINTER(None), # pCryptInfo : void*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('RESUTILS.dll')
FreeClusterCrypt = Fiddle::Function.new(
lib['FreeClusterCrypt'],
[
Fiddle::TYPE_VOIDP, # pCryptInfo : void*
],
-Fiddle::TYPE_INT)#[link(name = "resutils")]
extern "system" {
fn FreeClusterCrypt(
pCryptInfo: *mut () // void*
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("RESUTILS.dll")]
public static extern uint FreeClusterCrypt(IntPtr pCryptInfo);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RESUTILS_FreeClusterCrypt' -Namespace Win32 -PassThru
# $api::FreeClusterCrypt(pCryptInfo)#uselib "RESUTILS.dll"
#func global FreeClusterCrypt "FreeClusterCrypt" sptr
; FreeClusterCrypt pCryptInfo ; 戻り値は stat
; pCryptInfo : void* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "RESUTILS.dll"
#cfunc global FreeClusterCrypt "FreeClusterCrypt" sptr
; res = FreeClusterCrypt(pCryptInfo)
; pCryptInfo : void* -> "sptr"; DWORD FreeClusterCrypt(void* pCryptInfo)
#uselib "RESUTILS.dll"
#cfunc global FreeClusterCrypt "FreeClusterCrypt" intptr
; res = FreeClusterCrypt(pCryptInfo)
; pCryptInfo : void* -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
resutils = windows.NewLazySystemDLL("RESUTILS.dll")
procFreeClusterCrypt = resutils.NewProc("FreeClusterCrypt")
)
// pCryptInfo (void*)
r1, _, err := procFreeClusterCrypt.Call(
uintptr(pCryptInfo),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction FreeClusterCrypt(
pCryptInfo: Pointer // void*
): DWORD; stdcall;
external 'RESUTILS.dll' name 'FreeClusterCrypt';result := DllCall("RESUTILS\FreeClusterCrypt"
, "Ptr", pCryptInfo ; void*
, "UInt") ; return: DWORD●FreeClusterCrypt(pCryptInfo) = DLL("RESUTILS.dll", "dword FreeClusterCrypt(void*)")
# 呼び出し: FreeClusterCrypt(pCryptInfo)
# pCryptInfo : void* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。