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

SecFreeCallContext

関数
現在の呼び出しコンテキストを解放する。
DLLSspiCli.dll呼出規約winapi

シグネチャ

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

void SecFreeCallContext(void);

パラメーターなし。戻り値: void

各言語での呼び出し定義

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

void SecFreeCallContext(void);
[DllImport("SspiCli.dll", ExactSpelling = true)]
static extern void SecFreeCallContext();
<DllImport("SspiCli.dll", ExactSpelling:=True)>
Public Shared Sub SecFreeCallContext()
End Sub
Declare PtrSafe Sub SecFreeCallContext Lib "sspicli" ()
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

SecFreeCallContext = ctypes.windll.sspicli.SecFreeCallContext
SecFreeCallContext.restype = None
SecFreeCallContext.argtypes = []
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('SspiCli.dll')
SecFreeCallContext = Fiddle::Function.new(
  lib['SecFreeCallContext'],
  [],
  Fiddle::TYPE_VOID)
#[link(name = "sspicli")]
extern "system" {
    fn SecFreeCallContext();
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("SspiCli.dll")]
public static extern void SecFreeCallContext();
"@
$api = Add-Type -MemberDefinition $sig -Name 'SspiCli_SecFreeCallContext' -Namespace Win32 -PassThru
# $api::SecFreeCallContext()
#uselib "SspiCli.dll"
#func global SecFreeCallContext "SecFreeCallContext"
; SecFreeCallContext
#uselib "SspiCli.dll"
#func global SecFreeCallContext "SecFreeCallContext"
; SecFreeCallContext
; void SecFreeCallContext()
#uselib "SspiCli.dll"
#func global SecFreeCallContext "SecFreeCallContext"
; SecFreeCallContext
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	sspicli = windows.NewLazySystemDLL("SspiCli.dll")
	procSecFreeCallContext = sspicli.NewProc("SecFreeCallContext")
)

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