Win32 API 日本語リファレンス
ホームSecurity.Authentication.Identity › SspiZeroAuthIdentity

SspiZeroAuthIdentity

関数
認証情報構造体の内容をゼロクリアして消去する。
DLLSECUR32.dll呼出規約winapi対応OSWindows 7 以降

シグネチャ

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

void SspiZeroAuthIdentity(
    void* AuthData   // optional
);

パラメーター

名前方向
AuthDatavoid*inoptional

戻り値の型: void

各言語での呼び出し定義

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

void SspiZeroAuthIdentity(
    void* AuthData   // optional
);
[DllImport("SECUR32.dll", ExactSpelling = true)]
static extern void SspiZeroAuthIdentity(
    IntPtr AuthData   // void* optional
);
<DllImport("SECUR32.dll", ExactSpelling:=True)>
Public Shared Sub SspiZeroAuthIdentity(
    AuthData As IntPtr   ' void* optional
)
End Sub
' AuthData : void* optional
Declare PtrSafe Sub SspiZeroAuthIdentity Lib "secur32" ( _
    ByVal AuthData As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

SspiZeroAuthIdentity = ctypes.windll.secur32.SspiZeroAuthIdentity
SspiZeroAuthIdentity.restype = None
SspiZeroAuthIdentity.argtypes = [
    ctypes.POINTER(None),  # AuthData : void* optional
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('SECUR32.dll')
SspiZeroAuthIdentity = Fiddle::Function.new(
  lib['SspiZeroAuthIdentity'],
  [
    Fiddle::TYPE_VOIDP,  # AuthData : void* optional
  ],
  Fiddle::TYPE_VOID)
#[link(name = "secur32")]
extern "system" {
    fn SspiZeroAuthIdentity(
        AuthData: *mut ()  // void* optional
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("SECUR32.dll")]
public static extern void SspiZeroAuthIdentity(IntPtr AuthData);
"@
$api = Add-Type -MemberDefinition $sig -Name 'SECUR32_SspiZeroAuthIdentity' -Namespace Win32 -PassThru
# $api::SspiZeroAuthIdentity(AuthData)
#uselib "SECUR32.dll"
#func global SspiZeroAuthIdentity "SspiZeroAuthIdentity" sptr
; SspiZeroAuthIdentity AuthData
; AuthData : void* optional -> "sptr"
#uselib "SECUR32.dll"
#func global SspiZeroAuthIdentity "SspiZeroAuthIdentity" sptr
; SspiZeroAuthIdentity AuthData
; AuthData : void* optional -> "sptr"
; void SspiZeroAuthIdentity(void* AuthData)
#uselib "SECUR32.dll"
#func global SspiZeroAuthIdentity "SspiZeroAuthIdentity" intptr
; SspiZeroAuthIdentity AuthData
; AuthData : void* optional -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	secur32 = windows.NewLazySystemDLL("SECUR32.dll")
	procSspiZeroAuthIdentity = secur32.NewProc("SspiZeroAuthIdentity")
)

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