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