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

alljoyn_credentials_isset

関数
指定種別の資格情報が設定済みかどうかを判定する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

INT alljoyn_credentials_isset(
    alljoyn_credentials cred,
    WORD creds
);

パラメーター

名前方向
credalljoyn_credentialsin
credsWORDin

戻り値の型: INT

各言語での呼び出し定義

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

INT alljoyn_credentials_isset(
    alljoyn_credentials cred,
    WORD creds
);
[DllImport("MSAJApi.dll", ExactSpelling = true)]
static extern int alljoyn_credentials_isset(
    IntPtr cred,   // alljoyn_credentials
    ushort creds   // WORD
);
<DllImport("MSAJApi.dll", ExactSpelling:=True)>
Public Shared Function alljoyn_credentials_isset(
    cred As IntPtr,   ' alljoyn_credentials
    creds As UShort   ' WORD
) As Integer
End Function
' cred : alljoyn_credentials
' creds : WORD
Declare PtrSafe Function alljoyn_credentials_isset Lib "msajapi" ( _
    ByVal cred As LongPtr, _
    ByVal creds As Integer) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

alljoyn_credentials_isset = ctypes.windll.msajapi.alljoyn_credentials_isset
alljoyn_credentials_isset.restype = ctypes.c_int
alljoyn_credentials_isset.argtypes = [
    ctypes.c_ssize_t,  # cred : alljoyn_credentials
    ctypes.c_ushort,  # creds : WORD
]
require 'fiddle'
require 'fiddle/import'

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

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_credentials_isset = msajapi.NewProc("alljoyn_credentials_isset")
)

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