Win32 API 日本語リファレンス
ホーム › UI.Shell.PropertiesSystem › PSFormatPropertyValue

PSFormatPropertyValue

関数
プロパティストアの値を表示用文字列に整形する。
DLLPROPSYS.dll呼出規約winapi対応OSWindows Vista 以降

シグネチャ

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

HRESULT PSFormatPropertyValue(
    IPropertyStore* pps,
    IPropertyDescription* ppd,
    PROPDESC_FORMAT_FLAGS pdff,
    LPWSTR* ppszDisplay
);

パラメーター

名前型方向説明
ppsIPropertyStore*inプロパティ値の取得元となるプロパティストアを表す IPropertyStore へのポインター。
ppdIPropertyDescription*in値を取得する対象のプロパティを表す IPropertyDescription へのポインター。
pdffPROPDESC_FORMAT_FLAGSinプロパティ文字列に適用する書式を指定する 1 つ以上の PROPDESC_FORMAT_FLAGS。指定できる値については PROPDESC_FORMAT_FLAGS を参照してください。
ppszDisplayLPWSTR*out関数が戻るときに、書式設定された値を null 終端の Unicode 文字列として指すポインターが格納されます。

戻り値の型: HRESULT

公式ドキュメント

プロパティストアに格納されているプロパティ値について、書式設定された Unicode 文字列表現を取得します。この関数は出力文字列用のメモリーを割り当てます。

戻り値

型: HRESULT

この関数が成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。

解説(Remarks)

この関数は ppd パラメーターを使用して IPropertyDescription::FormatForDisplay を呼び出します。その呼び出しにより、1 つ以上の PROPDESC_FORMAT_FLAGS に基づく追加の書式設定を適用した、プロパティ値の Unicode 文字列表現が得られます。

PSFormatPropertyValue を呼び出す前に、CoInitialize または OleInitialize で Component Object Model (COM) を初期化する必要があります。

この関数はメモリーを割り当て、そのメモリーへのポインターを ppszDisplay に返します。呼び出し元のアプリケーションは、ppszDisplay で指定される文字列が不要になった時点で CoTaskMemFree を使用して解放する必要があります。

この関数の目的は、データをユーザーへの表示に適した文字列に変換することです。値は、現在のロケール、ユーザーの言語、PROPDESC_FORMAT_FLAGS、およびプロパティキーで指定されるプロパティの記述 (property description) に従って書式設定されます。プロパティ記述スキーマが値の書式設定にどのように影響するかについては、次のトピックを参照してください:

            通常、<b>PROPDESC_FORMAT_FLAGS</b> はプロパティ記述で規定された書式を変更するために使用されます。
        

出力文字列には Unicode の方向制御文字が含まれることがあります。これらのゼロ幅文字は Unicode 双方向アルゴリズムに影響し、左から右 (LTR) の言語を右から左 (RTL) のウィンドウに描画する場合や、RTL を LTR のウィンドウに描画する場合でも、値が正しく表示されるようにします。これらの文字には次のものが含まれます: "\x200e", "\x200f", "\x202a", "\x202b", "\x202c", "\x202d", "\x202e".

次のプロパティは特別な書式を使用するため、PROPDESC_FORMAT_FLAGS の影響を受けません。なお、ここに挙げる例は現在のロケールを英語に設定した場合の文字列です。特に記載がない限り、出力は通常ローカライズされます。

プロパティ 書式
System.FileAttributes 次のファイル属性が文字に変換され、連結されて文字列が作成されます (たとえば、値 0x1801 (FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_COMPRESSED | FILE_ATTRIBUTE_OFFLINE) は "RCO" に変換されます):
                        <ul>
  • FILE_ATTRIBUTE_READONLY (0x00000001) - 'R'
  • FILE_ATTRIBUTE_SYSTEM (0x00000004) - 'S'
  • FILE_ATTRIBUTE_ARCHIVE (0x00000020) -'A'
  • FILE_ATTRIBUTE_COMPRESSED (0x00000800) - 'C'
  • FILE_ATTRIBUTE_ENCRYPTED (0x00004000) - 'E'
  • FILE_ATTRIBUTE_OFFLINE (0x00001000) - 'O'
  • FILE_ATTRIBUTE_NOT_CONTENT_INDEXED (0x00002000) - 'I'
  • System.Photo.ISOSpeed たとえば "ISO-400"。
    System.Photo.ShutterSpeed APEX 値は次の式で露出時間に変換されます:

    Exposure_time = 2^(-APEX_value)

    たとえば "2 sec." や "1/125 sec."。

    System.Photo.ExposureTime たとえば "2 sec." や "1/125 sec."。
    System.Photo.Aperture APEX 値は次の式で F 値に変換されます:

    F_Number = 2^(APEX_Value / 2)

    たとえば "f/5.6"。

    System.Photo.FNumber たとえば "f/5.6"。
    System.Photo.SubjectDistance たとえば "15 m" や "250 mm"。
    System.Photo.FocalLength たとえば "50 mm"。
    System.Photo.FlashEnergy たとえば "500 bpcs"。
    System.Photo.ExposureBias たとえば "-2 step"、" 0 step"、"+3 step"。
    System.Computer.DecoratedFreeSpace たとえば "105 MB free of 13.2 GB"。
    System.ItemType たとえば "Application" や "JPEG Image"。
    System.ControlPanel.Category たとえば "Appearance and Personalization"。
    System.ComputerName たとえば "LITWARE05 (this computer)" や "testbox07"。

    プロパティキーが、登録済みのいずれのプロパティスキーマにあるプロパティ記述にも対応しない場合、この関数は値の型に基づいて書式を選択します。

    値の型 書式
    VT_BOOLEAN サポートされていません。
    VT_FILETIME PROPDESC_FORMAT_FLAGS と現在のロケールで指定される日付/時刻文字列。既定値は PDFF_SHORTTIME および PDFF_SHORTDATE です。たとえば "11/13/2006 3:22 PM"。
    数値型の VARTYPE 現在のロケールでの 10 進数文字列。たとえば "42"。
    VT_LPWSTR またはその他 文字列に変換されます。"\r"、"\t"、"\n" の連続は 1 つの空白に置き換えられます。
    VT_VECTOR | 任意の型 セミコロン区切りの値。ロケールに関係なくセミコロンが使用されます。

    例

    次の例は、より大きなプログラムの一部として組み込むことを想定したもので、PSFormatPropertyValue を使用して評価 (rating) 値を書式設定する方法を示しています。

    // IPropertyStore *pStore;
    // 変数 pps は初期化済みで有効であると仮定します。
    IPropertyDescription *pPropDesc;
    
    HRESULT hr = PSGetPropertyDescription(PKEY_Rating, IID_PPV_ARGS(&pPropDesc));
    
    if (SUCCEEDED(hr))
    {
        PWSTR pszValue;
    
        hr = PSFormatPropertyValue(pStore, pPropDesc, PDFF_DEFAULT, &pszValue);
    
        if (SUCCEEDED(hr))
        {
            // pszValue には "3 stars" のような書式設定済みの文字列が格納されます。
            CoTaskMemFree(pszValue);
        }
        pPropDesc->Release();
    }
    
    出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
    Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

    各言語での呼び出し定義

    // PROPSYS.dll
    #include <windows.h>
    
    HRESULT PSFormatPropertyValue(
        IPropertyStore* pps,
        IPropertyDescription* ppd,
        PROPDESC_FORMAT_FLAGS pdff,
        LPWSTR* ppszDisplay
    );
    [DllImport("PROPSYS.dll", ExactSpelling = true)]
    static extern int PSFormatPropertyValue(
        IntPtr pps,   // IPropertyStore*
        IntPtr ppd,   // IPropertyDescription*
        int pdff,   // PROPDESC_FORMAT_FLAGS
        IntPtr ppszDisplay   // LPWSTR* out
    );
    <DllImport("PROPSYS.dll", ExactSpelling:=True)>
    Public Shared Function PSFormatPropertyValue(
        pps As IntPtr,   ' IPropertyStore*
        ppd As IntPtr,   ' IPropertyDescription*
        pdff As Integer,   ' PROPDESC_FORMAT_FLAGS
        ppszDisplay As IntPtr   ' LPWSTR* out
    ) As Integer
    End Function
    ' pps : IPropertyStore*
    ' ppd : IPropertyDescription*
    ' pdff : PROPDESC_FORMAT_FLAGS
    ' ppszDisplay : LPWSTR* out
    Declare PtrSafe Function PSFormatPropertyValue Lib "propsys" ( _
        ByVal pps As LongPtr, _
        ByVal ppd As LongPtr, _
        ByVal pdff As Long, _
        ByVal ppszDisplay As LongPtr) As Long
    ' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
    import ctypes
    from ctypes import wintypes
    
    PSFormatPropertyValue = ctypes.windll.propsys.PSFormatPropertyValue
    PSFormatPropertyValue.restype = ctypes.c_int
    PSFormatPropertyValue.argtypes = [
        ctypes.c_void_p,  # pps : IPropertyStore*
        ctypes.c_void_p,  # ppd : IPropertyDescription*
        ctypes.c_int,  # pdff : PROPDESC_FORMAT_FLAGS
        ctypes.c_void_p,  # ppszDisplay : LPWSTR* out
    ]
    require 'fiddle'
    require 'fiddle/import'
    
    lib = Fiddle.dlopen('PROPSYS.dll')
    PSFormatPropertyValue = Fiddle::Function.new(
      lib['PSFormatPropertyValue'],
      [
        Fiddle::TYPE_VOIDP,  # pps : IPropertyStore*
        Fiddle::TYPE_VOIDP,  # ppd : IPropertyDescription*
        Fiddle::TYPE_INT,  # pdff : PROPDESC_FORMAT_FLAGS
        Fiddle::TYPE_VOIDP,  # ppszDisplay : LPWSTR* out
      ],
      Fiddle::TYPE_INT)
    #[link(name = "propsys")]
    extern "system" {
        fn PSFormatPropertyValue(
            pps: *mut core::ffi::c_void,  // IPropertyStore*
            ppd: *mut core::ffi::c_void,  // IPropertyDescription*
            pdff: i32,  // PROPDESC_FORMAT_FLAGS
            ppszDisplay: *mut *mut u16  // LPWSTR* out
        ) -> i32;
    }
    // crates: windows-sys provides ready-made bindings for this API.
    $sig = @"
    [DllImport("PROPSYS.dll")]
    public static extern int PSFormatPropertyValue(IntPtr pps, IntPtr ppd, int pdff, IntPtr ppszDisplay);
    "@
    $api = Add-Type -MemberDefinition $sig -Name 'PROPSYS_PSFormatPropertyValue' -Namespace Win32 -PassThru
    # $api::PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay)
    #uselib "PROPSYS.dll"
    #func global PSFormatPropertyValue "PSFormatPropertyValue" sptr, sptr, sptr, sptr
    ; PSFormatPropertyValue pps, ppd, pdff, varptr(ppszDisplay)   ; 戻り値は stat
    ; pps : IPropertyStore* -> "sptr"
    ; ppd : IPropertyDescription* -> "sptr"
    ; pdff : PROPDESC_FORMAT_FLAGS -> "sptr"
    ; ppszDisplay : LPWSTR* out -> "sptr"
    ; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
    出力引数:
    #uselib "PROPSYS.dll"
    #cfunc global PSFormatPropertyValue "PSFormatPropertyValue" sptr, sptr, int, var
    ; res = PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay)
    ; pps : IPropertyStore* -> "sptr"
    ; ppd : IPropertyDescription* -> "sptr"
    ; pdff : PROPDESC_FORMAT_FLAGS -> "int"
    ; ppszDisplay : LPWSTR* out -> "var"
    ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
    出力引数:
    ; HRESULT PSFormatPropertyValue(IPropertyStore* pps, IPropertyDescription* ppd, PROPDESC_FORMAT_FLAGS pdff, LPWSTR* ppszDisplay)
    #uselib "PROPSYS.dll"
    #cfunc global PSFormatPropertyValue "PSFormatPropertyValue" intptr, intptr, int, var
    ; res = PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay)
    ; pps : IPropertyStore* -> "intptr"
    ; ppd : IPropertyDescription* -> "intptr"
    ; pdff : PROPDESC_FORMAT_FLAGS -> "int"
    ; ppszDisplay : LPWSTR* out -> "var"
    ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
    import (
    	"golang.org/x/sys/windows"
    	"unsafe"
    )
    
    var (
    	propsys = windows.NewLazySystemDLL("PROPSYS.dll")
    	procPSFormatPropertyValue = propsys.NewProc("PSFormatPropertyValue")
    )
    
    // pps (IPropertyStore*), ppd (IPropertyDescription*), pdff (PROPDESC_FORMAT_FLAGS), ppszDisplay (LPWSTR* out)
    r1, _, err := procPSFormatPropertyValue.Call(
    	uintptr(pps),
    	uintptr(ppd),
    	uintptr(pdff),
    	uintptr(ppszDisplay),
    )
    _ = err  // syscall.Errno (valid when the call sets last-error)
    _ = r1   // HRESULT
    function PSFormatPropertyValue(
      pps: Pointer;   // IPropertyStore*
      ppd: Pointer;   // IPropertyDescription*
      pdff: Integer;   // PROPDESC_FORMAT_FLAGS
      ppszDisplay: PPWideChar   // LPWSTR* out
    ): Integer; stdcall;
      external 'PROPSYS.dll' name 'PSFormatPropertyValue';
    result := DllCall("PROPSYS\PSFormatPropertyValue"
        , "Ptr", pps   ; IPropertyStore*
        , "Ptr", ppd   ; IPropertyDescription*
        , "Int", pdff   ; PROPDESC_FORMAT_FLAGS
        , "Ptr", ppszDisplay   ; LPWSTR* out
        , "Int")   ; return: HRESULT
    ●PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay) = DLL("PROPSYS.dll", "int PSFormatPropertyValue(void*, void*, int, void*)")
    # 呼び出し: PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay)
    # pps : IPropertyStore* -> "void*"
    # ppd : IPropertyDescription* -> "void*"
    # pdff : PROPDESC_FORMAT_FLAGS -> "int"
    # ppszDisplay : LPWSTR* out -> "void*"
    # なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
    const std = @import("std");
    
    extern "propsys" fn PSFormatPropertyValue(
        pps: ?*anyopaque, // IPropertyStore*
        ppd: ?*anyopaque, // IPropertyDescription*
        pdff: i32, // PROPDESC_FORMAT_FLAGS
        ppszDisplay: [*c][*c]u16 // LPWSTR* out
    ) callconv(std.os.windows.WINAPI) i32;
    proc PSFormatPropertyValue(
        pps: pointer,  # IPropertyStore*
        ppd: pointer,  # IPropertyDescription*
        pdff: int32,  # PROPDESC_FORMAT_FLAGS
        ppszDisplay: ptr WideCString  # LPWSTR* out
    ): int32 {.importc: "PSFormatPropertyValue", stdcall, dynlib: "PROPSYS.dll".}
    pragma(lib, "propsys");
    extern(Windows)
    int PSFormatPropertyValue(
        void* pps,   // IPropertyStore*
        void* ppd,   // IPropertyDescription*
        int pdff,   // PROPDESC_FORMAT_FLAGS
        wchar** ppszDisplay   // LPWSTR* out
    );
    ccall((:PSFormatPropertyValue, "PROPSYS.dll"), stdcall, Int32,
          (Ptr{Cvoid}, Ptr{Cvoid}, Int32, Ptr{Ptr{UInt16}}),
          pps, ppd, pdff, ppszDisplay)
    # pps : IPropertyStore* -> Ptr{Cvoid}
    # ppd : IPropertyDescription* -> Ptr{Cvoid}
    # pdff : PROPDESC_FORMAT_FLAGS -> Int32
    # ppszDisplay : LPWSTR* out -> Ptr{Ptr{UInt16}}
    # stdcall は 32bit のみ意味を持つ(x64 では無視)。
    local ffi = require("ffi")
    ffi.cdef[[
    int32_t PSFormatPropertyValue(
        void* pps,
        void* ppd,
        int32_t pdff,
        uint16_t** ppszDisplay);
    ]]
    local propsys = ffi.load("propsys")
    -- propsys.PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay)
    -- pps : IPropertyStore*
    -- ppd : IPropertyDescription*
    -- pdff : PROPDESC_FORMAT_FLAGS
    -- ppszDisplay : LPWSTR* out
    -- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
    const koffi = require('koffi');
    const lib = koffi.load('PROPSYS.dll');
    const PSFormatPropertyValue = lib.func('__stdcall', 'PSFormatPropertyValue', 'int32_t', ['void *', 'void *', 'int32_t', 'void *']);
    // PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay)
    // pps : IPropertyStore* -> 'void *'
    // ppd : IPropertyDescription* -> 'void *'
    // pdff : PROPDESC_FORMAT_FLAGS -> 'int32_t'
    // ppszDisplay : LPWSTR* out -> 'void *'
    // 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。
    const lib = Deno.dlopen("PROPSYS.dll", {
      PSFormatPropertyValue: { parameters: ["pointer", "pointer", "i32", "pointer"], result: "i32" },
    });
    // lib.symbols.PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay)
    // pps : IPropertyStore* -> "pointer"
    // ppd : IPropertyDescription* -> "pointer"
    // pdff : PROPDESC_FORMAT_FLAGS -> "i32"
    // ppszDisplay : LPWSTR* out -> "pointer"
    // 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
    // 値渡し構造体は { struct: [ ...field types... ] } を使用。
    <?php
    $ffi = FFI::cdef(<<<C
    int32_t PSFormatPropertyValue(
        void* pps,
        void* ppd,
        int32_t pdff,
        uint16_t** ppszDisplay);
    C, "PROPSYS.dll");
    // $ffi->PSFormatPropertyValue(pps, ppd, pdff, ppszDisplay);
    // pps : IPropertyStore*
    // ppd : IPropertyDescription*
    // pdff : PROPDESC_FORMAT_FLAGS
    // ppszDisplay : LPWSTR* 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 Propsys extends StdCallLibrary {
        Propsys INSTANCE = Native.load("propsys", Propsys.class);
        int PSFormatPropertyValue(
            Pointer pps,   // IPropertyStore*
            Pointer ppd,   // IPropertyDescription*
            int pdff,   // PROPDESC_FORMAT_FLAGS
            PointerByReference ppszDisplay   // LPWSTR* out
        );
    }
    @[Link("propsys")]
    lib LibPROPSYS
      fun PSFormatPropertyValue = PSFormatPropertyValue(
        pps : Void*,   # IPropertyStore*
        ppd : Void*,   # IPropertyDescription*
        pdff : Int32,   # PROPDESC_FORMAT_FLAGS
        ppszDisplay : UInt16**   # LPWSTR* out
      ) : Int32
    end
    # 構造体/GUID/enum は lib 内に対応する型定義が必要。
    # 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。
    import 'dart:ffi';
    import 'package:ffi/ffi.dart';
    
    typedef PSFormatPropertyValueNative = Int32 Function(Pointer<Void>, Pointer<Void>, Int32, Pointer<Pointer<Utf16>>);
    typedef PSFormatPropertyValueDart = int Function(Pointer<Void>, Pointer<Void>, int, Pointer<Pointer<Utf16>>);
    final PSFormatPropertyValue = DynamicLibrary.open('PROPSYS.dll')
        .lookupFunction<PSFormatPropertyValueNative, PSFormatPropertyValueDart>('PSFormatPropertyValue');
    // pps : IPropertyStore* -> Pointer<Void>
    // ppd : IPropertyDescription* -> Pointer<Void>
    // pdff : PROPDESC_FORMAT_FLAGS -> Int32
    // ppszDisplay : LPWSTR* out -> Pointer<Pointer<Utf16>>
    // 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。
    {$mode objfpc}{$H+}
    function PSFormatPropertyValue(
      pps: Pointer;   // IPropertyStore*
      ppd: Pointer;   // IPropertyDescription*
      pdff: Integer;   // PROPDESC_FORMAT_FLAGS
      ppszDisplay: PPWideChar   // LPWSTR* out
    ): Integer; stdcall;
      external 'PROPSYS.dll' name 'PSFormatPropertyValue';
    import Foreign
    import Foreign.C.Types
    import Foreign.C.String
    
    foreign import stdcall safe "PSFormatPropertyValue"
      c_PSFormatPropertyValue :: Ptr () -> Ptr () -> Int32 -> Ptr CWString -> IO Int32
    -- pps : IPropertyStore* -> Ptr ()
    -- ppd : IPropertyDescription* -> Ptr ()
    -- pdff : PROPDESC_FORMAT_FLAGS -> Int32
    -- ppszDisplay : LPWSTR* out -> Ptr CWString
    -- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。
    open Ctypes
    open Foreign
    
    let psformatpropertyvalue =
      foreign "PSFormatPropertyValue"
        ((ptr void) @-> (ptr void) @-> int32_t @-> (ptr (ptr uint16_t)) @-> returning int32_t)
    (* pps : IPropertyStore* -> (ptr void) *)
    (* ppd : IPropertyDescription* -> (ptr void) *)
    (* pdff : PROPDESC_FORMAT_FLAGS -> int32_t *)
    (* ppszDisplay : LPWSTR* out -> (ptr (ptr uint16_t)) *)
    (* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)
    (cffi:define-foreign-library propsys (t "PROPSYS.dll"))
    (cffi:use-foreign-library propsys)
    
    (cffi:defcfun ("PSFormatPropertyValue" psformat-property-value :convention :stdcall) :int32
      (pps :pointer)   ; IPropertyStore*
      (ppd :pointer)   ; IPropertyDescription*
      (pdff :int32)   ; PROPDESC_FORMAT_FLAGS
      (ppsz-display :pointer))   ; LPWSTR* out
    ; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。
    use Win32::API;
    my $PSFormatPropertyValue = Win32::API::More->new('PROPSYS',
        'int PSFormatPropertyValue(LPVOID pps, LPVOID ppd, int pdff, LPVOID ppszDisplay)');
    # my $ret = $PSFormatPropertyValue->Call($pps, $ppd, $pdff, $ppszDisplay);
    # pps : IPropertyStore* -> LPVOID
    # ppd : IPropertyDescription* -> LPVOID
    # pdff : PROPDESC_FORMAT_FLAGS -> int
    # ppszDisplay : LPWSTR* out -> LPVOID
    # 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。

    関連項目

    公式の関連項目
    使用する型