Win32 API 日本語リファレンス
ホームNetworking.WinInet › InternetFortezzaCommand

InternetFortezzaCommand

関数
Fortezzaカードに対するコマンドを実行する。
DLLWININET.dll呼出規約winapi

シグネチャ

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

BOOL InternetFortezzaCommand(
    DWORD dwCommand,
    HWND hwnd,
    UINT_PTR dwReserved   // optional
);

パラメーター

名前方向
dwCommandDWORDin
hwndHWNDin
dwReservedUINT_PTRoptional

戻り値の型: BOOL

各言語での呼び出し定義

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

BOOL InternetFortezzaCommand(
    DWORD dwCommand,
    HWND hwnd,
    UINT_PTR dwReserved   // optional
);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("WININET.dll", ExactSpelling = true)]
static extern bool InternetFortezzaCommand(
    uint dwCommand,   // DWORD
    IntPtr hwnd,   // HWND
    UIntPtr dwReserved   // UINT_PTR optional
);
<DllImport("WININET.dll", ExactSpelling:=True)>
Public Shared Function InternetFortezzaCommand(
    dwCommand As UInteger,   ' DWORD
    hwnd As IntPtr,   ' HWND
    dwReserved As UIntPtr   ' UINT_PTR optional
) As Boolean
End Function
' dwCommand : DWORD
' hwnd : HWND
' dwReserved : UINT_PTR optional
Declare PtrSafe Function InternetFortezzaCommand Lib "wininet" ( _
    ByVal dwCommand As Long, _
    ByVal hwnd As LongPtr, _
    ByVal dwReserved As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

InternetFortezzaCommand = ctypes.windll.wininet.InternetFortezzaCommand
InternetFortezzaCommand.restype = wintypes.BOOL
InternetFortezzaCommand.argtypes = [
    wintypes.DWORD,  # dwCommand : DWORD
    wintypes.HANDLE,  # hwnd : HWND
    ctypes.c_size_t,  # dwReserved : UINT_PTR optional
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('WININET.dll')
InternetFortezzaCommand = Fiddle::Function.new(
  lib['InternetFortezzaCommand'],
  [
    -Fiddle::TYPE_INT,  # dwCommand : DWORD
    Fiddle::TYPE_VOIDP,  # hwnd : HWND
    Fiddle::TYPE_UINTPTR_T,  # dwReserved : UINT_PTR optional
  ],
  Fiddle::TYPE_INT)
#[link(name = "wininet")]
extern "system" {
    fn InternetFortezzaCommand(
        dwCommand: u32,  // DWORD
        hwnd: *mut core::ffi::c_void,  // HWND
        dwReserved: usize  // UINT_PTR optional
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("WININET.dll")]
public static extern bool InternetFortezzaCommand(uint dwCommand, IntPtr hwnd, UIntPtr dwReserved);
"@
$api = Add-Type -MemberDefinition $sig -Name 'WININET_InternetFortezzaCommand' -Namespace Win32 -PassThru
# $api::InternetFortezzaCommand(dwCommand, hwnd, dwReserved)
#uselib "WININET.dll"
#func global InternetFortezzaCommand "InternetFortezzaCommand" sptr, sptr, sptr
; InternetFortezzaCommand dwCommand, hwnd, dwReserved   ; 戻り値は stat
; dwCommand : DWORD -> "sptr"
; hwnd : HWND -> "sptr"
; dwReserved : UINT_PTR optional -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "WININET.dll"
#cfunc global InternetFortezzaCommand "InternetFortezzaCommand" int, sptr, sptr
; res = InternetFortezzaCommand(dwCommand, hwnd, dwReserved)
; dwCommand : DWORD -> "int"
; hwnd : HWND -> "sptr"
; dwReserved : UINT_PTR optional -> "sptr"
; BOOL InternetFortezzaCommand(DWORD dwCommand, HWND hwnd, UINT_PTR dwReserved)
#uselib "WININET.dll"
#cfunc global InternetFortezzaCommand "InternetFortezzaCommand" int, intptr, intptr
; res = InternetFortezzaCommand(dwCommand, hwnd, dwReserved)
; dwCommand : DWORD -> "int"
; hwnd : HWND -> "intptr"
; dwReserved : UINT_PTR optional -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	wininet = windows.NewLazySystemDLL("WININET.dll")
	procInternetFortezzaCommand = wininet.NewProc("InternetFortezzaCommand")
)

// dwCommand (DWORD), hwnd (HWND), dwReserved (UINT_PTR optional)
r1, _, err := procInternetFortezzaCommand.Call(
	uintptr(dwCommand),
	uintptr(hwnd),
	uintptr(dwReserved),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // BOOL
function InternetFortezzaCommand(
  dwCommand: DWORD;   // DWORD
  hwnd: THandle;   // HWND
  dwReserved: NativeUInt   // UINT_PTR optional
): BOOL; stdcall;
  external 'WININET.dll' name 'InternetFortezzaCommand';
result := DllCall("WININET\InternetFortezzaCommand"
    , "UInt", dwCommand   ; DWORD
    , "Ptr", hwnd   ; HWND
    , "UPtr", dwReserved   ; UINT_PTR optional
    , "Int")   ; return: BOOL
●InternetFortezzaCommand(dwCommand, hwnd, dwReserved) = DLL("WININET.dll", "bool InternetFortezzaCommand(dword, void*, int)")
# 呼び出し: InternetFortezzaCommand(dwCommand, hwnd, dwReserved)
# dwCommand : DWORD -> "dword"
# hwnd : HWND -> "void*"
# dwReserved : UINT_PTR optional -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。