ホーム › UI.WindowsAndMessaging › MrmCreateResourceIndexerFromPreviousSchemaFile
MrmCreateResourceIndexerFromPreviousSchemaFile
関数既存スキーマファイルからリソースインデクサを作成する。
シグネチャ
// MrmSupport.dll
#include <windows.h>
HRESULT MrmCreateResourceIndexerFromPreviousSchemaFile(
LPCWSTR projectRoot,
MrmPlatformVersion platformVersion,
LPCWSTR defaultQualifiers, // optional
LPCWSTR schemaFile,
MrmResourceIndexerHandle* indexer
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| projectRoot | LPCWSTR | in | リソースのルートとなるプロジェクトフォルダのパス。 |
| platformVersion | MrmPlatformVersion | in | 対象とするMRMプラットフォームバージョン。 |
| defaultQualifiers | LPCWSTR | inoptional | 既定のリソース修飾子文字列(例: language-en-US)。 |
| schemaFile | LPCWSTR | in | 以前のスキーマを定義するスキーマファイルのパス。 |
| indexer | MrmResourceIndexerHandle* | inout | 作成されたリソースインデクサのハンドルを受け取るポインタ。 |
戻り値の型: HRESULT
各言語での呼び出し定義
// MrmSupport.dll
#include <windows.h>
HRESULT MrmCreateResourceIndexerFromPreviousSchemaFile(
LPCWSTR projectRoot,
MrmPlatformVersion platformVersion,
LPCWSTR defaultQualifiers, // optional
LPCWSTR schemaFile,
MrmResourceIndexerHandle* indexer
);[DllImport("MrmSupport.dll", ExactSpelling = true)]
static extern int MrmCreateResourceIndexerFromPreviousSchemaFile(
[MarshalAs(UnmanagedType.LPWStr)] string projectRoot, // LPCWSTR
int platformVersion, // MrmPlatformVersion
[MarshalAs(UnmanagedType.LPWStr)] string defaultQualifiers, // LPCWSTR optional
[MarshalAs(UnmanagedType.LPWStr)] string schemaFile, // LPCWSTR
IntPtr indexer // MrmResourceIndexerHandle* in/out
);<DllImport("MrmSupport.dll", ExactSpelling:=True)>
Public Shared Function MrmCreateResourceIndexerFromPreviousSchemaFile(
<MarshalAs(UnmanagedType.LPWStr)> projectRoot As String, ' LPCWSTR
platformVersion As Integer, ' MrmPlatformVersion
<MarshalAs(UnmanagedType.LPWStr)> defaultQualifiers As String, ' LPCWSTR optional
<MarshalAs(UnmanagedType.LPWStr)> schemaFile As String, ' LPCWSTR
indexer As IntPtr ' MrmResourceIndexerHandle* in/out
) As Integer
End Function' projectRoot : LPCWSTR
' platformVersion : MrmPlatformVersion
' defaultQualifiers : LPCWSTR optional
' schemaFile : LPCWSTR
' indexer : MrmResourceIndexerHandle* in/out
Declare PtrSafe Function MrmCreateResourceIndexerFromPreviousSchemaFile Lib "mrmsupport" ( _
ByVal projectRoot As LongPtr, _
ByVal platformVersion As Long, _
ByVal defaultQualifiers As LongPtr, _
ByVal schemaFile As LongPtr, _
ByVal indexer As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
MrmCreateResourceIndexerFromPreviousSchemaFile = ctypes.windll.mrmsupport.MrmCreateResourceIndexerFromPreviousSchemaFile
MrmCreateResourceIndexerFromPreviousSchemaFile.restype = ctypes.c_int
MrmCreateResourceIndexerFromPreviousSchemaFile.argtypes = [
wintypes.LPCWSTR, # projectRoot : LPCWSTR
ctypes.c_int, # platformVersion : MrmPlatformVersion
wintypes.LPCWSTR, # defaultQualifiers : LPCWSTR optional
wintypes.LPCWSTR, # schemaFile : LPCWSTR
ctypes.c_void_p, # indexer : MrmResourceIndexerHandle* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('MrmSupport.dll')
MrmCreateResourceIndexerFromPreviousSchemaFile = Fiddle::Function.new(
lib['MrmCreateResourceIndexerFromPreviousSchemaFile'],
[
Fiddle::TYPE_VOIDP, # projectRoot : LPCWSTR
Fiddle::TYPE_INT, # platformVersion : MrmPlatformVersion
Fiddle::TYPE_VOIDP, # defaultQualifiers : LPCWSTR optional
Fiddle::TYPE_VOIDP, # schemaFile : LPCWSTR
Fiddle::TYPE_VOIDP, # indexer : MrmResourceIndexerHandle* in/out
],
Fiddle::TYPE_INT)#[link(name = "mrmsupport")]
extern "system" {
fn MrmCreateResourceIndexerFromPreviousSchemaFile(
projectRoot: *const u16, // LPCWSTR
platformVersion: i32, // MrmPlatformVersion
defaultQualifiers: *const u16, // LPCWSTR optional
schemaFile: *const u16, // LPCWSTR
indexer: *mut MrmResourceIndexerHandle // MrmResourceIndexerHandle* in/out
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("MrmSupport.dll")]
public static extern int MrmCreateResourceIndexerFromPreviousSchemaFile([MarshalAs(UnmanagedType.LPWStr)] string projectRoot, int platformVersion, [MarshalAs(UnmanagedType.LPWStr)] string defaultQualifiers, [MarshalAs(UnmanagedType.LPWStr)] string schemaFile, IntPtr indexer);
"@
$api = Add-Type -MemberDefinition $sig -Name 'MrmSupport_MrmCreateResourceIndexerFromPreviousSchemaFile' -Namespace Win32 -PassThru
# $api::MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer)#uselib "MrmSupport.dll"
#func global MrmCreateResourceIndexerFromPreviousSchemaFile "MrmCreateResourceIndexerFromPreviousSchemaFile" sptr, sptr, sptr, sptr, sptr
; MrmCreateResourceIndexerFromPreviousSchemaFile projectRoot, platformVersion, defaultQualifiers, schemaFile, varptr(indexer) ; 戻り値は stat
; projectRoot : LPCWSTR -> "sptr"
; platformVersion : MrmPlatformVersion -> "sptr"
; defaultQualifiers : LPCWSTR optional -> "sptr"
; schemaFile : LPCWSTR -> "sptr"
; indexer : MrmResourceIndexerHandle* in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "MrmSupport.dll" #cfunc global MrmCreateResourceIndexerFromPreviousSchemaFile "MrmCreateResourceIndexerFromPreviousSchemaFile" wstr, int, wstr, wstr, var ; res = MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer) ; projectRoot : LPCWSTR -> "wstr" ; platformVersion : MrmPlatformVersion -> "int" ; defaultQualifiers : LPCWSTR optional -> "wstr" ; schemaFile : LPCWSTR -> "wstr" ; indexer : MrmResourceIndexerHandle* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "MrmSupport.dll" #cfunc global MrmCreateResourceIndexerFromPreviousSchemaFile "MrmCreateResourceIndexerFromPreviousSchemaFile" wstr, int, wstr, wstr, sptr ; res = MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, varptr(indexer)) ; projectRoot : LPCWSTR -> "wstr" ; platformVersion : MrmPlatformVersion -> "int" ; defaultQualifiers : LPCWSTR optional -> "wstr" ; schemaFile : LPCWSTR -> "wstr" ; indexer : MrmResourceIndexerHandle* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; HRESULT MrmCreateResourceIndexerFromPreviousSchemaFile(LPCWSTR projectRoot, MrmPlatformVersion platformVersion, LPCWSTR defaultQualifiers, LPCWSTR schemaFile, MrmResourceIndexerHandle* indexer) #uselib "MrmSupport.dll" #cfunc global MrmCreateResourceIndexerFromPreviousSchemaFile "MrmCreateResourceIndexerFromPreviousSchemaFile" wstr, int, wstr, wstr, var ; res = MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer) ; projectRoot : LPCWSTR -> "wstr" ; platformVersion : MrmPlatformVersion -> "int" ; defaultQualifiers : LPCWSTR optional -> "wstr" ; schemaFile : LPCWSTR -> "wstr" ; indexer : MrmResourceIndexerHandle* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; HRESULT MrmCreateResourceIndexerFromPreviousSchemaFile(LPCWSTR projectRoot, MrmPlatformVersion platformVersion, LPCWSTR defaultQualifiers, LPCWSTR schemaFile, MrmResourceIndexerHandle* indexer) #uselib "MrmSupport.dll" #cfunc global MrmCreateResourceIndexerFromPreviousSchemaFile "MrmCreateResourceIndexerFromPreviousSchemaFile" wstr, int, wstr, wstr, intptr ; res = MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, varptr(indexer)) ; projectRoot : LPCWSTR -> "wstr" ; platformVersion : MrmPlatformVersion -> "int" ; defaultQualifiers : LPCWSTR optional -> "wstr" ; schemaFile : LPCWSTR -> "wstr" ; indexer : MrmResourceIndexerHandle* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
mrmsupport = windows.NewLazySystemDLL("MrmSupport.dll")
procMrmCreateResourceIndexerFromPreviousSchemaFile = mrmsupport.NewProc("MrmCreateResourceIndexerFromPreviousSchemaFile")
)
// projectRoot (LPCWSTR), platformVersion (MrmPlatformVersion), defaultQualifiers (LPCWSTR optional), schemaFile (LPCWSTR), indexer (MrmResourceIndexerHandle* in/out)
r1, _, err := procMrmCreateResourceIndexerFromPreviousSchemaFile.Call(
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(projectRoot))),
uintptr(platformVersion),
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(defaultQualifiers))),
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(schemaFile))),
uintptr(indexer),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction MrmCreateResourceIndexerFromPreviousSchemaFile(
projectRoot: PWideChar; // LPCWSTR
platformVersion: Integer; // MrmPlatformVersion
defaultQualifiers: PWideChar; // LPCWSTR optional
schemaFile: PWideChar; // LPCWSTR
indexer: Pointer // MrmResourceIndexerHandle* in/out
): Integer; stdcall;
external 'MrmSupport.dll' name 'MrmCreateResourceIndexerFromPreviousSchemaFile';result := DllCall("MrmSupport\MrmCreateResourceIndexerFromPreviousSchemaFile"
, "WStr", projectRoot ; LPCWSTR
, "Int", platformVersion ; MrmPlatformVersion
, "WStr", defaultQualifiers ; LPCWSTR optional
, "WStr", schemaFile ; LPCWSTR
, "Ptr", indexer ; MrmResourceIndexerHandle* in/out
, "Int") ; return: HRESULT●MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer) = DLL("MrmSupport.dll", "int MrmCreateResourceIndexerFromPreviousSchemaFile(char*, int, char*, char*, void*)")
# 呼び出し: MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer)
# projectRoot : LPCWSTR -> "char*"
# platformVersion : MrmPlatformVersion -> "int"
# defaultQualifiers : LPCWSTR optional -> "char*"
# schemaFile : LPCWSTR -> "char*"
# indexer : MrmResourceIndexerHandle* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。const std = @import("std");
extern "mrmsupport" fn MrmCreateResourceIndexerFromPreviousSchemaFile(
projectRoot: [*c]const u16, // LPCWSTR
platformVersion: i32, // MrmPlatformVersion
defaultQualifiers: [*c]const u16, // LPCWSTR optional
schemaFile: [*c]const u16, // LPCWSTR
indexer: [*c]MrmResourceIndexerHandle // MrmResourceIndexerHandle* in/out
) callconv(std.os.windows.WINAPI) i32;proc MrmCreateResourceIndexerFromPreviousSchemaFile(
projectRoot: WideCString, # LPCWSTR
platformVersion: int32, # MrmPlatformVersion
defaultQualifiers: WideCString, # LPCWSTR optional
schemaFile: WideCString, # LPCWSTR
indexer: ptr MrmResourceIndexerHandle # MrmResourceIndexerHandle* in/out
): int32 {.importc: "MrmCreateResourceIndexerFromPreviousSchemaFile", stdcall, dynlib: "MrmSupport.dll".}pragma(lib, "mrmsupport");
extern(Windows)
int MrmCreateResourceIndexerFromPreviousSchemaFile(
const(wchar)* projectRoot, // LPCWSTR
int platformVersion, // MrmPlatformVersion
const(wchar)* defaultQualifiers, // LPCWSTR optional
const(wchar)* schemaFile, // LPCWSTR
MrmResourceIndexerHandle* indexer // MrmResourceIndexerHandle* in/out
);ccall((:MrmCreateResourceIndexerFromPreviousSchemaFile, "MrmSupport.dll"), stdcall, Int32,
(Cwstring, Int32, Cwstring, Cwstring, Ptr{MrmResourceIndexerHandle}),
projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer)
# projectRoot : LPCWSTR -> Cwstring
# platformVersion : MrmPlatformVersion -> Int32
# defaultQualifiers : LPCWSTR optional -> Cwstring
# schemaFile : LPCWSTR -> Cwstring
# indexer : MrmResourceIndexerHandle* in/out -> Ptr{MrmResourceIndexerHandle}
# stdcall は 32bit のみ意味を持つ(x64 では無視)。local ffi = require("ffi")
ffi.cdef[[
int32_t MrmCreateResourceIndexerFromPreviousSchemaFile(
const uint16_t* projectRoot,
int32_t platformVersion,
const uint16_t* defaultQualifiers,
const uint16_t* schemaFile,
void* indexer);
]]
local mrmsupport = ffi.load("mrmsupport")
-- mrmsupport.MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer)
-- projectRoot : LPCWSTR
-- platformVersion : MrmPlatformVersion
-- defaultQualifiers : LPCWSTR optional
-- schemaFile : LPCWSTR
-- indexer : MrmResourceIndexerHandle* in/out
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。const koffi = require('koffi');
const lib = koffi.load('MrmSupport.dll');
const MrmCreateResourceIndexerFromPreviousSchemaFile = lib.func('__stdcall', 'MrmCreateResourceIndexerFromPreviousSchemaFile', 'int32_t', ['str16', 'int32_t', 'str16', 'str16', 'void *']);
// MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer)
// projectRoot : LPCWSTR -> 'str16'
// platformVersion : MrmPlatformVersion -> 'int32_t'
// defaultQualifiers : LPCWSTR optional -> 'str16'
// schemaFile : LPCWSTR -> 'str16'
// indexer : MrmResourceIndexerHandle* in/out -> 'void *'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("MrmSupport.dll", {
MrmCreateResourceIndexerFromPreviousSchemaFile: { parameters: ["buffer", "i32", "buffer", "buffer", "pointer"], result: "i32" },
});
// lib.symbols.MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer)
// projectRoot : LPCWSTR -> "buffer"
// platformVersion : MrmPlatformVersion -> "i32"
// defaultQualifiers : LPCWSTR optional -> "buffer"
// schemaFile : LPCWSTR -> "buffer"
// indexer : MrmResourceIndexerHandle* in/out -> "pointer"
// 文字列引数は "buffer"(NUL 終端のバイト列を Uint8Array で渡す)。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
int32_t MrmCreateResourceIndexerFromPreviousSchemaFile(
const uint16_t* projectRoot,
int32_t platformVersion,
const uint16_t* defaultQualifiers,
const uint16_t* schemaFile,
void* indexer);
C, "MrmSupport.dll");
// $ffi->MrmCreateResourceIndexerFromPreviousSchemaFile(projectRoot, platformVersion, defaultQualifiers, schemaFile, indexer);
// projectRoot : LPCWSTR
// platformVersion : MrmPlatformVersion
// defaultQualifiers : LPCWSTR optional
// schemaFile : LPCWSTR
// indexer : MrmResourceIndexerHandle* 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 Mrmsupport extends StdCallLibrary {
Mrmsupport INSTANCE = Native.load("mrmsupport", Mrmsupport.class);
int MrmCreateResourceIndexerFromPreviousSchemaFile(
WString projectRoot, // LPCWSTR
int platformVersion, // MrmPlatformVersion
WString defaultQualifiers, // LPCWSTR optional
WString schemaFile, // LPCWSTR
Pointer indexer // MrmResourceIndexerHandle* in/out
);
}@[Link("mrmsupport")]
lib LibMrmSupport
fun MrmCreateResourceIndexerFromPreviousSchemaFile = MrmCreateResourceIndexerFromPreviousSchemaFile(
projectRoot : UInt16*, # LPCWSTR
platformVersion : Int32, # MrmPlatformVersion
defaultQualifiers : UInt16*, # LPCWSTR optional
schemaFile : UInt16*, # LPCWSTR
indexer : MrmResourceIndexerHandle* # MrmResourceIndexerHandle* in/out
) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。import 'dart:ffi';
import 'package:ffi/ffi.dart';
typedef MrmCreateResourceIndexerFromPreviousSchemaFileNative = Int32 Function(Pointer<Utf16>, Int32, Pointer<Utf16>, Pointer<Utf16>, Pointer<Void>);
typedef MrmCreateResourceIndexerFromPreviousSchemaFileDart = int Function(Pointer<Utf16>, int, Pointer<Utf16>, Pointer<Utf16>, Pointer<Void>);
final MrmCreateResourceIndexerFromPreviousSchemaFile = DynamicLibrary.open('MrmSupport.dll')
.lookupFunction<MrmCreateResourceIndexerFromPreviousSchemaFileNative, MrmCreateResourceIndexerFromPreviousSchemaFileDart>('MrmCreateResourceIndexerFromPreviousSchemaFile');
// projectRoot : LPCWSTR -> Pointer<Utf16>
// platformVersion : MrmPlatformVersion -> Int32
// defaultQualifiers : LPCWSTR optional -> Pointer<Utf16>
// schemaFile : LPCWSTR -> Pointer<Utf16>
// indexer : MrmResourceIndexerHandle* in/out -> Pointer<Void>
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
function MrmCreateResourceIndexerFromPreviousSchemaFile(
projectRoot: PWideChar; // LPCWSTR
platformVersion: Integer; // MrmPlatformVersion
defaultQualifiers: PWideChar; // LPCWSTR optional
schemaFile: PWideChar; // LPCWSTR
indexer: Pointer // MrmResourceIndexerHandle* in/out
): Integer; stdcall;
external 'MrmSupport.dll' name 'MrmCreateResourceIndexerFromPreviousSchemaFile';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "MrmCreateResourceIndexerFromPreviousSchemaFile"
c_MrmCreateResourceIndexerFromPreviousSchemaFile :: CWString -> Int32 -> CWString -> CWString -> Ptr () -> IO Int32
-- projectRoot : LPCWSTR -> CWString
-- platformVersion : MrmPlatformVersion -> Int32
-- defaultQualifiers : LPCWSTR optional -> CWString
-- schemaFile : LPCWSTR -> CWString
-- indexer : MrmResourceIndexerHandle* in/out -> Ptr ()
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let mrmcreateresourceindexerfrompreviousschemafile =
foreign "MrmCreateResourceIndexerFromPreviousSchemaFile"
((ptr uint16_t) @-> int32_t @-> (ptr uint16_t) @-> (ptr uint16_t) @-> (ptr void) @-> returning int32_t)
(* projectRoot : LPCWSTR -> (ptr uint16_t) *)
(* platformVersion : MrmPlatformVersion -> int32_t *)
(* defaultQualifiers : LPCWSTR optional -> (ptr uint16_t) *)
(* schemaFile : LPCWSTR -> (ptr uint16_t) *)
(* indexer : MrmResourceIndexerHandle* in/out -> (ptr void) *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library mrmsupport (t "MrmSupport.dll"))
(cffi:use-foreign-library mrmsupport)
(cffi:defcfun ("MrmCreateResourceIndexerFromPreviousSchemaFile" mrm-create-resource-indexer-from-previous-schema-file :convention :stdcall) :int32
(project-root (:string :encoding :utf-16le)) ; LPCWSTR
(platform-version :int32) ; MrmPlatformVersion
(default-qualifiers (:string :encoding :utf-16le)) ; LPCWSTR optional
(schema-file (:string :encoding :utf-16le)) ; LPCWSTR
(indexer :pointer)) ; MrmResourceIndexerHandle* in/out
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $MrmCreateResourceIndexerFromPreviousSchemaFile = Win32::API::More->new('MrmSupport',
'int MrmCreateResourceIndexerFromPreviousSchemaFile(LPCWSTR projectRoot, int platformVersion, LPCWSTR defaultQualifiers, LPCWSTR schemaFile, LPVOID indexer)');
# my $ret = $MrmCreateResourceIndexerFromPreviousSchemaFile->Call($projectRoot, $platformVersion, $defaultQualifiers, $schemaFile, $indexer);
# projectRoot : LPCWSTR -> LPCWSTR
# platformVersion : MrmPlatformVersion -> int
# defaultQualifiers : LPCWSTR optional -> LPCWSTR
# schemaFile : LPCWSTR -> LPCWSTR
# indexer : MrmResourceIndexerHandle* in/out -> LPVOID
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。