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