Win32 API 日本語リファレンス
ホームDevices.AllJoyn › alljoyn_authlistener_verifycredentialsresponse

alljoyn_authlistener_verifycredentialsresponse

関数
資格情報検証コールバックに対し非同期で検証結果を応答する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

QStatus alljoyn_authlistener_verifycredentialsresponse(
    alljoyn_authlistener listener,
    void* authContext,
    INT accept
);

パラメーター

名前方向
listeneralljoyn_authlistenerin
authContextvoid*inout
acceptINTin

戻り値の型: QStatus

各言語での呼び出し定義

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

QStatus alljoyn_authlistener_verifycredentialsresponse(
    alljoyn_authlistener listener,
    void* authContext,
    INT accept
);
[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern int alljoyn_authlistener_verifycredentialsresponse(
    IntPtr listener,   // alljoyn_authlistener
    IntPtr authContext,   // void* in/out
    int accept   // INT
);
<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Function alljoyn_authlistener_verifycredentialsresponse(
    listener As IntPtr,   ' alljoyn_authlistener
    authContext As IntPtr,   ' void* in/out
    accept As Integer   ' INT
) As Integer
End Function
' listener : alljoyn_authlistener
' authContext : void* in/out
' accept : INT
Declare PtrSafe Function alljoyn_authlistener_verifycredentialsresponse Lib "msajapi" ( _
    ByVal listener As LongPtr, _
    ByVal authContext As LongPtr, _
    ByVal accept As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

alljoyn_authlistener_verifycredentialsresponse = ctypes.windll.msajapi.alljoyn_authlistener_verifycredentialsresponse
alljoyn_authlistener_verifycredentialsresponse.restype = ctypes.c_int
alljoyn_authlistener_verifycredentialsresponse.argtypes = [
    ctypes.c_ssize_t,  # listener : alljoyn_authlistener
    ctypes.POINTER(None),  # authContext : void* in/out
    ctypes.c_int,  # accept : INT
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_authlistener_verifycredentialsresponse = Fiddle::Function.new(
  lib['alljoyn_authlistener_verifycredentialsresponse'],
  [
    Fiddle::TYPE_INTPTR_T,  # listener : alljoyn_authlistener
    Fiddle::TYPE_VOIDP,  # authContext : void* in/out
    Fiddle::TYPE_INT,  # accept : INT
  ],
  Fiddle::TYPE_INT)
#[link(name = "msajapi")]
extern "system" {
    fn alljoyn_authlistener_verifycredentialsresponse(
        listener: isize,  // alljoyn_authlistener
        authContext: *mut (),  // void* in/out
        accept: i32  // INT
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSAJApi.dll")]
public static extern int alljoyn_authlistener_verifycredentialsresponse(IntPtr listener, IntPtr authContext, int accept);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_authlistener_verifycredentialsresponse' -Namespace Win32 -PassThru
# $api::alljoyn_authlistener_verifycredentialsresponse(listener, authContext, accept)
#uselib "MSAJApi.dll"
#func global alljoyn_authlistener_verifycredentialsresponse "alljoyn_authlistener_verifycredentialsresponse" sptr, sptr, sptr
; alljoyn_authlistener_verifycredentialsresponse listener, authContext, accept   ; 戻り値は stat
; listener : alljoyn_authlistener -> "sptr"
; authContext : void* in/out -> "sptr"
; accept : INT -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "MSAJApi.dll"
#cfunc global alljoyn_authlistener_verifycredentialsresponse "alljoyn_authlistener_verifycredentialsresponse" sptr, sptr, int
; res = alljoyn_authlistener_verifycredentialsresponse(listener, authContext, accept)
; listener : alljoyn_authlistener -> "sptr"
; authContext : void* in/out -> "sptr"
; accept : INT -> "int"
; QStatus alljoyn_authlistener_verifycredentialsresponse(alljoyn_authlistener listener, void* authContext, INT accept)
#uselib "MSAJApi.dll"
#cfunc global alljoyn_authlistener_verifycredentialsresponse "alljoyn_authlistener_verifycredentialsresponse" intptr, intptr, int
; res = alljoyn_authlistener_verifycredentialsresponse(listener, authContext, accept)
; listener : alljoyn_authlistener -> "intptr"
; authContext : void* in/out -> "intptr"
; accept : INT -> "int"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_authlistener_verifycredentialsresponse = msajapi.NewProc("alljoyn_authlistener_verifycredentialsresponse")
)

// listener (alljoyn_authlistener), authContext (void* in/out), accept (INT)
r1, _, err := procalljoyn_authlistener_verifycredentialsresponse.Call(
	uintptr(listener),
	uintptr(authContext),
	uintptr(accept),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // QStatus
function alljoyn_authlistener_verifycredentialsresponse(
  listener: NativeInt;   // alljoyn_authlistener
  authContext: Pointer;   // void* in/out
  accept: Integer   // INT
): Integer; stdcall;
  external 'MSAJApi.dll' name 'alljoyn_authlistener_verifycredentialsresponse';
result := DllCall("MSAJApi\alljoyn_authlistener_verifycredentialsresponse"
    , "Ptr", listener   ; alljoyn_authlistener
    , "Ptr", authContext   ; void* in/out
    , "Int", accept   ; INT
    , "Int")   ; return: QStatus
●alljoyn_authlistener_verifycredentialsresponse(listener, authContext, accept) = DLL("MSAJApi.dll", "int alljoyn_authlistener_verifycredentialsresponse(int, void*, int)")
# 呼び出し: alljoyn_authlistener_verifycredentialsresponse(listener, authContext, accept)
# listener : alljoyn_authlistener -> "int"
# authContext : void* in/out -> "void*"
# accept : INT -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。