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

alljoyn_credentials_destroy

関数
AllJoyn資格情報オブジェクトを破棄する。
DLLMSAJApi.dll呼出規約winapi

シグネチャ

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

void alljoyn_credentials_destroy(
    alljoyn_credentials cred
);

パラメーター

名前方向
credalljoyn_credentialsin

戻り値の型: void

各言語での呼び出し定義

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

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

alljoyn_credentials_destroy = ctypes.windll.msajapi.alljoyn_credentials_destroy
alljoyn_credentials_destroy.restype = None
alljoyn_credentials_destroy.argtypes = [
    ctypes.c_ssize_t,  # cred : alljoyn_credentials
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('MSAJApi.dll')
alljoyn_credentials_destroy = Fiddle::Function.new(
  lib['alljoyn_credentials_destroy'],
  [
    Fiddle::TYPE_INTPTR_T,  # cred : alljoyn_credentials
  ],
  Fiddle::TYPE_VOID)
#[link(name = "msajapi")]
extern "system" {
    fn alljoyn_credentials_destroy(
        cred: isize  // alljoyn_credentials
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("MSAJApi.dll")]
public static extern void alljoyn_credentials_destroy(IntPtr cred);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MSAJApi_alljoyn_credentials_destroy' -Namespace Win32 -PassThru
# $api::alljoyn_credentials_destroy(cred)
#uselib "MSAJApi.dll"
#func global alljoyn_credentials_destroy "alljoyn_credentials_destroy" sptr
; alljoyn_credentials_destroy cred
; cred : alljoyn_credentials -> "sptr"
#uselib "MSAJApi.dll"
#func global alljoyn_credentials_destroy "alljoyn_credentials_destroy" sptr
; alljoyn_credentials_destroy cred
; cred : alljoyn_credentials -> "sptr"
; void alljoyn_credentials_destroy(alljoyn_credentials cred)
#uselib "MSAJApi.dll"
#func global alljoyn_credentials_destroy "alljoyn_credentials_destroy" intptr
; alljoyn_credentials_destroy cred
; cred : alljoyn_credentials -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	msajapi = windows.NewLazySystemDLL("MSAJApi.dll")
	procalljoyn_credentials_destroy = msajapi.NewProc("alljoyn_credentials_destroy")
)

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