Win32 API 日本語リファレンス
ホームSystem.Rpc › NdrCorrelationFree

NdrCorrelationFree

関数
NDRの相関記述子処理用リソースを解放する。
DLLRPCRT4.dll呼出規約winapi

シグネチャ

// RPCRT4.dll
#include <windows.h>

void NdrCorrelationFree(
    MIDL_STUB_MESSAGE* pStubMsg
);

パラメーター

名前方向
pStubMsgMIDL_STUB_MESSAGE*inout

戻り値の型: void

各言語での呼び出し定義

// RPCRT4.dll
#include <windows.h>

void NdrCorrelationFree(
    MIDL_STUB_MESSAGE* pStubMsg
);
[DllImport("RPCRT4.dll", ExactSpelling = true)]
static extern void NdrCorrelationFree(
    IntPtr pStubMsg   // MIDL_STUB_MESSAGE* in/out
);
<DllImport("RPCRT4.dll", ExactSpelling:=True)>
Public Shared Sub NdrCorrelationFree(
    pStubMsg As IntPtr   ' MIDL_STUB_MESSAGE* in/out
)
End Sub
' pStubMsg : MIDL_STUB_MESSAGE* in/out
Declare PtrSafe Sub NdrCorrelationFree Lib "rpcrt4" ( _
    ByVal pStubMsg As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

NdrCorrelationFree = ctypes.windll.rpcrt4.NdrCorrelationFree
NdrCorrelationFree.restype = None
NdrCorrelationFree.argtypes = [
    ctypes.c_void_p,  # pStubMsg : MIDL_STUB_MESSAGE* in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('RPCRT4.dll')
NdrCorrelationFree = Fiddle::Function.new(
  lib['NdrCorrelationFree'],
  [
    Fiddle::TYPE_VOIDP,  # pStubMsg : MIDL_STUB_MESSAGE* in/out
  ],
  Fiddle::TYPE_VOID)
#[link(name = "rpcrt4")]
extern "system" {
    fn NdrCorrelationFree(
        pStubMsg: *mut MIDL_STUB_MESSAGE  // MIDL_STUB_MESSAGE* in/out
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("RPCRT4.dll")]
public static extern void NdrCorrelationFree(IntPtr pStubMsg);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RPCRT4_NdrCorrelationFree' -Namespace Win32 -PassThru
# $api::NdrCorrelationFree(pStubMsg)
#uselib "RPCRT4.dll"
#func global NdrCorrelationFree "NdrCorrelationFree" sptr
; NdrCorrelationFree varptr(pStubMsg)
; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "sptr"
出力引数:
#uselib "RPCRT4.dll"
#func global NdrCorrelationFree "NdrCorrelationFree" var
; NdrCorrelationFree pStubMsg
; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; void NdrCorrelationFree(MIDL_STUB_MESSAGE* pStubMsg)
#uselib "RPCRT4.dll"
#func global NdrCorrelationFree "NdrCorrelationFree" var
; NdrCorrelationFree pStubMsg
; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	rpcrt4 = windows.NewLazySystemDLL("RPCRT4.dll")
	procNdrCorrelationFree = rpcrt4.NewProc("NdrCorrelationFree")
)

// pStubMsg (MIDL_STUB_MESSAGE* in/out)
r1, _, err := procNdrCorrelationFree.Call(
	uintptr(pStubMsg),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure NdrCorrelationFree(
  pStubMsg: Pointer   // MIDL_STUB_MESSAGE* in/out
); stdcall;
  external 'RPCRT4.dll' name 'NdrCorrelationFree';
result := DllCall("RPCRT4\NdrCorrelationFree"
    , "Ptr", pStubMsg   ; MIDL_STUB_MESSAGE* in/out
    , "Int")   ; return: void
●NdrCorrelationFree(pStubMsg) = DLL("RPCRT4.dll", "int NdrCorrelationFree(void*)")
# 呼び出し: NdrCorrelationFree(pStubMsg)
# pStubMsg : MIDL_STUB_MESSAGE* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。