ホーム › Networking.Clustering › ResUtilVerifyPropertyTable
ResUtilVerifyPropertyTable
関数入力プロパティリストがプロパティテーブルに適合するか検証する。
シグネチャ
// RESUTILS.dll
#include <windows.h>
DWORD ResUtilVerifyPropertyTable(
const RESUTIL_PROPERTY_ITEM* pPropertyTable,
void* Reserved, // optional
BOOL bAllowUnknownProperties,
const void* pInPropertyList,
DWORD cbInPropertyListSize,
BYTE* pOutParams // optional
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pPropertyTable | RESUTIL_PROPERTY_ITEM* | in |
| Reserved | void* | optional |
| bAllowUnknownProperties | BOOL | in |
| pInPropertyList | void* | in |
| cbInPropertyListSize | DWORD | in |
| pOutParams | BYTE* | outoptional |
戻り値の型: DWORD
各言語での呼び出し定義
// RESUTILS.dll
#include <windows.h>
DWORD ResUtilVerifyPropertyTable(
const RESUTIL_PROPERTY_ITEM* pPropertyTable,
void* Reserved, // optional
BOOL bAllowUnknownProperties,
const void* pInPropertyList,
DWORD cbInPropertyListSize,
BYTE* pOutParams // optional
);[DllImport("RESUTILS.dll", ExactSpelling = true)]
static extern uint ResUtilVerifyPropertyTable(
IntPtr pPropertyTable, // RESUTIL_PROPERTY_ITEM*
IntPtr Reserved, // void* optional
bool bAllowUnknownProperties, // BOOL
IntPtr pInPropertyList, // void*
uint cbInPropertyListSize, // DWORD
IntPtr pOutParams // BYTE* optional, out
);<DllImport("RESUTILS.dll", ExactSpelling:=True)>
Public Shared Function ResUtilVerifyPropertyTable(
pPropertyTable As IntPtr, ' RESUTIL_PROPERTY_ITEM*
Reserved As IntPtr, ' void* optional
bAllowUnknownProperties As Boolean, ' BOOL
pInPropertyList As IntPtr, ' void*
cbInPropertyListSize As UInteger, ' DWORD
pOutParams As IntPtr ' BYTE* optional, out
) As UInteger
End Function' pPropertyTable : RESUTIL_PROPERTY_ITEM*
' Reserved : void* optional
' bAllowUnknownProperties : BOOL
' pInPropertyList : void*
' cbInPropertyListSize : DWORD
' pOutParams : BYTE* optional, out
Declare PtrSafe Function ResUtilVerifyPropertyTable Lib "resutils" ( _
ByVal pPropertyTable As LongPtr, _
ByVal Reserved As LongPtr, _
ByVal bAllowUnknownProperties As Long, _
ByVal pInPropertyList As LongPtr, _
ByVal cbInPropertyListSize As Long, _
ByVal pOutParams As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
ResUtilVerifyPropertyTable = ctypes.windll.resutils.ResUtilVerifyPropertyTable
ResUtilVerifyPropertyTable.restype = wintypes.DWORD
ResUtilVerifyPropertyTable.argtypes = [
ctypes.c_void_p, # pPropertyTable : RESUTIL_PROPERTY_ITEM*
ctypes.POINTER(None), # Reserved : void* optional
wintypes.BOOL, # bAllowUnknownProperties : BOOL
ctypes.POINTER(None), # pInPropertyList : void*
wintypes.DWORD, # cbInPropertyListSize : DWORD
ctypes.POINTER(ctypes.c_ubyte), # pOutParams : BYTE* optional, out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('RESUTILS.dll')
ResUtilVerifyPropertyTable = Fiddle::Function.new(
lib['ResUtilVerifyPropertyTable'],
[
Fiddle::TYPE_VOIDP, # pPropertyTable : RESUTIL_PROPERTY_ITEM*
Fiddle::TYPE_VOIDP, # Reserved : void* optional
Fiddle::TYPE_INT, # bAllowUnknownProperties : BOOL
Fiddle::TYPE_VOIDP, # pInPropertyList : void*
-Fiddle::TYPE_INT, # cbInPropertyListSize : DWORD
Fiddle::TYPE_VOIDP, # pOutParams : BYTE* optional, out
],
-Fiddle::TYPE_INT)#[link(name = "resutils")]
extern "system" {
fn ResUtilVerifyPropertyTable(
pPropertyTable: *const RESUTIL_PROPERTY_ITEM, // RESUTIL_PROPERTY_ITEM*
Reserved: *mut (), // void* optional
bAllowUnknownProperties: i32, // BOOL
pInPropertyList: *const (), // void*
cbInPropertyListSize: u32, // DWORD
pOutParams: *mut u8 // BYTE* optional, out
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("RESUTILS.dll")]
public static extern uint ResUtilVerifyPropertyTable(IntPtr pPropertyTable, IntPtr Reserved, bool bAllowUnknownProperties, IntPtr pInPropertyList, uint cbInPropertyListSize, IntPtr pOutParams);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RESUTILS_ResUtilVerifyPropertyTable' -Namespace Win32 -PassThru
# $api::ResUtilVerifyPropertyTable(pPropertyTable, Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, pOutParams)#uselib "RESUTILS.dll"
#func global ResUtilVerifyPropertyTable "ResUtilVerifyPropertyTable" sptr, sptr, sptr, sptr, sptr, sptr
; ResUtilVerifyPropertyTable varptr(pPropertyTable), Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, varptr(pOutParams) ; 戻り値は stat
; pPropertyTable : RESUTIL_PROPERTY_ITEM* -> "sptr"
; Reserved : void* optional -> "sptr"
; bAllowUnknownProperties : BOOL -> "sptr"
; pInPropertyList : void* -> "sptr"
; cbInPropertyListSize : DWORD -> "sptr"
; pOutParams : BYTE* optional, out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "RESUTILS.dll" #cfunc global ResUtilVerifyPropertyTable "ResUtilVerifyPropertyTable" var, sptr, int, sptr, int, var ; res = ResUtilVerifyPropertyTable(pPropertyTable, Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, pOutParams) ; pPropertyTable : RESUTIL_PROPERTY_ITEM* -> "var" ; Reserved : void* optional -> "sptr" ; bAllowUnknownProperties : BOOL -> "int" ; pInPropertyList : void* -> "sptr" ; cbInPropertyListSize : DWORD -> "int" ; pOutParams : BYTE* optional, out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "RESUTILS.dll" #cfunc global ResUtilVerifyPropertyTable "ResUtilVerifyPropertyTable" sptr, sptr, int, sptr, int, sptr ; res = ResUtilVerifyPropertyTable(varptr(pPropertyTable), Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, varptr(pOutParams)) ; pPropertyTable : RESUTIL_PROPERTY_ITEM* -> "sptr" ; Reserved : void* optional -> "sptr" ; bAllowUnknownProperties : BOOL -> "int" ; pInPropertyList : void* -> "sptr" ; cbInPropertyListSize : DWORD -> "int" ; pOutParams : BYTE* optional, out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; DWORD ResUtilVerifyPropertyTable(RESUTIL_PROPERTY_ITEM* pPropertyTable, void* Reserved, BOOL bAllowUnknownProperties, void* pInPropertyList, DWORD cbInPropertyListSize, BYTE* pOutParams) #uselib "RESUTILS.dll" #cfunc global ResUtilVerifyPropertyTable "ResUtilVerifyPropertyTable" var, intptr, int, intptr, int, var ; res = ResUtilVerifyPropertyTable(pPropertyTable, Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, pOutParams) ; pPropertyTable : RESUTIL_PROPERTY_ITEM* -> "var" ; Reserved : void* optional -> "intptr" ; bAllowUnknownProperties : BOOL -> "int" ; pInPropertyList : void* -> "intptr" ; cbInPropertyListSize : DWORD -> "int" ; pOutParams : BYTE* optional, out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; DWORD ResUtilVerifyPropertyTable(RESUTIL_PROPERTY_ITEM* pPropertyTable, void* Reserved, BOOL bAllowUnknownProperties, void* pInPropertyList, DWORD cbInPropertyListSize, BYTE* pOutParams) #uselib "RESUTILS.dll" #cfunc global ResUtilVerifyPropertyTable "ResUtilVerifyPropertyTable" intptr, intptr, int, intptr, int, intptr ; res = ResUtilVerifyPropertyTable(varptr(pPropertyTable), Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, varptr(pOutParams)) ; pPropertyTable : RESUTIL_PROPERTY_ITEM* -> "intptr" ; Reserved : void* optional -> "intptr" ; bAllowUnknownProperties : BOOL -> "int" ; pInPropertyList : void* -> "intptr" ; cbInPropertyListSize : DWORD -> "int" ; pOutParams : BYTE* optional, out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
resutils = windows.NewLazySystemDLL("RESUTILS.dll")
procResUtilVerifyPropertyTable = resutils.NewProc("ResUtilVerifyPropertyTable")
)
// pPropertyTable (RESUTIL_PROPERTY_ITEM*), Reserved (void* optional), bAllowUnknownProperties (BOOL), pInPropertyList (void*), cbInPropertyListSize (DWORD), pOutParams (BYTE* optional, out)
r1, _, err := procResUtilVerifyPropertyTable.Call(
uintptr(pPropertyTable),
uintptr(Reserved),
uintptr(bAllowUnknownProperties),
uintptr(pInPropertyList),
uintptr(cbInPropertyListSize),
uintptr(pOutParams),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction ResUtilVerifyPropertyTable(
pPropertyTable: Pointer; // RESUTIL_PROPERTY_ITEM*
Reserved: Pointer; // void* optional
bAllowUnknownProperties: BOOL; // BOOL
pInPropertyList: Pointer; // void*
cbInPropertyListSize: DWORD; // DWORD
pOutParams: Pointer // BYTE* optional, out
): DWORD; stdcall;
external 'RESUTILS.dll' name 'ResUtilVerifyPropertyTable';result := DllCall("RESUTILS\ResUtilVerifyPropertyTable"
, "Ptr", pPropertyTable ; RESUTIL_PROPERTY_ITEM*
, "Ptr", Reserved ; void* optional
, "Int", bAllowUnknownProperties ; BOOL
, "Ptr", pInPropertyList ; void*
, "UInt", cbInPropertyListSize ; DWORD
, "Ptr", pOutParams ; BYTE* optional, out
, "UInt") ; return: DWORD●ResUtilVerifyPropertyTable(pPropertyTable, Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, pOutParams) = DLL("RESUTILS.dll", "dword ResUtilVerifyPropertyTable(void*, void*, bool, void*, dword, void*)")
# 呼び出し: ResUtilVerifyPropertyTable(pPropertyTable, Reserved, bAllowUnknownProperties, pInPropertyList, cbInPropertyListSize, pOutParams)
# pPropertyTable : RESUTIL_PROPERTY_ITEM* -> "void*"
# Reserved : void* optional -> "void*"
# bAllowUnknownProperties : BOOL -> "bool"
# pInPropertyList : void* -> "void*"
# cbInPropertyListSize : DWORD -> "dword"
# pOutParams : BYTE* optional, out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。