ホーム › System.CorrelationVector › RtlExtendCorrelationVector
RtlExtendCorrelationVector
関数相関ベクターに新しい階層レベルを追加して拡張する。
シグネチャ
// ntdll.dll
#include <windows.h>
DWORD RtlExtendCorrelationVector(
CORRELATION_VECTOR* CorrelationVector
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| CorrelationVector | CORRELATION_VECTOR* | inout |
戻り値の型: DWORD
各言語での呼び出し定義
// ntdll.dll
#include <windows.h>
DWORD RtlExtendCorrelationVector(
CORRELATION_VECTOR* CorrelationVector
);[DllImport("ntdll.dll", ExactSpelling = true)]
static extern uint RtlExtendCorrelationVector(
IntPtr CorrelationVector // CORRELATION_VECTOR* in/out
);<DllImport("ntdll.dll", ExactSpelling:=True)>
Public Shared Function RtlExtendCorrelationVector(
CorrelationVector As IntPtr ' CORRELATION_VECTOR* in/out
) As UInteger
End Function' CorrelationVector : CORRELATION_VECTOR* in/out
Declare PtrSafe Function RtlExtendCorrelationVector Lib "ntdll" ( _
ByVal CorrelationVector As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RtlExtendCorrelationVector = ctypes.windll.ntdll.RtlExtendCorrelationVector
RtlExtendCorrelationVector.restype = wintypes.DWORD
RtlExtendCorrelationVector.argtypes = [
ctypes.c_void_p, # CorrelationVector : CORRELATION_VECTOR* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('ntdll.dll')
RtlExtendCorrelationVector = Fiddle::Function.new(
lib['RtlExtendCorrelationVector'],
[
Fiddle::TYPE_VOIDP, # CorrelationVector : CORRELATION_VECTOR* in/out
],
-Fiddle::TYPE_INT)#[link(name = "ntdll")]
extern "system" {
fn RtlExtendCorrelationVector(
CorrelationVector: *mut CORRELATION_VECTOR // CORRELATION_VECTOR* in/out
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("ntdll.dll")]
public static extern uint RtlExtendCorrelationVector(IntPtr CorrelationVector);
"@
$api = Add-Type -MemberDefinition $sig -Name 'ntdll_RtlExtendCorrelationVector' -Namespace Win32 -PassThru
# $api::RtlExtendCorrelationVector(CorrelationVector)#uselib "ntdll.dll"
#func global RtlExtendCorrelationVector "RtlExtendCorrelationVector" sptr
; RtlExtendCorrelationVector varptr(CorrelationVector) ; 戻り値は stat
; CorrelationVector : CORRELATION_VECTOR* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "ntdll.dll" #cfunc global RtlExtendCorrelationVector "RtlExtendCorrelationVector" var ; res = RtlExtendCorrelationVector(CorrelationVector) ; CorrelationVector : CORRELATION_VECTOR* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "ntdll.dll" #cfunc global RtlExtendCorrelationVector "RtlExtendCorrelationVector" sptr ; res = RtlExtendCorrelationVector(varptr(CorrelationVector)) ; CorrelationVector : CORRELATION_VECTOR* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; DWORD RtlExtendCorrelationVector(CORRELATION_VECTOR* CorrelationVector) #uselib "ntdll.dll" #cfunc global RtlExtendCorrelationVector "RtlExtendCorrelationVector" var ; res = RtlExtendCorrelationVector(CorrelationVector) ; CorrelationVector : CORRELATION_VECTOR* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; DWORD RtlExtendCorrelationVector(CORRELATION_VECTOR* CorrelationVector) #uselib "ntdll.dll" #cfunc global RtlExtendCorrelationVector "RtlExtendCorrelationVector" intptr ; res = RtlExtendCorrelationVector(varptr(CorrelationVector)) ; CorrelationVector : CORRELATION_VECTOR* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
ntdll = windows.NewLazySystemDLL("ntdll.dll")
procRtlExtendCorrelationVector = ntdll.NewProc("RtlExtendCorrelationVector")
)
// CorrelationVector (CORRELATION_VECTOR* in/out)
r1, _, err := procRtlExtendCorrelationVector.Call(
uintptr(CorrelationVector),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction RtlExtendCorrelationVector(
CorrelationVector: Pointer // CORRELATION_VECTOR* in/out
): DWORD; stdcall;
external 'ntdll.dll' name 'RtlExtendCorrelationVector';result := DllCall("ntdll\RtlExtendCorrelationVector"
, "Ptr", CorrelationVector ; CORRELATION_VECTOR* in/out
, "UInt") ; return: DWORD●RtlExtendCorrelationVector(CorrelationVector) = DLL("ntdll.dll", "dword RtlExtendCorrelationVector(void*)")
# 呼び出し: RtlExtendCorrelationVector(CorrelationVector)
# CorrelationVector : CORRELATION_VECTOR* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。