ホーム › Security.Authentication.Identity › SspiLocalFree
SspiLocalFree
関数SSPIが割り当てたデータバッファを解放する。
シグネチャ
// SECUR32.dll
#include <windows.h>
void SspiLocalFree(
void* DataBuffer // optional
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| DataBuffer | void* | inoptional |
戻り値の型: void
各言語での呼び出し定義
// SECUR32.dll
#include <windows.h>
void SspiLocalFree(
void* DataBuffer // optional
);[DllImport("SECUR32.dll", ExactSpelling = true)]
static extern void SspiLocalFree(
IntPtr DataBuffer // void* optional
);<DllImport("SECUR32.dll", ExactSpelling:=True)>
Public Shared Sub SspiLocalFree(
DataBuffer As IntPtr ' void* optional
)
End Sub' DataBuffer : void* optional
Declare PtrSafe Sub SspiLocalFree Lib "secur32" ( _
ByVal DataBuffer As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
SspiLocalFree = ctypes.windll.secur32.SspiLocalFree
SspiLocalFree.restype = None
SspiLocalFree.argtypes = [
ctypes.POINTER(None), # DataBuffer : void* optional
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('SECUR32.dll')
SspiLocalFree = Fiddle::Function.new(
lib['SspiLocalFree'],
[
Fiddle::TYPE_VOIDP, # DataBuffer : void* optional
],
Fiddle::TYPE_VOID)#[link(name = "secur32")]
extern "system" {
fn SspiLocalFree(
DataBuffer: *mut () // void* optional
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("SECUR32.dll")]
public static extern void SspiLocalFree(IntPtr DataBuffer);
"@
$api = Add-Type -MemberDefinition $sig -Name 'SECUR32_SspiLocalFree' -Namespace Win32 -PassThru
# $api::SspiLocalFree(DataBuffer)#uselib "SECUR32.dll"
#func global SspiLocalFree "SspiLocalFree" sptr
; SspiLocalFree DataBuffer
; DataBuffer : void* optional -> "sptr"#uselib "SECUR32.dll"
#func global SspiLocalFree "SspiLocalFree" sptr
; SspiLocalFree DataBuffer
; DataBuffer : void* optional -> "sptr"; void SspiLocalFree(void* DataBuffer)
#uselib "SECUR32.dll"
#func global SspiLocalFree "SspiLocalFree" intptr
; SspiLocalFree DataBuffer
; DataBuffer : void* optional -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
secur32 = windows.NewLazySystemDLL("SECUR32.dll")
procSspiLocalFree = secur32.NewProc("SspiLocalFree")
)
// DataBuffer (void* optional)
r1, _, err := procSspiLocalFree.Call(
uintptr(DataBuffer),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure SspiLocalFree(
DataBuffer: Pointer // void* optional
); stdcall;
external 'SECUR32.dll' name 'SspiLocalFree';result := DllCall("SECUR32\SspiLocalFree"
, "Ptr", DataBuffer ; void* optional
, "Int") ; return: void●SspiLocalFree(DataBuffer) = DLL("SECUR32.dll", "int SspiLocalFree(void*)")
# 呼び出し: SspiLocalFree(DataBuffer)
# DataBuffer : void* optional -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。