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