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