ホーム › System.Registry › RegDisablePredefinedCacheEx
RegDisablePredefinedCacheEx
関数プロセス全体のHKCU定義済みキーキャッシュを無効化する。
シグネチャ
// ADVAPI32.dll
#include <windows.h>
WIN32_ERROR RegDisablePredefinedCacheEx(void);パラメーターなし。戻り値: WIN32_ERROR
各言語での呼び出し定義
// ADVAPI32.dll
#include <windows.h>
WIN32_ERROR RegDisablePredefinedCacheEx(void);[DllImport("ADVAPI32.dll", ExactSpelling = true)]
static extern uint RegDisablePredefinedCacheEx();<DllImport("ADVAPI32.dll", ExactSpelling:=True)>
Public Shared Function RegDisablePredefinedCacheEx() As UInteger
End FunctionDeclare PtrSafe Function RegDisablePredefinedCacheEx Lib "advapi32" () As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RegDisablePredefinedCacheEx = ctypes.windll.advapi32.RegDisablePredefinedCacheEx
RegDisablePredefinedCacheEx.restype = wintypes.DWORD
RegDisablePredefinedCacheEx.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('ADVAPI32.dll')
RegDisablePredefinedCacheEx = Fiddle::Function.new(
lib['RegDisablePredefinedCacheEx'],
[],
-Fiddle::TYPE_INT)#[link(name = "advapi32")]
extern "system" {
fn RegDisablePredefinedCacheEx() -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("ADVAPI32.dll")]
public static extern uint RegDisablePredefinedCacheEx();
"@
$api = Add-Type -MemberDefinition $sig -Name 'ADVAPI32_RegDisablePredefinedCacheEx' -Namespace Win32 -PassThru
# $api::RegDisablePredefinedCacheEx()#uselib "ADVAPI32.dll"
#func global RegDisablePredefinedCacheEx "RegDisablePredefinedCacheEx"
; RegDisablePredefinedCacheEx ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "ADVAPI32.dll"
#cfunc global RegDisablePredefinedCacheEx "RegDisablePredefinedCacheEx"
; res = RegDisablePredefinedCacheEx(); WIN32_ERROR RegDisablePredefinedCacheEx()
#uselib "ADVAPI32.dll"
#cfunc global RegDisablePredefinedCacheEx "RegDisablePredefinedCacheEx"
; res = RegDisablePredefinedCacheEx()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
advapi32 = windows.NewLazySystemDLL("ADVAPI32.dll")
procRegDisablePredefinedCacheEx = advapi32.NewProc("RegDisablePredefinedCacheEx")
)
r1, _, err := procRegDisablePredefinedCacheEx.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // WIN32_ERRORfunction RegDisablePredefinedCacheEx: DWORD; stdcall;
external 'ADVAPI32.dll' name 'RegDisablePredefinedCacheEx';result := DllCall("ADVAPI32\RegDisablePredefinedCacheEx", "UInt")●RegDisablePredefinedCacheEx() = DLL("ADVAPI32.dll", "dword RegDisablePredefinedCacheEx()")
# 呼び出し: RegDisablePredefinedCacheEx()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。