ホーム › Networking.WinInet › ShowClientAuthCerts
ShowClientAuthCerts
関数クライアント認証用証明書の選択ダイアログを表示する。
シグネチャ
// WININET.dll
#include <windows.h>
DWORD ShowClientAuthCerts(
HWND hWndParent
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hWndParent | HWND | in |
戻り値の型: DWORD
各言語での呼び出し定義
// WININET.dll
#include <windows.h>
DWORD ShowClientAuthCerts(
HWND hWndParent
);[DllImport("WININET.dll", ExactSpelling = true)]
static extern uint ShowClientAuthCerts(
IntPtr hWndParent // HWND
);<DllImport("WININET.dll", ExactSpelling:=True)>
Public Shared Function ShowClientAuthCerts(
hWndParent As IntPtr ' HWND
) As UInteger
End Function' hWndParent : HWND
Declare PtrSafe Function ShowClientAuthCerts Lib "wininet" ( _
ByVal hWndParent As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
ShowClientAuthCerts = ctypes.windll.wininet.ShowClientAuthCerts
ShowClientAuthCerts.restype = wintypes.DWORD
ShowClientAuthCerts.argtypes = [
wintypes.HANDLE, # hWndParent : HWND
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('WININET.dll')
ShowClientAuthCerts = Fiddle::Function.new(
lib['ShowClientAuthCerts'],
[
Fiddle::TYPE_VOIDP, # hWndParent : HWND
],
-Fiddle::TYPE_INT)#[link(name = "wininet")]
extern "system" {
fn ShowClientAuthCerts(
hWndParent: *mut core::ffi::c_void // HWND
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("WININET.dll")]
public static extern uint ShowClientAuthCerts(IntPtr hWndParent);
"@
$api = Add-Type -MemberDefinition $sig -Name 'WININET_ShowClientAuthCerts' -Namespace Win32 -PassThru
# $api::ShowClientAuthCerts(hWndParent)#uselib "WININET.dll"
#func global ShowClientAuthCerts "ShowClientAuthCerts" sptr
; ShowClientAuthCerts hWndParent ; 戻り値は stat
; hWndParent : HWND -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "WININET.dll"
#cfunc global ShowClientAuthCerts "ShowClientAuthCerts" sptr
; res = ShowClientAuthCerts(hWndParent)
; hWndParent : HWND -> "sptr"; DWORD ShowClientAuthCerts(HWND hWndParent)
#uselib "WININET.dll"
#cfunc global ShowClientAuthCerts "ShowClientAuthCerts" intptr
; res = ShowClientAuthCerts(hWndParent)
; hWndParent : HWND -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
wininet = windows.NewLazySystemDLL("WININET.dll")
procShowClientAuthCerts = wininet.NewProc("ShowClientAuthCerts")
)
// hWndParent (HWND)
r1, _, err := procShowClientAuthCerts.Call(
uintptr(hWndParent),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction ShowClientAuthCerts(
hWndParent: THandle // HWND
): DWORD; stdcall;
external 'WININET.dll' name 'ShowClientAuthCerts';result := DllCall("WININET\ShowClientAuthCerts"
, "Ptr", hWndParent ; HWND
, "UInt") ; return: DWORD●ShowClientAuthCerts(hWndParent) = DLL("WININET.dll", "dword ShowClientAuthCerts(void*)")
# 呼び出し: ShowClientAuthCerts(hWndParent)
# hWndParent : HWND -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。