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