ホーム › Web.InternetExplorer › IEIsInPrivateBrowsing
IEIsInPrivateBrowsing
関数InPrivateブラウズ中かどうかを判定する。
シグネチャ
// Ieframe.dll
#include <windows.h>
BOOL IEIsInPrivateBrowsing(void);パラメーターなし。戻り値: BOOL
各言語での呼び出し定義
// Ieframe.dll
#include <windows.h>
BOOL IEIsInPrivateBrowsing(void);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("Ieframe.dll", ExactSpelling = true)]
static extern bool IEIsInPrivateBrowsing();<DllImport("Ieframe.dll", ExactSpelling:=True)>
Public Shared Function IEIsInPrivateBrowsing() As Boolean
End FunctionDeclare PtrSafe Function IEIsInPrivateBrowsing Lib "ieframe" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
IEIsInPrivateBrowsing = ctypes.windll.ieframe.IEIsInPrivateBrowsing
IEIsInPrivateBrowsing.restype = wintypes.BOOL
IEIsInPrivateBrowsing.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('Ieframe.dll')
IEIsInPrivateBrowsing = Fiddle::Function.new(
lib['IEIsInPrivateBrowsing'],
[],
Fiddle::TYPE_INT)#[link(name = "ieframe")]
extern "system" {
fn IEIsInPrivateBrowsing() -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("Ieframe.dll")]
public static extern bool IEIsInPrivateBrowsing();
"@
$api = Add-Type -MemberDefinition $sig -Name 'Ieframe_IEIsInPrivateBrowsing' -Namespace Win32 -PassThru
# $api::IEIsInPrivateBrowsing()#uselib "Ieframe.dll"
#func global IEIsInPrivateBrowsing "IEIsInPrivateBrowsing"
; IEIsInPrivateBrowsing ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "Ieframe.dll"
#cfunc global IEIsInPrivateBrowsing "IEIsInPrivateBrowsing"
; res = IEIsInPrivateBrowsing(); BOOL IEIsInPrivateBrowsing()
#uselib "Ieframe.dll"
#cfunc global IEIsInPrivateBrowsing "IEIsInPrivateBrowsing"
; res = IEIsInPrivateBrowsing()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
ieframe = windows.NewLazySystemDLL("Ieframe.dll")
procIEIsInPrivateBrowsing = ieframe.NewProc("IEIsInPrivateBrowsing")
)
r1, _, err := procIEIsInPrivateBrowsing.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction IEIsInPrivateBrowsing: BOOL; stdcall;
external 'Ieframe.dll' name 'IEIsInPrivateBrowsing';result := DllCall("Ieframe\IEIsInPrivateBrowsing", "Int")●IEIsInPrivateBrowsing() = DLL("Ieframe.dll", "bool IEIsInPrivateBrowsing()")
# 呼び出し: IEIsInPrivateBrowsing()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。