ホーム › Web.InternetExplorer › IEIsProtectedModeProcess
IEIsProtectedModeProcess
関数プロセスがIE保護モードで動作中か判定する。
シグネチャ
// Ieframe.dll
#include <windows.h>
HRESULT IEIsProtectedModeProcess(
BOOL* pbResult
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| pbResult | BOOL* | out | 現在のプロセスが保護モードか否かの判定結果を受け取るBOOLへのポインタ。 |
戻り値の型: HRESULT
各言語での呼び出し定義
// Ieframe.dll
#include <windows.h>
HRESULT IEIsProtectedModeProcess(
BOOL* pbResult
);[DllImport("Ieframe.dll", ExactSpelling = true)]
static extern int IEIsProtectedModeProcess(
out int pbResult // BOOL* out
);<DllImport("Ieframe.dll", ExactSpelling:=True)>
Public Shared Function IEIsProtectedModeProcess(
<Out> ByRef pbResult As Integer ' BOOL* out
) As Integer
End Function' pbResult : BOOL* out
Declare PtrSafe Function IEIsProtectedModeProcess Lib "ieframe" ( _
ByRef pbResult As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
IEIsProtectedModeProcess = ctypes.windll.ieframe.IEIsProtectedModeProcess
IEIsProtectedModeProcess.restype = ctypes.c_int
IEIsProtectedModeProcess.argtypes = [
ctypes.c_void_p, # pbResult : BOOL* out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('Ieframe.dll')
IEIsProtectedModeProcess = Fiddle::Function.new(
lib['IEIsProtectedModeProcess'],
[
Fiddle::TYPE_VOIDP, # pbResult : BOOL* out
],
Fiddle::TYPE_INT)#[link(name = "ieframe")]
extern "system" {
fn IEIsProtectedModeProcess(
pbResult: *mut i32 // BOOL* out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("Ieframe.dll")]
public static extern int IEIsProtectedModeProcess(out int pbResult);
"@
$api = Add-Type -MemberDefinition $sig -Name 'Ieframe_IEIsProtectedModeProcess' -Namespace Win32 -PassThru
# $api::IEIsProtectedModeProcess(pbResult)#uselib "Ieframe.dll"
#func global IEIsProtectedModeProcess "IEIsProtectedModeProcess" sptr
; IEIsProtectedModeProcess pbResult ; 戻り値は stat
; pbResult : BOOL* out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "Ieframe.dll"
#cfunc global IEIsProtectedModeProcess "IEIsProtectedModeProcess" int
; res = IEIsProtectedModeProcess(pbResult)
; pbResult : BOOL* out -> "int"; HRESULT IEIsProtectedModeProcess(BOOL* pbResult)
#uselib "Ieframe.dll"
#cfunc global IEIsProtectedModeProcess "IEIsProtectedModeProcess" int
; res = IEIsProtectedModeProcess(pbResult)
; pbResult : BOOL* out -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
ieframe = windows.NewLazySystemDLL("Ieframe.dll")
procIEIsProtectedModeProcess = ieframe.NewProc("IEIsProtectedModeProcess")
)
// pbResult (BOOL* out)
r1, _, err := procIEIsProtectedModeProcess.Call(
uintptr(pbResult),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction IEIsProtectedModeProcess(
pbResult: Pointer // BOOL* out
): Integer; stdcall;
external 'Ieframe.dll' name 'IEIsProtectedModeProcess';result := DllCall("Ieframe\IEIsProtectedModeProcess"
, "Ptr", pbResult ; BOOL* out
, "Int") ; return: HRESULT●IEIsProtectedModeProcess(pbResult) = DLL("Ieframe.dll", "int IEIsProtectedModeProcess(void*)")
# 呼び出し: IEIsProtectedModeProcess(pbResult)
# pbResult : BOOL* out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。