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