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