Win32 API 日本語リファレンス
ホームNetworking.Clustering › ResUtilGetDwordProperty

ResUtilGetDwordProperty

関数
範囲チェック付きでDWORDプロパティ値を取得する。
DLLRESUTILS.dll呼出規約winapi対応OSwindowsserver2008

シグネチャ

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

DWORD ResUtilGetDwordProperty(
    DWORD* pdwOutValue,
    const CLUSPROP_DWORD* pValueStruct,
    DWORD dwOldValue,
    DWORD dwMinimum,
    DWORD dwMaximum,
    BYTE** ppPropertyList,
    DWORD* pcbPropertyListSize
);

パラメーター

名前方向説明
pdwOutValueDWORD*inout取得したDWORD値を受け取る変数へのポインター。
pValueStructCLUSPROP_DWORD*inプロパティリスト内のDWORD値構造体(CLUSPROP_DWORD)へのポインター。
dwOldValueDWORDinプロパティが存在しない場合に用いる既定のDWORD値。
dwMinimumDWORDin許容される値の下限。これ未満は範囲外として扱われる。
dwMaximumDWORDin許容される値の上限。これを超える値は範囲外として扱われる。
ppPropertyListBYTE**inout解析対象のプロパティリスト先頭へのポインターのアドレス。解析後に位置が進む。
pcbPropertyListSizeDWORD*inout残りプロパティリストのバイト数を受け取る変数へのポインター。解析に伴い減少する。

戻り値の型: DWORD

各言語での呼び出し定義

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

DWORD ResUtilGetDwordProperty(
    DWORD* pdwOutValue,
    const CLUSPROP_DWORD* pValueStruct,
    DWORD dwOldValue,
    DWORD dwMinimum,
    DWORD dwMaximum,
    BYTE** ppPropertyList,
    DWORD* pcbPropertyListSize
);
[DllImport("RESUTILS.dll", ExactSpelling = true)]
static extern uint ResUtilGetDwordProperty(
    ref uint pdwOutValue,   // DWORD* in/out
    IntPtr pValueStruct,   // CLUSPROP_DWORD*
    uint dwOldValue,   // DWORD
    uint dwMinimum,   // DWORD
    uint dwMaximum,   // DWORD
    IntPtr ppPropertyList,   // BYTE** in/out
    ref uint pcbPropertyListSize   // DWORD* in/out
);
<DllImport("RESUTILS.dll", ExactSpelling:=True)>
Public Shared Function ResUtilGetDwordProperty(
    ByRef pdwOutValue As UInteger,   ' DWORD* in/out
    pValueStruct As IntPtr,   ' CLUSPROP_DWORD*
    dwOldValue As UInteger,   ' DWORD
    dwMinimum As UInteger,   ' DWORD
    dwMaximum As UInteger,   ' DWORD
    ppPropertyList As IntPtr,   ' BYTE** in/out
    ByRef pcbPropertyListSize As UInteger   ' DWORD* in/out
) As UInteger
End Function
' pdwOutValue : DWORD* in/out
' pValueStruct : CLUSPROP_DWORD*
' dwOldValue : DWORD
' dwMinimum : DWORD
' dwMaximum : DWORD
' ppPropertyList : BYTE** in/out
' pcbPropertyListSize : DWORD* in/out
Declare PtrSafe Function ResUtilGetDwordProperty Lib "resutils" ( _
    ByRef pdwOutValue As Long, _
    ByVal pValueStruct As LongPtr, _
    ByVal dwOldValue As Long, _
    ByVal dwMinimum As Long, _
    ByVal dwMaximum As Long, _
    ByVal ppPropertyList As LongPtr, _
    ByRef pcbPropertyListSize As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

ResUtilGetDwordProperty = ctypes.windll.resutils.ResUtilGetDwordProperty
ResUtilGetDwordProperty.restype = wintypes.DWORD
ResUtilGetDwordProperty.argtypes = [
    ctypes.POINTER(wintypes.DWORD),  # pdwOutValue : DWORD* in/out
    ctypes.c_void_p,  # pValueStruct : CLUSPROP_DWORD*
    wintypes.DWORD,  # dwOldValue : DWORD
    wintypes.DWORD,  # dwMinimum : DWORD
    wintypes.DWORD,  # dwMaximum : DWORD
    ctypes.c_void_p,  # ppPropertyList : BYTE** in/out
    ctypes.POINTER(wintypes.DWORD),  # pcbPropertyListSize : DWORD* in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('RESUTILS.dll')
ResUtilGetDwordProperty = Fiddle::Function.new(
  lib['ResUtilGetDwordProperty'],
  [
    Fiddle::TYPE_VOIDP,  # pdwOutValue : DWORD* in/out
    Fiddle::TYPE_VOIDP,  # pValueStruct : CLUSPROP_DWORD*
    -Fiddle::TYPE_INT,  # dwOldValue : DWORD
    -Fiddle::TYPE_INT,  # dwMinimum : DWORD
    -Fiddle::TYPE_INT,  # dwMaximum : DWORD
    Fiddle::TYPE_VOIDP,  # ppPropertyList : BYTE** in/out
    Fiddle::TYPE_VOIDP,  # pcbPropertyListSize : DWORD* in/out
  ],
  -Fiddle::TYPE_INT)
#[link(name = "resutils")]
extern "system" {
    fn ResUtilGetDwordProperty(
        pdwOutValue: *mut u32,  // DWORD* in/out
        pValueStruct: *const CLUSPROP_DWORD,  // CLUSPROP_DWORD*
        dwOldValue: u32,  // DWORD
        dwMinimum: u32,  // DWORD
        dwMaximum: u32,  // DWORD
        ppPropertyList: *mut *mut u8,  // BYTE** in/out
        pcbPropertyListSize: *mut u32  // DWORD* in/out
    ) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("RESUTILS.dll")]
public static extern uint ResUtilGetDwordProperty(ref uint pdwOutValue, IntPtr pValueStruct, uint dwOldValue, uint dwMinimum, uint dwMaximum, IntPtr ppPropertyList, ref uint pcbPropertyListSize);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RESUTILS_ResUtilGetDwordProperty' -Namespace Win32 -PassThru
# $api::ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
#uselib "RESUTILS.dll"
#func global ResUtilGetDwordProperty "ResUtilGetDwordProperty" sptr, sptr, sptr, sptr, sptr, sptr, sptr
; ResUtilGetDwordProperty varptr(pdwOutValue), varptr(pValueStruct), dwOldValue, dwMinimum, dwMaximum, varptr(ppPropertyList), varptr(pcbPropertyListSize)   ; 戻り値は stat
; pdwOutValue : DWORD* in/out -> "sptr"
; pValueStruct : CLUSPROP_DWORD* -> "sptr"
; dwOldValue : DWORD -> "sptr"
; dwMinimum : DWORD -> "sptr"
; dwMaximum : DWORD -> "sptr"
; ppPropertyList : BYTE** in/out -> "sptr"
; pcbPropertyListSize : DWORD* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
出力引数:
#uselib "RESUTILS.dll"
#cfunc global ResUtilGetDwordProperty "ResUtilGetDwordProperty" var, var, int, int, int, var, var
; res = ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
; pdwOutValue : DWORD* in/out -> "var"
; pValueStruct : CLUSPROP_DWORD* -> "var"
; dwOldValue : DWORD -> "int"
; dwMinimum : DWORD -> "int"
; dwMaximum : DWORD -> "int"
; ppPropertyList : BYTE** in/out -> "var"
; pcbPropertyListSize : DWORD* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; DWORD ResUtilGetDwordProperty(DWORD* pdwOutValue, CLUSPROP_DWORD* pValueStruct, DWORD dwOldValue, DWORD dwMinimum, DWORD dwMaximum, BYTE** ppPropertyList, DWORD* pcbPropertyListSize)
#uselib "RESUTILS.dll"
#cfunc global ResUtilGetDwordProperty "ResUtilGetDwordProperty" var, var, int, int, int, var, var
; res = ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
; pdwOutValue : DWORD* in/out -> "var"
; pValueStruct : CLUSPROP_DWORD* -> "var"
; dwOldValue : DWORD -> "int"
; dwMinimum : DWORD -> "int"
; dwMaximum : DWORD -> "int"
; ppPropertyList : BYTE** in/out -> "var"
; pcbPropertyListSize : DWORD* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	resutils = windows.NewLazySystemDLL("RESUTILS.dll")
	procResUtilGetDwordProperty = resutils.NewProc("ResUtilGetDwordProperty")
)

// pdwOutValue (DWORD* in/out), pValueStruct (CLUSPROP_DWORD*), dwOldValue (DWORD), dwMinimum (DWORD), dwMaximum (DWORD), ppPropertyList (BYTE** in/out), pcbPropertyListSize (DWORD* in/out)
r1, _, err := procResUtilGetDwordProperty.Call(
	uintptr(pdwOutValue),
	uintptr(pValueStruct),
	uintptr(dwOldValue),
	uintptr(dwMinimum),
	uintptr(dwMaximum),
	uintptr(ppPropertyList),
	uintptr(pcbPropertyListSize),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // DWORD
function ResUtilGetDwordProperty(
  pdwOutValue: Pointer;   // DWORD* in/out
  pValueStruct: Pointer;   // CLUSPROP_DWORD*
  dwOldValue: DWORD;   // DWORD
  dwMinimum: DWORD;   // DWORD
  dwMaximum: DWORD;   // DWORD
  ppPropertyList: Pointer;   // BYTE** in/out
  pcbPropertyListSize: Pointer   // DWORD* in/out
): DWORD; stdcall;
  external 'RESUTILS.dll' name 'ResUtilGetDwordProperty';
result := DllCall("RESUTILS\ResUtilGetDwordProperty"
    , "Ptr", pdwOutValue   ; DWORD* in/out
    , "Ptr", pValueStruct   ; CLUSPROP_DWORD*
    , "UInt", dwOldValue   ; DWORD
    , "UInt", dwMinimum   ; DWORD
    , "UInt", dwMaximum   ; DWORD
    , "Ptr", ppPropertyList   ; BYTE** in/out
    , "Ptr", pcbPropertyListSize   ; DWORD* in/out
    , "UInt")   ; return: DWORD
●ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize) = DLL("RESUTILS.dll", "dword ResUtilGetDwordProperty(void*, void*, dword, dword, dword, void*, void*)")
# 呼び出し: ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
# pdwOutValue : DWORD* in/out -> "void*"
# pValueStruct : CLUSPROP_DWORD* -> "void*"
# dwOldValue : DWORD -> "dword"
# dwMinimum : DWORD -> "dword"
# dwMaximum : DWORD -> "dword"
# ppPropertyList : BYTE** in/out -> "void*"
# pcbPropertyListSize : DWORD* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
const std = @import("std");

extern "resutils" fn ResUtilGetDwordProperty(
    pdwOutValue: [*c]u32, // DWORD* in/out
    pValueStruct: [*c]CLUSPROP_DWORD, // CLUSPROP_DWORD*
    dwOldValue: u32, // DWORD
    dwMinimum: u32, // DWORD
    dwMaximum: u32, // DWORD
    ppPropertyList: [*c][*c]u8, // BYTE** in/out
    pcbPropertyListSize: [*c]u32 // DWORD* in/out
) callconv(std.os.windows.WINAPI) u32;
proc ResUtilGetDwordProperty(
    pdwOutValue: ptr uint32,  # DWORD* in/out
    pValueStruct: ptr CLUSPROP_DWORD,  # CLUSPROP_DWORD*
    dwOldValue: uint32,  # DWORD
    dwMinimum: uint32,  # DWORD
    dwMaximum: uint32,  # DWORD
    ppPropertyList: ptr uint8,  # BYTE** in/out
    pcbPropertyListSize: ptr uint32  # DWORD* in/out
): uint32 {.importc: "ResUtilGetDwordProperty", stdcall, dynlib: "RESUTILS.dll".}
pragma(lib, "resutils");
extern(Windows)
uint ResUtilGetDwordProperty(
    uint* pdwOutValue,   // DWORD* in/out
    CLUSPROP_DWORD* pValueStruct,   // CLUSPROP_DWORD*
    uint dwOldValue,   // DWORD
    uint dwMinimum,   // DWORD
    uint dwMaximum,   // DWORD
    ubyte** ppPropertyList,   // BYTE** in/out
    uint* pcbPropertyListSize   // DWORD* in/out
);
ccall((:ResUtilGetDwordProperty, "RESUTILS.dll"), stdcall, UInt32,
      (Ptr{UInt32}, Ptr{CLUSPROP_DWORD}, UInt32, UInt32, UInt32, Ptr{UInt8}, Ptr{UInt32}),
      pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
# pdwOutValue : DWORD* in/out -> Ptr{UInt32}
# pValueStruct : CLUSPROP_DWORD* -> Ptr{CLUSPROP_DWORD}
# dwOldValue : DWORD -> UInt32
# dwMinimum : DWORD -> UInt32
# dwMaximum : DWORD -> UInt32
# ppPropertyList : BYTE** in/out -> Ptr{UInt8}
# pcbPropertyListSize : DWORD* in/out -> Ptr{UInt32}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
local ffi = require("ffi")
ffi.cdef[[
uint32_t ResUtilGetDwordProperty(
    uint32_t* pdwOutValue,
    void* pValueStruct,
    uint32_t dwOldValue,
    uint32_t dwMinimum,
    uint32_t dwMaximum,
    uint8_t** ppPropertyList,
    uint32_t* pcbPropertyListSize);
]]
local resutils = ffi.load("resutils")
-- resutils.ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
-- pdwOutValue : DWORD* in/out
-- pValueStruct : CLUSPROP_DWORD*
-- dwOldValue : DWORD
-- dwMinimum : DWORD
-- dwMaximum : DWORD
-- ppPropertyList : BYTE** in/out
-- pcbPropertyListSize : DWORD* in/out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
const koffi = require('koffi');
const lib = koffi.load('RESUTILS.dll');
const ResUtilGetDwordProperty = lib.func('__stdcall', 'ResUtilGetDwordProperty', 'uint32_t', ['uint32_t *', 'void *', 'uint32_t', 'uint32_t', 'uint32_t', 'uint8_t *', 'uint32_t *']);
// ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
// pdwOutValue : DWORD* in/out -> 'uint32_t *'
// pValueStruct : CLUSPROP_DWORD* -> 'void *'
// dwOldValue : DWORD -> 'uint32_t'
// dwMinimum : DWORD -> 'uint32_t'
// dwMaximum : DWORD -> 'uint32_t'
// ppPropertyList : BYTE** in/out -> 'uint8_t *'
// pcbPropertyListSize : DWORD* in/out -> 'uint32_t *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
const lib = Deno.dlopen("RESUTILS.dll", {
  ResUtilGetDwordProperty: { parameters: ["pointer", "pointer", "u32", "u32", "u32", "pointer", "pointer"], result: "u32" },
});
// lib.symbols.ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize)
// pdwOutValue : DWORD* in/out -> "pointer"
// pValueStruct : CLUSPROP_DWORD* -> "pointer"
// dwOldValue : DWORD -> "u32"
// dwMinimum : DWORD -> "u32"
// dwMaximum : DWORD -> "u32"
// ppPropertyList : BYTE** in/out -> "pointer"
// pcbPropertyListSize : DWORD* in/out -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。
<?php
$ffi = FFI::cdef(<<<C
uint32_t ResUtilGetDwordProperty(
    uint32_t* pdwOutValue,
    void* pValueStruct,
    uint32_t dwOldValue,
    uint32_t dwMinimum,
    uint32_t dwMaximum,
    uint8_t** ppPropertyList,
    uint32_t* pcbPropertyListSize);
C, "RESUTILS.dll");
// $ffi->ResUtilGetDwordProperty(pdwOutValue, pValueStruct, dwOldValue, dwMinimum, dwMaximum, ppPropertyList, pcbPropertyListSize);
// pdwOutValue : DWORD* in/out
// pValueStruct : CLUSPROP_DWORD*
// dwOldValue : DWORD
// dwMinimum : DWORD
// dwMaximum : DWORD
// ppPropertyList : BYTE** in/out
// pcbPropertyListSize : DWORD* in/out
// 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
// WINAPI(stdcall): x64 では呼出規約が統一されるため問題なし。x86 では __stdcall 対応のラッパが必要な場合あり。
import com.sun.jna.*;
import com.sun.jna.ptr.*;
import com.sun.jna.win32.StdCallLibrary;
import com.sun.jna.win32.W32APIOptions;

public interface Resutils extends StdCallLibrary {
    Resutils INSTANCE = Native.load("resutils", Resutils.class);
    int ResUtilGetDwordProperty(
        IntByReference pdwOutValue,   // DWORD* in/out
        Pointer pValueStruct,   // CLUSPROP_DWORD*
        int dwOldValue,   // DWORD
        int dwMinimum,   // DWORD
        int dwMaximum,   // DWORD
        Pointer ppPropertyList,   // BYTE** in/out
        IntByReference pcbPropertyListSize   // DWORD* in/out
    );
}
@[Link("resutils")]
lib LibRESUTILS
  fun ResUtilGetDwordProperty = ResUtilGetDwordProperty(
    pdwOutValue : UInt32*,   # DWORD* in/out
    pValueStruct : CLUSPROP_DWORD*,   # CLUSPROP_DWORD*
    dwOldValue : UInt32,   # DWORD
    dwMinimum : UInt32,   # DWORD
    dwMaximum : UInt32,   # DWORD
    ppPropertyList : UInt8**,   # BYTE** in/out
    pcbPropertyListSize : UInt32*   # DWORD* in/out
  ) : UInt32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
import 'dart:ffi';
import 'package:ffi/ffi.dart';

typedef ResUtilGetDwordPropertyNative = Uint32 Function(Pointer<Uint32>, Pointer<Void>, Uint32, Uint32, Uint32, Pointer<Uint8>, Pointer<Uint32>);
typedef ResUtilGetDwordPropertyDart = int Function(Pointer<Uint32>, Pointer<Void>, int, int, int, Pointer<Uint8>, Pointer<Uint32>);
final ResUtilGetDwordProperty = DynamicLibrary.open('RESUTILS.dll')
    .lookupFunction<ResUtilGetDwordPropertyNative, ResUtilGetDwordPropertyDart>('ResUtilGetDwordProperty');
// pdwOutValue : DWORD* in/out -> Pointer<Uint32>
// pValueStruct : CLUSPROP_DWORD* -> Pointer<Void>
// dwOldValue : DWORD -> Uint32
// dwMinimum : DWORD -> Uint32
// dwMaximum : DWORD -> Uint32
// ppPropertyList : BYTE** in/out -> Pointer<Uint8>
// pcbPropertyListSize : DWORD* in/out -> Pointer<Uint32>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
{$mode objfpc}{$H+}
function ResUtilGetDwordProperty(
  pdwOutValue: Pointer;   // DWORD* in/out
  pValueStruct: Pointer;   // CLUSPROP_DWORD*
  dwOldValue: DWORD;   // DWORD
  dwMinimum: DWORD;   // DWORD
  dwMaximum: DWORD;   // DWORD
  ppPropertyList: Pointer;   // BYTE** in/out
  pcbPropertyListSize: Pointer   // DWORD* in/out
): DWORD; stdcall;
  external 'RESUTILS.dll' name 'ResUtilGetDwordProperty';
import Foreign
import Foreign.C.Types
import Foreign.C.String

foreign import stdcall safe "ResUtilGetDwordProperty"
  c_ResUtilGetDwordProperty :: Ptr Word32 -> Ptr () -> Word32 -> Word32 -> Word32 -> Ptr Word8 -> Ptr Word32 -> IO Word32
-- pdwOutValue : DWORD* in/out -> Ptr Word32
-- pValueStruct : CLUSPROP_DWORD* -> Ptr ()
-- dwOldValue : DWORD -> Word32
-- dwMinimum : DWORD -> Word32
-- dwMaximum : DWORD -> Word32
-- ppPropertyList : BYTE** in/out -> Ptr Word8
-- pcbPropertyListSize : DWORD* in/out -> Ptr Word32
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
open Ctypes
open Foreign

let resutilgetdwordproperty =
  foreign "ResUtilGetDwordProperty"
    ((ptr uint32_t) @-> (ptr void) @-> uint32_t @-> uint32_t @-> uint32_t @-> (ptr uint8_t) @-> (ptr uint32_t) @-> returning uint32_t)
(* pdwOutValue : DWORD* in/out -> (ptr uint32_t) *)
(* pValueStruct : CLUSPROP_DWORD* -> (ptr void) *)
(* dwOldValue : DWORD -> uint32_t *)
(* dwMinimum : DWORD -> uint32_t *)
(* dwMaximum : DWORD -> uint32_t *)
(* ppPropertyList : BYTE** in/out -> (ptr uint8_t) *)
(* pcbPropertyListSize : DWORD* in/out -> (ptr uint32_t) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
(cffi:define-foreign-library resutils (t "RESUTILS.dll"))
(cffi:use-foreign-library resutils)

(cffi:defcfun ("ResUtilGetDwordProperty" res-util-get-dword-property :convention :stdcall) :uint32
  (pdw-out-value :pointer)   ; DWORD* in/out
  (p-value-struct :pointer)   ; CLUSPROP_DWORD*
  (dw-old-value :uint32)   ; DWORD
  (dw-minimum :uint32)   ; DWORD
  (dw-maximum :uint32)   ; DWORD
  (pp-property-list :pointer)   ; BYTE** in/out
  (pcb-property-list-size :pointer))   ; DWORD* in/out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
use Win32::API;
my $ResUtilGetDwordProperty = Win32::API::More->new('RESUTILS',
    'DWORD ResUtilGetDwordProperty(LPVOID pdwOutValue, LPVOID pValueStruct, DWORD dwOldValue, DWORD dwMinimum, DWORD dwMaximum, LPVOID ppPropertyList, LPVOID pcbPropertyListSize)');
# my $ret = $ResUtilGetDwordProperty->Call($pdwOutValue, $pValueStruct, $dwOldValue, $dwMinimum, $dwMaximum, $ppPropertyList, $pcbPropertyListSize);
# pdwOutValue : DWORD* in/out -> LPVOID
# pValueStruct : CLUSPROP_DWORD* -> LPVOID
# dwOldValue : DWORD -> DWORD
# dwMinimum : DWORD -> DWORD
# dwMaximum : DWORD -> DWORD
# ppPropertyList : BYTE** in/out -> LPVOID
# pcbPropertyListSize : DWORD* in/out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

関連項目

使用する型