ホーム › NetworkManagement.Rras › MprInfoBlockQuerySize
MprInfoBlockQuerySize
関数情報ヘッダーブロック全体のサイズを問い合わせる。
シグネチャ
// MPRAPI.dll
#include <windows.h>
DWORD MprInfoBlockQuerySize(
void* lpHeader
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| lpHeader | void* | in |
戻り値の型: DWORD
各言語での呼び出し定義
// MPRAPI.dll
#include <windows.h>
DWORD MprInfoBlockQuerySize(
void* lpHeader
);[DllImport("MPRAPI.dll", ExactSpelling = true)]
static extern uint MprInfoBlockQuerySize(
IntPtr lpHeader // void*
);<DllImport("MPRAPI.dll", ExactSpelling:=True)>
Public Shared Function MprInfoBlockQuerySize(
lpHeader As IntPtr ' void*
) As UInteger
End Function' lpHeader : void*
Declare PtrSafe Function MprInfoBlockQuerySize Lib "mprapi" ( _
ByVal lpHeader As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
MprInfoBlockQuerySize = ctypes.windll.mprapi.MprInfoBlockQuerySize
MprInfoBlockQuerySize.restype = wintypes.DWORD
MprInfoBlockQuerySize.argtypes = [
ctypes.POINTER(None), # lpHeader : void*
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MPRAPI.dll')
MprInfoBlockQuerySize = Fiddle::Function.new(
lib['MprInfoBlockQuerySize'],
[
Fiddle::TYPE_VOIDP, # lpHeader : void*
],
-Fiddle::TYPE_INT)#[link(name = "mprapi")]
extern "system" {
fn MprInfoBlockQuerySize(
lpHeader: *mut () // void*
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("MPRAPI.dll")]
public static extern uint MprInfoBlockQuerySize(IntPtr lpHeader);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MPRAPI_MprInfoBlockQuerySize' -Namespace Win32 -PassThru
# $api::MprInfoBlockQuerySize(lpHeader)#uselib "MPRAPI.dll"
#func global MprInfoBlockQuerySize "MprInfoBlockQuerySize" sptr
; MprInfoBlockQuerySize lpHeader ; 戻り値は stat
; lpHeader : void* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "MPRAPI.dll"
#cfunc global MprInfoBlockQuerySize "MprInfoBlockQuerySize" sptr
; res = MprInfoBlockQuerySize(lpHeader)
; lpHeader : void* -> "sptr"; DWORD MprInfoBlockQuerySize(void* lpHeader)
#uselib "MPRAPI.dll"
#cfunc global MprInfoBlockQuerySize "MprInfoBlockQuerySize" intptr
; res = MprInfoBlockQuerySize(lpHeader)
; lpHeader : void* -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
mprapi = windows.NewLazySystemDLL("MPRAPI.dll")
procMprInfoBlockQuerySize = mprapi.NewProc("MprInfoBlockQuerySize")
)
// lpHeader (void*)
r1, _, err := procMprInfoBlockQuerySize.Call(
uintptr(lpHeader),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction MprInfoBlockQuerySize(
lpHeader: Pointer // void*
): DWORD; stdcall;
external 'MPRAPI.dll' name 'MprInfoBlockQuerySize';result := DllCall("MPRAPI\MprInfoBlockQuerySize"
, "Ptr", lpHeader ; void*
, "UInt") ; return: DWORD●MprInfoBlockQuerySize(lpHeader) = DLL("MPRAPI.dll", "dword MprInfoBlockQuerySize(void*)")
# 呼び出し: MprInfoBlockQuerySize(lpHeader)
# lpHeader : void* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。