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