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