ホーム › System.Diagnostics.Debug › RemoveInvalidModuleList
RemoveInvalidModuleList
関数無効になったモジュールを一覧から除去する。
シグネチャ
// dbghelp.dll
#include <windows.h>
void RemoveInvalidModuleList(
HANDLE hProcess
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hProcess | HANDLE | in |
戻り値の型: void
各言語での呼び出し定義
// dbghelp.dll
#include <windows.h>
void RemoveInvalidModuleList(
HANDLE hProcess
);[DllImport("dbghelp.dll", ExactSpelling = true)]
static extern void RemoveInvalidModuleList(
IntPtr hProcess // HANDLE
);<DllImport("dbghelp.dll", ExactSpelling:=True)>
Public Shared Sub RemoveInvalidModuleList(
hProcess As IntPtr ' HANDLE
)
End Sub' hProcess : HANDLE
Declare PtrSafe Sub RemoveInvalidModuleList Lib "dbghelp" ( _
ByVal hProcess As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RemoveInvalidModuleList = ctypes.windll.dbghelp.RemoveInvalidModuleList
RemoveInvalidModuleList.restype = None
RemoveInvalidModuleList.argtypes = [
wintypes.HANDLE, # hProcess : HANDLE
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('dbghelp.dll')
RemoveInvalidModuleList = Fiddle::Function.new(
lib['RemoveInvalidModuleList'],
[
Fiddle::TYPE_VOIDP, # hProcess : HANDLE
],
Fiddle::TYPE_VOID)#[link(name = "dbghelp")]
extern "system" {
fn RemoveInvalidModuleList(
hProcess: *mut core::ffi::c_void // HANDLE
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("dbghelp.dll")]
public static extern void RemoveInvalidModuleList(IntPtr hProcess);
"@
$api = Add-Type -MemberDefinition $sig -Name 'dbghelp_RemoveInvalidModuleList' -Namespace Win32 -PassThru
# $api::RemoveInvalidModuleList(hProcess)#uselib "dbghelp.dll"
#func global RemoveInvalidModuleList "RemoveInvalidModuleList" sptr
; RemoveInvalidModuleList hProcess
; hProcess : HANDLE -> "sptr"#uselib "dbghelp.dll"
#func global RemoveInvalidModuleList "RemoveInvalidModuleList" sptr
; RemoveInvalidModuleList hProcess
; hProcess : HANDLE -> "sptr"; void RemoveInvalidModuleList(HANDLE hProcess)
#uselib "dbghelp.dll"
#func global RemoveInvalidModuleList "RemoveInvalidModuleList" intptr
; RemoveInvalidModuleList hProcess
; hProcess : HANDLE -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
dbghelp = windows.NewLazySystemDLL("dbghelp.dll")
procRemoveInvalidModuleList = dbghelp.NewProc("RemoveInvalidModuleList")
)
// hProcess (HANDLE)
r1, _, err := procRemoveInvalidModuleList.Call(
uintptr(hProcess),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure RemoveInvalidModuleList(
hProcess: THandle // HANDLE
); stdcall;
external 'dbghelp.dll' name 'RemoveInvalidModuleList';result := DllCall("dbghelp\RemoveInvalidModuleList"
, "Ptr", hProcess ; HANDLE
, "Int") ; return: void●RemoveInvalidModuleList(hProcess) = DLL("dbghelp.dll", "int RemoveInvalidModuleList(void*)")
# 呼び出し: RemoveInvalidModuleList(hProcess)
# hProcess : HANDLE -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。