ホーム › System.ApplicationInstallationAndServicing › MsiEnumPatchesA
MsiEnumPatchesA
関数製品に適用されたパッチを列挙する(ANSI版)。
シグネチャ
// msi.dll (ANSI / -A)
#include <windows.h>
DWORD MsiEnumPatchesA(
LPCSTR szProduct,
DWORD iPatchIndex,
LPSTR lpPatchBuf,
LPSTR lpTransformsBuf,
DWORD* pcchTransformsBuf
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| szProduct | LPCSTR | in | パッチを列挙する対象の製品の製品コードを指定します。 |
| iPatchIndex | DWORD | in | 取得するパッチのインデックスを指定します。このパラメーターは、 MsiEnumPatches 関数の最初の呼び出しではゼロにし、以降の呼び出しでは値を増加させます。 |
| lpPatchBuf | LPSTR | out | パッチの GUID を受け取るバッファーへのポインターです。この引数は必須です。 |
| lpTransformsBuf | LPSTR | out | パッチ内の、製品に適用可能なトランスフォームの一覧を受け取るバッファーへのポインターです。この引数は必須であり、Null にすることはできません。 |
| pcchTransformsBuf | DWORD* | inout | 関数が失敗して返った場合に、lpTransformsBuf にコピーされた文字数が設定されます。正常に返った場合は設定されません。入力時には、終端の null 文字分の領域を含むバッファー全体のサイズを指定します。渡されたバッファーが小さすぎる場合、返される文字数には終端の null 文字は含まれません。 |
戻り値の型: DWORD
公式ドキュメント
MsiEnumPatches 関数は、製品に適用されたすべてのパッチを列挙します。(ANSI)
戻り値
| Value | Meaning |
|---|---|
| 構成データが破損しています。 | |
| 無効なパラメーターが関数に渡されました。 | |
| 返すパッチがありません。 | |
| 値が列挙されました。 | |
| バッファーが小さすぎて、要求されたデータを格納できません。 |
解説(Remarks)
パッチを列挙するには、アプリケーションはまず iPatchIndex パラメーターをゼロに設定して MsiEnumPatches 関数を呼び出します。その後、iPatchIndex パラメーターの値を増加させながら、製品がなくなるまで(関数が ERROR_NO_MORE_ITEMS を返すまで) MsiEnumPatches を呼び出します。
バッファーが小さすぎて要求されたデータを格納できない場合、 MsiEnumPatches は ERROR_MORE_DATA を返し、pcchTransformsBuf には Null 文字を除いた、lpTransformsBuf にコピーされた文字数が格納されます。
メモ
msi.h ヘッダーは、UNICODE プリプロセッサ定数の定義に基づいて、この関数の ANSI 版と Unicode 版を自動的に選択するエイリアスとして MsiEnumPatches を定義します。エンコーディング非依存のエイリアスの使用と、エンコーディング非依存ではないコードを混在させると、不一致が生じてコンパイルエラーや実行時エラーを引き起こす可能性があります。詳細については、Conventions for Function Prototypes を参照してください。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での呼び出し定義
// msi.dll (ANSI / -A)
#include <windows.h>
DWORD MsiEnumPatchesA(
LPCSTR szProduct,
DWORD iPatchIndex,
LPSTR lpPatchBuf,
LPSTR lpTransformsBuf,
DWORD* pcchTransformsBuf
);[DllImport("msi.dll", CharSet = CharSet.Ansi, ExactSpelling = true)]
static extern uint MsiEnumPatchesA(
[MarshalAs(UnmanagedType.LPStr)] string szProduct, // LPCSTR
uint iPatchIndex, // DWORD
[MarshalAs(UnmanagedType.LPStr)] System.Text.StringBuilder lpPatchBuf, // LPSTR out
[MarshalAs(UnmanagedType.LPStr)] System.Text.StringBuilder lpTransformsBuf, // LPSTR out
ref uint pcchTransformsBuf // DWORD* in/out
);<DllImport("msi.dll", CharSet:=CharSet.Ansi, ExactSpelling:=True)>
Public Shared Function MsiEnumPatchesA(
<MarshalAs(UnmanagedType.LPStr)> szProduct As String, ' LPCSTR
iPatchIndex As UInteger, ' DWORD
<MarshalAs(UnmanagedType.LPStr)> lpPatchBuf As System.Text.StringBuilder, ' LPSTR out
<MarshalAs(UnmanagedType.LPStr)> lpTransformsBuf As System.Text.StringBuilder, ' LPSTR out
ByRef pcchTransformsBuf As UInteger ' DWORD* in/out
) As UInteger
End Function' szProduct : LPCSTR
' iPatchIndex : DWORD
' lpPatchBuf : LPSTR out
' lpTransformsBuf : LPSTR out
' pcchTransformsBuf : DWORD* in/out
Declare PtrSafe Function MsiEnumPatchesA Lib "msi" ( _
ByVal szProduct As String, _
ByVal iPatchIndex As Long, _
ByVal lpPatchBuf As String, _
ByVal lpTransformsBuf As String, _
ByRef pcchTransformsBuf As Long) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
MsiEnumPatchesA = ctypes.windll.msi.MsiEnumPatchesA
MsiEnumPatchesA.restype = wintypes.DWORD
MsiEnumPatchesA.argtypes = [
wintypes.LPCSTR, # szProduct : LPCSTR
wintypes.DWORD, # iPatchIndex : DWORD
wintypes.LPSTR, # lpPatchBuf : LPSTR out
wintypes.LPSTR, # lpTransformsBuf : LPSTR out
ctypes.POINTER(wintypes.DWORD), # pcchTransformsBuf : DWORD* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('msi.dll')
MsiEnumPatchesA = Fiddle::Function.new(
lib['MsiEnumPatchesA'],
[
Fiddle::TYPE_VOIDP, # szProduct : LPCSTR
-Fiddle::TYPE_INT, # iPatchIndex : DWORD
Fiddle::TYPE_VOIDP, # lpPatchBuf : LPSTR out
Fiddle::TYPE_VOIDP, # lpTransformsBuf : LPSTR out
Fiddle::TYPE_VOIDP, # pcchTransformsBuf : DWORD* in/out
],
-Fiddle::TYPE_INT)#[link(name = "msi")]
extern "system" {
fn MsiEnumPatchesA(
szProduct: *const u8, // LPCSTR
iPatchIndex: u32, // DWORD
lpPatchBuf: *mut u8, // LPSTR out
lpTransformsBuf: *mut u8, // LPSTR out
pcchTransformsBuf: *mut u32 // DWORD* in/out
) -> u32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("msi.dll", CharSet = CharSet.Ansi)]
public static extern uint MsiEnumPatchesA([MarshalAs(UnmanagedType.LPStr)] string szProduct, uint iPatchIndex, [MarshalAs(UnmanagedType.LPStr)] System.Text.StringBuilder lpPatchBuf, [MarshalAs(UnmanagedType.LPStr)] System.Text.StringBuilder lpTransformsBuf, ref uint pcchTransformsBuf);
"@
$api = Add-Type -MemberDefinition $sig -Name 'msi_MsiEnumPatchesA' -Namespace Win32 -PassThru
# $api::MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf)#uselib "msi.dll"
#func global MsiEnumPatchesA "MsiEnumPatchesA" sptr, sptr, sptr, sptr, sptr
; MsiEnumPatchesA szProduct, iPatchIndex, varptr(lpPatchBuf), varptr(lpTransformsBuf), varptr(pcchTransformsBuf) ; 戻り値は stat
; szProduct : LPCSTR -> "sptr"
; iPatchIndex : DWORD -> "sptr"
; lpPatchBuf : LPSTR out -> "sptr"
; lpTransformsBuf : LPSTR out -> "sptr"
; pcchTransformsBuf : DWORD* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "msi.dll" #cfunc global MsiEnumPatchesA "MsiEnumPatchesA" str, int, var, var, var ; res = MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf) ; szProduct : LPCSTR -> "str" ; iPatchIndex : DWORD -> "int" ; lpPatchBuf : LPSTR out -> "var" ; lpTransformsBuf : LPSTR out -> "var" ; pcchTransformsBuf : DWORD* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "msi.dll" #cfunc global MsiEnumPatchesA "MsiEnumPatchesA" str, int, sptr, sptr, sptr ; res = MsiEnumPatchesA(szProduct, iPatchIndex, varptr(lpPatchBuf), varptr(lpTransformsBuf), varptr(pcchTransformsBuf)) ; szProduct : LPCSTR -> "str" ; iPatchIndex : DWORD -> "int" ; lpPatchBuf : LPSTR out -> "sptr" ; lpTransformsBuf : LPSTR out -> "sptr" ; pcchTransformsBuf : DWORD* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; DWORD MsiEnumPatchesA(LPCSTR szProduct, DWORD iPatchIndex, LPSTR lpPatchBuf, LPSTR lpTransformsBuf, DWORD* pcchTransformsBuf) #uselib "msi.dll" #cfunc global MsiEnumPatchesA "MsiEnumPatchesA" str, int, var, var, var ; res = MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf) ; szProduct : LPCSTR -> "str" ; iPatchIndex : DWORD -> "int" ; lpPatchBuf : LPSTR out -> "var" ; lpTransformsBuf : LPSTR out -> "var" ; pcchTransformsBuf : DWORD* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; DWORD MsiEnumPatchesA(LPCSTR szProduct, DWORD iPatchIndex, LPSTR lpPatchBuf, LPSTR lpTransformsBuf, DWORD* pcchTransformsBuf) #uselib "msi.dll" #cfunc global MsiEnumPatchesA "MsiEnumPatchesA" str, int, intptr, intptr, intptr ; res = MsiEnumPatchesA(szProduct, iPatchIndex, varptr(lpPatchBuf), varptr(lpTransformsBuf), varptr(pcchTransformsBuf)) ; szProduct : LPCSTR -> "str" ; iPatchIndex : DWORD -> "int" ; lpPatchBuf : LPSTR out -> "intptr" ; lpTransformsBuf : LPSTR out -> "intptr" ; pcchTransformsBuf : DWORD* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
msi = windows.NewLazySystemDLL("msi.dll")
procMsiEnumPatchesA = msi.NewProc("MsiEnumPatchesA")
)
// szProduct (LPCSTR), iPatchIndex (DWORD), lpPatchBuf (LPSTR out), lpTransformsBuf (LPSTR out), pcchTransformsBuf (DWORD* in/out)
r1, _, err := procMsiEnumPatchesA.Call(
uintptr(unsafe.Pointer(windows.BytePtrFromString(szProduct))),
uintptr(iPatchIndex),
uintptr(lpPatchBuf),
uintptr(lpTransformsBuf),
uintptr(pcchTransformsBuf),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // DWORDfunction MsiEnumPatchesA(
szProduct: PAnsiChar; // LPCSTR
iPatchIndex: DWORD; // DWORD
lpPatchBuf: PAnsiChar; // LPSTR out
lpTransformsBuf: PAnsiChar; // LPSTR out
pcchTransformsBuf: Pointer // DWORD* in/out
): DWORD; stdcall;
external 'msi.dll' name 'MsiEnumPatchesA';result := DllCall("msi\MsiEnumPatchesA"
, "AStr", szProduct ; LPCSTR
, "UInt", iPatchIndex ; DWORD
, "Ptr", lpPatchBuf ; LPSTR out
, "Ptr", lpTransformsBuf ; LPSTR out
, "Ptr", pcchTransformsBuf ; DWORD* in/out
, "UInt") ; return: DWORD●MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf) = DLL("msi.dll", "dword MsiEnumPatchesA(char*, dword, char*, char*, void*)")
# 呼び出し: MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf)
# szProduct : LPCSTR -> "char*"
# iPatchIndex : DWORD -> "dword"
# lpPatchBuf : LPSTR out -> "char*"
# lpTransformsBuf : LPSTR out -> "char*"
# pcchTransformsBuf : DWORD* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。const std = @import("std");
extern "msi" fn MsiEnumPatchesA(
szProduct: [*c]const u8, // LPCSTR
iPatchIndex: u32, // DWORD
lpPatchBuf: [*c]u8, // LPSTR out
lpTransformsBuf: [*c]u8, // LPSTR out
pcchTransformsBuf: [*c]u32 // DWORD* in/out
) callconv(std.os.windows.WINAPI) u32;proc MsiEnumPatchesA(
szProduct: cstring, # LPCSTR
iPatchIndex: uint32, # DWORD
lpPatchBuf: ptr char, # LPSTR out
lpTransformsBuf: ptr char, # LPSTR out
pcchTransformsBuf: ptr uint32 # DWORD* in/out
): uint32 {.importc: "MsiEnumPatchesA", stdcall, dynlib: "msi.dll".}pragma(lib, "msi");
extern(Windows)
uint MsiEnumPatchesA(
const(char)* szProduct, // LPCSTR
uint iPatchIndex, // DWORD
char* lpPatchBuf, // LPSTR out
char* lpTransformsBuf, // LPSTR out
uint* pcchTransformsBuf // DWORD* in/out
);ccall((:MsiEnumPatchesA, "msi.dll"), stdcall, UInt32,
(Cstring, UInt32, Ptr{UInt8}, Ptr{UInt8}, Ptr{UInt32}),
szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf)
# szProduct : LPCSTR -> Cstring
# iPatchIndex : DWORD -> UInt32
# lpPatchBuf : LPSTR out -> Ptr{UInt8}
# lpTransformsBuf : LPSTR out -> Ptr{UInt8}
# pcchTransformsBuf : DWORD* in/out -> Ptr{UInt32}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。local ffi = require("ffi")
ffi.cdef[[
uint32_t MsiEnumPatchesA(
const char* szProduct,
uint32_t iPatchIndex,
char* lpPatchBuf,
char* lpTransformsBuf,
uint32_t* pcchTransformsBuf);
]]
local msi = ffi.load("msi")
-- msi.MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf)
-- szProduct : LPCSTR
-- iPatchIndex : DWORD
-- lpPatchBuf : LPSTR out
-- lpTransformsBuf : LPSTR out
-- pcchTransformsBuf : DWORD* in/out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。const koffi = require('koffi');
const lib = koffi.load('msi.dll');
const MsiEnumPatchesA = lib.func('__stdcall', 'MsiEnumPatchesA', 'uint32_t', ['str', 'uint32_t', 'char *', 'char *', 'uint32_t *']);
// MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf)
// szProduct : LPCSTR -> 'str'
// iPatchIndex : DWORD -> 'uint32_t'
// lpPatchBuf : LPSTR out -> 'char *'
// lpTransformsBuf : LPSTR out -> 'char *'
// pcchTransformsBuf : DWORD* in/out -> 'uint32_t *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("msi.dll", {
MsiEnumPatchesA: { parameters: ["buffer", "u32", "buffer", "buffer", "pointer"], result: "u32" },
});
// lib.symbols.MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf)
// szProduct : LPCSTR -> "buffer"
// iPatchIndex : DWORD -> "u32"
// lpPatchBuf : LPSTR out -> "buffer"
// lpTransformsBuf : LPSTR out -> "buffer"
// pcchTransformsBuf : DWORD* in/out -> "pointer"
// 文字列は "buffer"。ANSI(-A) は new TextEncoder() で UTF-8/ANSI バイト列(末尾に \x00)を渡す。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
uint32_t MsiEnumPatchesA(
const char* szProduct,
uint32_t iPatchIndex,
char* lpPatchBuf,
char* lpTransformsBuf,
uint32_t* pcchTransformsBuf);
C, "msi.dll");
// $ffi->MsiEnumPatchesA(szProduct, iPatchIndex, lpPatchBuf, lpTransformsBuf, pcchTransformsBuf);
// szProduct : LPCSTR
// iPatchIndex : DWORD
// lpPatchBuf : LPSTR out
// lpTransformsBuf : LPSTR out
// pcchTransformsBuf : 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 Msi extends StdCallLibrary {
Msi INSTANCE = Native.load("msi", Msi.class, W32APIOptions.ASCII_OPTIONS);
int MsiEnumPatchesA(
String szProduct, // LPCSTR
int iPatchIndex, // DWORD
byte[] lpPatchBuf, // LPSTR out
byte[] lpTransformsBuf, // LPSTR out
IntByReference pcchTransformsBuf // DWORD* in/out
);
}@[Link("msi")]
lib Libmsi
fun MsiEnumPatchesA = MsiEnumPatchesA(
szProduct : UInt8*, # LPCSTR
iPatchIndex : UInt32, # DWORD
lpPatchBuf : UInt8*, # LPSTR out
lpTransformsBuf : UInt8*, # LPSTR out
pcchTransformsBuf : 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 MsiEnumPatchesANative = Uint32 Function(Pointer<Utf8>, Uint32, Pointer<Utf8>, Pointer<Utf8>, Pointer<Uint32>);
typedef MsiEnumPatchesADart = int Function(Pointer<Utf8>, int, Pointer<Utf8>, Pointer<Utf8>, Pointer<Uint32>);
final MsiEnumPatchesA = DynamicLibrary.open('msi.dll')
.lookupFunction<MsiEnumPatchesANative, MsiEnumPatchesADart>('MsiEnumPatchesA');
// szProduct : LPCSTR -> Pointer<Utf8>
// iPatchIndex : DWORD -> Uint32
// lpPatchBuf : LPSTR out -> Pointer<Utf8>
// lpTransformsBuf : LPSTR out -> Pointer<Utf8>
// pcchTransformsBuf : DWORD* in/out -> Pointer<Uint32>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
function MsiEnumPatchesA(
szProduct: PAnsiChar; // LPCSTR
iPatchIndex: DWORD; // DWORD
lpPatchBuf: PAnsiChar; // LPSTR out
lpTransformsBuf: PAnsiChar; // LPSTR out
pcchTransformsBuf: Pointer // DWORD* in/out
): DWORD; stdcall;
external 'msi.dll' name 'MsiEnumPatchesA';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "MsiEnumPatchesA"
c_MsiEnumPatchesA :: CString -> Word32 -> CString -> CString -> Ptr Word32 -> IO Word32
-- szProduct : LPCSTR -> CString
-- iPatchIndex : DWORD -> Word32
-- lpPatchBuf : LPSTR out -> CString
-- lpTransformsBuf : LPSTR out -> CString
-- pcchTransformsBuf : DWORD* in/out -> Ptr Word32
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let msienumpatchesa =
foreign "MsiEnumPatchesA"
(string @-> uint32_t @-> string @-> string @-> (ptr uint32_t) @-> returning uint32_t)
(* szProduct : LPCSTR -> string *)
(* iPatchIndex : DWORD -> uint32_t *)
(* lpPatchBuf : LPSTR out -> string *)
(* lpTransformsBuf : LPSTR out -> string *)
(* pcchTransformsBuf : DWORD* in/out -> (ptr uint32_t) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library msi (t "msi.dll"))
(cffi:use-foreign-library msi)
(cffi:defcfun ("MsiEnumPatchesA" msi-enum-patches-a :convention :stdcall) :uint32
(sz-product :string) ; LPCSTR
(i-patch-index :uint32) ; DWORD
(lp-patch-buf :pointer) ; LPSTR out
(lp-transforms-buf :pointer) ; LPSTR out
(pcch-transforms-buf :pointer)) ; DWORD* in/out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $MsiEnumPatchesA = Win32::API::More->new('msi',
'DWORD MsiEnumPatchesA(LPCSTR szProduct, DWORD iPatchIndex, LPSTR lpPatchBuf, LPSTR lpTransformsBuf, LPVOID pcchTransformsBuf)');
# my $ret = $MsiEnumPatchesA->Call($szProduct, $iPatchIndex, $lpPatchBuf, $lpTransformsBuf, $pcchTransformsBuf);
# szProduct : LPCSTR -> LPCSTR
# iPatchIndex : DWORD -> DWORD
# lpPatchBuf : LPSTR out -> LPSTR
# lpTransformsBuf : LPSTR out -> LPSTR
# pcchTransformsBuf : DWORD* in/out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。関連項目
文字セット違い
- f MsiEnumPatchesW (Unicode版) — 製品に適用されたパッチを列挙する(Unicode版)。
類似 API
- f MsiEnumPatchesExA — コンテキストやフィルタを指定してパッチを列挙する(ANSI版)。