ホーム › System.Diagnostics.Debug › RtlDeleteGrowableFunctionTable
RtlDeleteGrowableFunctionTable
関数拡張可能な関数テーブルを削除する。
シグネチャ
// ntdll.dll
#include <windows.h>
void RtlDeleteGrowableFunctionTable(
void* DynamicTable
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| DynamicTable | void* | in | RtlAddGrowableFunctionTable によって返される不透明な参照です。 |
戻り値の型: void
公式ドキュメント
以前に登録された動的関数テーブルがもう使用されていないことをシステムに通知します。
戻り値
この関数は値を返しません。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での呼び出し定義
// ntdll.dll
#include <windows.h>
void RtlDeleteGrowableFunctionTable(
void* DynamicTable
);[DllImport("ntdll.dll", ExactSpelling = true)]
static extern void RtlDeleteGrowableFunctionTable(
IntPtr DynamicTable // void*
);<DllImport("ntdll.dll", ExactSpelling:=True)>
Public Shared Sub RtlDeleteGrowableFunctionTable(
DynamicTable As IntPtr ' void*
)
End Sub' DynamicTable : void*
Declare PtrSafe Sub RtlDeleteGrowableFunctionTable Lib "ntdll" ( _
ByVal DynamicTable As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RtlDeleteGrowableFunctionTable = ctypes.windll.ntdll.RtlDeleteGrowableFunctionTable
RtlDeleteGrowableFunctionTable.restype = None
RtlDeleteGrowableFunctionTable.argtypes = [
ctypes.POINTER(None), # DynamicTable : void*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('ntdll.dll')
RtlDeleteGrowableFunctionTable = Fiddle::Function.new(
lib['RtlDeleteGrowableFunctionTable'],
[
Fiddle::TYPE_VOIDP, # DynamicTable : void*
],
Fiddle::TYPE_VOID)#[link(name = "ntdll")]
extern "system" {
fn RtlDeleteGrowableFunctionTable(
DynamicTable: *mut () // void*
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("ntdll.dll")]
public static extern void RtlDeleteGrowableFunctionTable(IntPtr DynamicTable);
"@
$api = Add-Type -MemberDefinition $sig -Name 'ntdll_RtlDeleteGrowableFunctionTable' -Namespace Win32 -PassThru
# $api::RtlDeleteGrowableFunctionTable(DynamicTable)#uselib "ntdll.dll"
#func global RtlDeleteGrowableFunctionTable "RtlDeleteGrowableFunctionTable" sptr
; RtlDeleteGrowableFunctionTable DynamicTable
; DynamicTable : void* -> "sptr"#uselib "ntdll.dll"
#func global RtlDeleteGrowableFunctionTable "RtlDeleteGrowableFunctionTable" sptr
; RtlDeleteGrowableFunctionTable DynamicTable
; DynamicTable : void* -> "sptr"; void RtlDeleteGrowableFunctionTable(void* DynamicTable)
#uselib "ntdll.dll"
#func global RtlDeleteGrowableFunctionTable "RtlDeleteGrowableFunctionTable" intptr
; RtlDeleteGrowableFunctionTable DynamicTable
; DynamicTable : void* -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
ntdll = windows.NewLazySystemDLL("ntdll.dll")
procRtlDeleteGrowableFunctionTable = ntdll.NewProc("RtlDeleteGrowableFunctionTable")
)
// DynamicTable (void*)
r1, _, err := procRtlDeleteGrowableFunctionTable.Call(
uintptr(DynamicTable),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure RtlDeleteGrowableFunctionTable(
DynamicTable: Pointer // void*
); stdcall;
external 'ntdll.dll' name 'RtlDeleteGrowableFunctionTable';result := DllCall("ntdll\RtlDeleteGrowableFunctionTable"
, "Ptr", DynamicTable ; void*
, "Int") ; return: void●RtlDeleteGrowableFunctionTable(DynamicTable) = DLL("ntdll.dll", "int RtlDeleteGrowableFunctionTable(void*)")
# 呼び出し: RtlDeleteGrowableFunctionTable(DynamicTable)
# DynamicTable : void* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。const std = @import("std");
extern "ntdll" fn RtlDeleteGrowableFunctionTable(
DynamicTable: ?*anyopaque // void*
) callconv(std.os.windows.WINAPI) void;proc RtlDeleteGrowableFunctionTable(
DynamicTable: pointer # void*
) {.importc: "RtlDeleteGrowableFunctionTable", stdcall, dynlib: "ntdll.dll".}pragma(lib, "ntdll");
extern(Windows)
void RtlDeleteGrowableFunctionTable(
void* DynamicTable // void*
);ccall((:RtlDeleteGrowableFunctionTable, "ntdll.dll"), stdcall, Cvoid,
(Ptr{Cvoid},),
DynamicTable)
# DynamicTable : void* -> Ptr{Cvoid}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。local ffi = require("ffi")
ffi.cdef[[
void RtlDeleteGrowableFunctionTable(
void* DynamicTable);
]]
local ntdll = ffi.load("ntdll")
-- ntdll.RtlDeleteGrowableFunctionTable(DynamicTable)
-- DynamicTable : void*
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。const koffi = require('koffi');
const lib = koffi.load('ntdll.dll');
const RtlDeleteGrowableFunctionTable = lib.func('__stdcall', 'RtlDeleteGrowableFunctionTable', 'void', ['void *']);
// RtlDeleteGrowableFunctionTable(DynamicTable)
// DynamicTable : void* -> 'void *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("ntdll.dll", {
RtlDeleteGrowableFunctionTable: { parameters: ["pointer"], result: "void" },
});
// lib.symbols.RtlDeleteGrowableFunctionTable(DynamicTable)
// DynamicTable : void* -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
void RtlDeleteGrowableFunctionTable(
void* DynamicTable);
C, "ntdll.dll");
// $ffi->RtlDeleteGrowableFunctionTable(DynamicTable);
// DynamicTable : void*
// 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
// WINAPI(stdcall): x64 では呼出規約が統一されるため問題なし。x86 では __stdcall 対応のラッパが必要な場合あり。import com.sun.jna.*;
import com.sun.jna.ptr.*;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;
public interface Ntdll extends StdCallLibrary {
Ntdll INSTANCE = Native.load("ntdll", Ntdll.class);
void RtlDeleteGrowableFunctionTable(
Pointer DynamicTable // void*
);
}@[Link("ntdll")]
lib Libntdll
fun RtlDeleteGrowableFunctionTable = RtlDeleteGrowableFunctionTable(
DynamicTable : Void* # void*
) : Void
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。import 'dart:ffi';
import 'package:ffi/ffi.dart';
typedef RtlDeleteGrowableFunctionTableNative = Void Function(Pointer<Void>);
typedef RtlDeleteGrowableFunctionTableDart = void Function(Pointer<Void>);
final RtlDeleteGrowableFunctionTable = DynamicLibrary.open('ntdll.dll')
.lookupFunction<RtlDeleteGrowableFunctionTableNative, RtlDeleteGrowableFunctionTableDart>('RtlDeleteGrowableFunctionTable');
// DynamicTable : void* -> Pointer<Void>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
procedure RtlDeleteGrowableFunctionTable(
DynamicTable: Pointer // void*
); stdcall;
external 'ntdll.dll' name 'RtlDeleteGrowableFunctionTable';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "RtlDeleteGrowableFunctionTable"
c_RtlDeleteGrowableFunctionTable :: Ptr () -> IO ()
-- DynamicTable : void* -> Ptr ()
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let rtldeletegrowablefunctiontable =
foreign "RtlDeleteGrowableFunctionTable"
((ptr void) @-> returning void)
(* DynamicTable : void* -> (ptr void) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library ntdll (t "ntdll.dll"))
(cffi:use-foreign-library ntdll)
(cffi:defcfun ("RtlDeleteGrowableFunctionTable" rtl-delete-growable-function-table :convention :stdcall) :void
(dynamic-table :pointer)) ; void*
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $RtlDeleteGrowableFunctionTable = Win32::API::More->new('ntdll',
'void RtlDeleteGrowableFunctionTable(LPVOID DynamicTable)');
# my $ret = $RtlDeleteGrowableFunctionTable->Call($DynamicTable);
# DynamicTable : void* -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。