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