ホーム › System.WindowsProgramming › AdvInstallFileW
AdvInstallFileW
関数ファイルをコピーしてインストールする(Unicode版)。
シグネチャ
// ADVPACK.dll (Unicode / -W)
#include <windows.h>
HRESULT AdvInstallFileW(
HWND hwnd,
LPCWSTR lpszSourceDir,
LPCWSTR lpszSourceFile,
LPCWSTR lpszDestDir,
LPCWSTR lpszDestFile,
DWORD dwFlags,
DWORD dwReserved
);パラメーター
| 名前 | 型 | 方向 | 説明 |
|---|---|---|---|
| hwnd | HWND | in | UIの親となるウィンドウのハンドル。NULL可。 |
| lpszSourceDir | LPCWSTR | in | コピー元ファイルが存在するディレクトリを指す。 |
| lpszSourceFile | LPCWSTR | in | コピー元のファイル名を指す。 |
| lpszDestDir | LPCWSTR | in | コピー先のディレクトリを指す。 |
| lpszDestFile | LPCWSTR | in | コピー先のファイル名を指す。NULL可。 |
| dwFlags | DWORD | in | コピー動作を制御するフラグ(AIF_系)。 |
| dwReserved | DWORD | in | 予約済み。0を指定する。 |
戻り値の型: HRESULT
各言語での呼び出し定義
// ADVPACK.dll (Unicode / -W)
#include <windows.h>
HRESULT AdvInstallFileW(
HWND hwnd,
LPCWSTR lpszSourceDir,
LPCWSTR lpszSourceFile,
LPCWSTR lpszDestDir,
LPCWSTR lpszDestFile,
DWORD dwFlags,
DWORD dwReserved
);[DllImport("ADVPACK.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
static extern int AdvInstallFileW(
IntPtr hwnd, // HWND
[MarshalAs(UnmanagedType.LPWStr)] string lpszSourceDir, // LPCWSTR
[MarshalAs(UnmanagedType.LPWStr)] string lpszSourceFile, // LPCWSTR
[MarshalAs(UnmanagedType.LPWStr)] string lpszDestDir, // LPCWSTR
[MarshalAs(UnmanagedType.LPWStr)] string lpszDestFile, // LPCWSTR
uint dwFlags, // DWORD
uint dwReserved // DWORD
);<DllImport("ADVPACK.dll", CharSet:=CharSet.Unicode, ExactSpelling:=True)>
Public Shared Function AdvInstallFileW(
hwnd As IntPtr, ' HWND
<MarshalAs(UnmanagedType.LPWStr)> lpszSourceDir As String, ' LPCWSTR
<MarshalAs(UnmanagedType.LPWStr)> lpszSourceFile As String, ' LPCWSTR
<MarshalAs(UnmanagedType.LPWStr)> lpszDestDir As String, ' LPCWSTR
<MarshalAs(UnmanagedType.LPWStr)> lpszDestFile As String, ' LPCWSTR
dwFlags As UInteger, ' DWORD
dwReserved As UInteger ' DWORD
) As Integer
End Function' hwnd : HWND
' lpszSourceDir : LPCWSTR
' lpszSourceFile : LPCWSTR
' lpszDestDir : LPCWSTR
' lpszDestFile : LPCWSTR
' dwFlags : DWORD
' dwReserved : DWORD
Declare PtrSafe Function AdvInstallFileW Lib "advpack" ( _
ByVal hwnd As LongPtr, _
ByVal lpszSourceDir As LongPtr, _
ByVal lpszSourceFile As LongPtr, _
ByVal lpszDestDir As LongPtr, _
ByVal lpszDestFile As LongPtr, _
ByVal dwFlags As Long, _
ByVal dwReserved As Long) As Long
' Unicode(W): 文字列は ByVal As LongPtr とし StrPtr(unicodeStr) を渡す
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
AdvInstallFileW = ctypes.windll.advpack.AdvInstallFileW
AdvInstallFileW.restype = ctypes.c_int
AdvInstallFileW.argtypes = [
wintypes.HANDLE, # hwnd : HWND
wintypes.LPCWSTR, # lpszSourceDir : LPCWSTR
wintypes.LPCWSTR, # lpszSourceFile : LPCWSTR
wintypes.LPCWSTR, # lpszDestDir : LPCWSTR
wintypes.LPCWSTR, # lpszDestFile : LPCWSTR
wintypes.DWORD, # dwFlags : DWORD
wintypes.DWORD, # dwReserved : DWORD
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('ADVPACK.dll')
AdvInstallFileW = Fiddle::Function.new(
lib['AdvInstallFileW'],
[
Fiddle::TYPE_VOIDP, # hwnd : HWND
Fiddle::TYPE_VOIDP, # lpszSourceDir : LPCWSTR
Fiddle::TYPE_VOIDP, # lpszSourceFile : LPCWSTR
Fiddle::TYPE_VOIDP, # lpszDestDir : LPCWSTR
Fiddle::TYPE_VOIDP, # lpszDestFile : LPCWSTR
-Fiddle::TYPE_INT, # dwFlags : DWORD
-Fiddle::TYPE_INT, # dwReserved : DWORD
],
Fiddle::TYPE_INT)
# Wide strings: pass str.encode("UTF-16LE") + "\x00\x00"#[link(name = "advpack")]
extern "system" {
fn AdvInstallFileW(
hwnd: *mut core::ffi::c_void, // HWND
lpszSourceDir: *const u16, // LPCWSTR
lpszSourceFile: *const u16, // LPCWSTR
lpszDestDir: *const u16, // LPCWSTR
lpszDestFile: *const u16, // LPCWSTR
dwFlags: u32, // DWORD
dwReserved: u32 // DWORD
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("ADVPACK.dll", CharSet = CharSet.Unicode)]
public static extern int AdvInstallFileW(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string lpszSourceDir, [MarshalAs(UnmanagedType.LPWStr)] string lpszSourceFile, [MarshalAs(UnmanagedType.LPWStr)] string lpszDestDir, [MarshalAs(UnmanagedType.LPWStr)] string lpszDestFile, uint dwFlags, uint dwReserved);
"@
$api = Add-Type -MemberDefinition $sig -Name 'ADVPACK_AdvInstallFileW' -Namespace Win32 -PassThru
# $api::AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)#uselib "ADVPACK.dll"
#func global AdvInstallFileW "AdvInstallFileW" wptr, wptr, wptr, wptr, wptr, wptr, wptr
; AdvInstallFileW hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved ; 戻り値は stat
; hwnd : HWND -> "wptr"
; lpszSourceDir : LPCWSTR -> "wptr"
; lpszSourceFile : LPCWSTR -> "wptr"
; lpszDestDir : LPCWSTR -> "wptr"
; lpszDestFile : LPCWSTR -> "wptr"
; dwFlags : DWORD -> "wptr"
; dwReserved : DWORD -> "wptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "ADVPACK.dll"
#cfunc global AdvInstallFileW "AdvInstallFileW" sptr, wstr, wstr, wstr, wstr, int, int
; res = AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)
; hwnd : HWND -> "sptr"
; lpszSourceDir : LPCWSTR -> "wstr"
; lpszSourceFile : LPCWSTR -> "wstr"
; lpszDestDir : LPCWSTR -> "wstr"
; lpszDestFile : LPCWSTR -> "wstr"
; dwFlags : DWORD -> "int"
; dwReserved : DWORD -> "int"; HRESULT AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, LPCWSTR lpszSourceFile, LPCWSTR lpszDestDir, LPCWSTR lpszDestFile, DWORD dwFlags, DWORD dwReserved)
#uselib "ADVPACK.dll"
#cfunc global AdvInstallFileW "AdvInstallFileW" intptr, wstr, wstr, wstr, wstr, int, int
; res = AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)
; hwnd : HWND -> "intptr"
; lpszSourceDir : LPCWSTR -> "wstr"
; lpszSourceFile : LPCWSTR -> "wstr"
; lpszDestDir : LPCWSTR -> "wstr"
; lpszDestFile : LPCWSTR -> "wstr"
; dwFlags : DWORD -> "int"
; dwReserved : DWORD -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
advpack = windows.NewLazySystemDLL("ADVPACK.dll")
procAdvInstallFileW = advpack.NewProc("AdvInstallFileW")
)
// hwnd (HWND), lpszSourceDir (LPCWSTR), lpszSourceFile (LPCWSTR), lpszDestDir (LPCWSTR), lpszDestFile (LPCWSTR), dwFlags (DWORD), dwReserved (DWORD)
r1, _, err := procAdvInstallFileW.Call(
uintptr(hwnd),
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(lpszSourceDir))),
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(lpszSourceFile))),
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(lpszDestDir))),
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(lpszDestFile))),
uintptr(dwFlags),
uintptr(dwReserved),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HRESULTfunction AdvInstallFileW(
hwnd: THandle; // HWND
lpszSourceDir: PWideChar; // LPCWSTR
lpszSourceFile: PWideChar; // LPCWSTR
lpszDestDir: PWideChar; // LPCWSTR
lpszDestFile: PWideChar; // LPCWSTR
dwFlags: DWORD; // DWORD
dwReserved: DWORD // DWORD
): Integer; stdcall;
external 'ADVPACK.dll' name 'AdvInstallFileW';result := DllCall("ADVPACK\AdvInstallFileW"
, "Ptr", hwnd ; HWND
, "WStr", lpszSourceDir ; LPCWSTR
, "WStr", lpszSourceFile ; LPCWSTR
, "WStr", lpszDestDir ; LPCWSTR
, "WStr", lpszDestFile ; LPCWSTR
, "UInt", dwFlags ; DWORD
, "UInt", dwReserved ; DWORD
, "Int") ; return: HRESULT●AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved) = DLL("ADVPACK.dll", "int AdvInstallFileW(void*, char*, char*, char*, char*, dword, dword)")
# 呼び出し: AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)
# hwnd : HWND -> "void*"
# lpszSourceDir : LPCWSTR -> "char*"
# lpszSourceFile : LPCWSTR -> "char*"
# lpszDestDir : LPCWSTR -> "char*"
# lpszDestFile : LPCWSTR -> "char*"
# dwFlags : DWORD -> "dword"
# dwReserved : DWORD -> "dword"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※-W(Unicode)関数。なでしこ1はANSIのため -A 版の利用を推奨。const std = @import("std");
extern "advpack" fn AdvInstallFileW(
hwnd: ?*anyopaque, // HWND
lpszSourceDir: [*c]const u16, // LPCWSTR
lpszSourceFile: [*c]const u16, // LPCWSTR
lpszDestDir: [*c]const u16, // LPCWSTR
lpszDestFile: [*c]const u16, // LPCWSTR
dwFlags: u32, // DWORD
dwReserved: u32 // DWORD
) callconv(std.os.windows.WINAPI) i32;
// Unicode(-W): UTF-16LE のヌル終端バッファ([*c]const u16)を渡す。proc AdvInstallFileW(
hwnd: pointer, # HWND
lpszSourceDir: WideCString, # LPCWSTR
lpszSourceFile: WideCString, # LPCWSTR
lpszDestDir: WideCString, # LPCWSTR
lpszDestFile: WideCString, # LPCWSTR
dwFlags: uint32, # DWORD
dwReserved: uint32 # DWORD
): int32 {.importc: "AdvInstallFileW", stdcall, dynlib: "ADVPACK.dll".}
# Unicode(-W): WideCString は newWideCString("...") で生成。pragma(lib, "advpack");
extern(Windows)
int AdvInstallFileW(
void* hwnd, // HWND
const(wchar)* lpszSourceDir, // LPCWSTR
const(wchar)* lpszSourceFile, // LPCWSTR
const(wchar)* lpszDestDir, // LPCWSTR
const(wchar)* lpszDestFile, // LPCWSTR
uint dwFlags, // DWORD
uint dwReserved // DWORD
);ccall((:AdvInstallFileW, "ADVPACK.dll"), stdcall, Int32,
(Ptr{Cvoid}, Cwstring, Cwstring, Cwstring, Cwstring, UInt32, UInt32),
hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)
# hwnd : HWND -> Ptr{Cvoid}
# lpszSourceDir : LPCWSTR -> Cwstring
# lpszSourceFile : LPCWSTR -> Cwstring
# lpszDestDir : LPCWSTR -> Cwstring
# lpszDestFile : LPCWSTR -> Cwstring
# dwFlags : DWORD -> UInt32
# dwReserved : DWORD -> UInt32
# stdcall は 32bit のみ意味を持つ(x64 では無視)。
# Unicode(-W): Cwstring には transcode(UInt16, "...") 等で UTF-16 を渡す。local ffi = require("ffi")
ffi.cdef[[
int32_t AdvInstallFileW(
void* hwnd,
const uint16_t* lpszSourceDir,
const uint16_t* lpszSourceFile,
const uint16_t* lpszDestDir,
const uint16_t* lpszDestFile,
uint32_t dwFlags,
uint32_t dwReserved);
]]
local advpack = ffi.load("advpack")
-- advpack.AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)
-- hwnd : HWND
-- lpszSourceDir : LPCWSTR
-- lpszSourceFile : LPCWSTR
-- lpszDestDir : LPCWSTR
-- lpszDestFile : LPCWSTR
-- dwFlags : DWORD
-- dwReserved : DWORD
-- 構造体/GUIDへのポインタは cdef が通るよう void* で表記(実型は各引数コメント参照)。値渡し構造体・enum は対応する typedef を cdef に追加すること。
-- Unicode(-W): uint16_t* には UTF-16LE のバッファ(ffi.new("uint16_t[?]", ...))を渡す。const koffi = require('koffi');
const lib = koffi.load('ADVPACK.dll');
const AdvInstallFileW = lib.func('__stdcall', 'AdvInstallFileW', 'int32_t', ['void *', 'str16', 'str16', 'str16', 'str16', 'uint32_t', 'uint32_t']);
// AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)
// hwnd : HWND -> 'void *'
// lpszSourceDir : LPCWSTR -> 'str16'
// lpszSourceFile : LPCWSTR -> 'str16'
// lpszDestDir : LPCWSTR -> 'str16'
// lpszDestFile : LPCWSTR -> 'str16'
// dwFlags : DWORD -> 'uint32_t'
// dwReserved : DWORD -> 'uint32_t'
// 出力ポインタは koffi.out(...) で包む。構造体は koffi.struct で定義。const lib = Deno.dlopen("ADVPACK.dll", {
AdvInstallFileW: { parameters: ["pointer", "buffer", "buffer", "buffer", "buffer", "u32", "u32"], result: "i32" },
});
// lib.symbols.AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved)
// hwnd : HWND -> "pointer"
// lpszSourceDir : LPCWSTR -> "buffer"
// lpszSourceFile : LPCWSTR -> "buffer"
// lpszDestDir : LPCWSTR -> "buffer"
// lpszDestFile : LPCWSTR -> "buffer"
// dwFlags : DWORD -> "u32"
// dwReserved : DWORD -> "u32"
// 文字列は "buffer"。Unicode(-W) は new TextEncoder() ではなく UTF-16LE のバイト列(末尾に \x00\x00)を Uint8Array で渡す。
// 値渡し構造体は { struct: [ ...field types... ] } を使用。<?php
$ffi = FFI::cdef(<<<C
int32_t AdvInstallFileW(
void* hwnd,
const uint16_t* lpszSourceDir,
const uint16_t* lpszSourceFile,
const uint16_t* lpszDestDir,
const uint16_t* lpszDestFile,
uint32_t dwFlags,
uint32_t dwReserved);
C, "ADVPACK.dll");
// $ffi->AdvInstallFileW(hwnd, lpszSourceDir, lpszSourceFile, lpszDestDir, lpszDestFile, dwFlags, dwReserved);
// hwnd : HWND
// lpszSourceDir : LPCWSTR
// lpszSourceFile : LPCWSTR
// lpszDestDir : LPCWSTR
// lpszDestFile : LPCWSTR
// dwFlags : DWORD
// dwReserved : DWORD
// 構造体/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 Advpack extends StdCallLibrary {
Advpack INSTANCE = Native.load("advpack", Advpack.class, W32APIOptions.UNICODE_OPTIONS);
int AdvInstallFileW(
Pointer hwnd, // HWND
WString lpszSourceDir, // LPCWSTR
WString lpszSourceFile, // LPCWSTR
WString lpszDestDir, // LPCWSTR
WString lpszDestFile, // LPCWSTR
int dwFlags, // DWORD
int dwReserved // DWORD
);
}
// Unicode(-W): WString(入力)/char[](出力)で UTF-16 をマーシャリング。@[Link("advpack")]
lib LibADVPACK
fun AdvInstallFileW = AdvInstallFileW(
hwnd : Void*, # HWND
lpszSourceDir : UInt16*, # LPCWSTR
lpszSourceFile : UInt16*, # LPCWSTR
lpszDestDir : UInt16*, # LPCWSTR
lpszDestFile : UInt16*, # LPCWSTR
dwFlags : UInt32, # DWORD
dwReserved : UInt32 # DWORD
) : Int32
end
# 構造体/GUID/enum は lib 内に対応する型定義が必要。
# 呼出規約: x64 は規約統一のため OK。x86(32bit)は WINAPI=stdcall だが Crystal の fun に stdcall 付与構文がなく非対応。import 'dart:ffi';
import 'package:ffi/ffi.dart';
typedef AdvInstallFileWNative = Int32 Function(Pointer<Void>, Pointer<Utf16>, Pointer<Utf16>, Pointer<Utf16>, Pointer<Utf16>, Uint32, Uint32);
typedef AdvInstallFileWDart = int Function(Pointer<Void>, Pointer<Utf16>, Pointer<Utf16>, Pointer<Utf16>, Pointer<Utf16>, int, int);
final AdvInstallFileW = DynamicLibrary.open('ADVPACK.dll')
.lookupFunction<AdvInstallFileWNative, AdvInstallFileWDart>('AdvInstallFileW');
// hwnd : HWND -> Pointer<Void>
// lpszSourceDir : LPCWSTR -> Pointer<Utf16>
// lpszSourceFile : LPCWSTR -> Pointer<Utf16>
// lpszDestDir : LPCWSTR -> Pointer<Utf16>
// lpszDestFile : LPCWSTR -> Pointer<Utf16>
// dwFlags : DWORD -> Uint32
// dwReserved : DWORD -> Uint32
// 文字列は package:ffi の "...".toNativeUtf16()/toNativeUtf8() で変換。{$mode objfpc}{$H+}
function AdvInstallFileW(
hwnd: THandle; // HWND
lpszSourceDir: PWideChar; // LPCWSTR
lpszSourceFile: PWideChar; // LPCWSTR
lpszDestDir: PWideChar; // LPCWSTR
lpszDestFile: PWideChar; // LPCWSTR
dwFlags: DWORD; // DWORD
dwReserved: DWORD // DWORD
): Integer; stdcall;
external 'ADVPACK.dll' name 'AdvInstallFileW';import Foreign
import Foreign.C.Types
import Foreign.C.String
foreign import stdcall safe "AdvInstallFileW"
c_AdvInstallFileW :: Ptr () -> CWString -> CWString -> CWString -> CWString -> Word32 -> Word32 -> IO Int32
-- hwnd : HWND -> Ptr ()
-- lpszSourceDir : LPCWSTR -> CWString
-- lpszSourceFile : LPCWSTR -> CWString
-- lpszDestDir : LPCWSTR -> CWString
-- lpszDestFile : LPCWSTR -> CWString
-- dwFlags : DWORD -> Word32
-- dwReserved : DWORD -> Word32
-- 要 GHC(Windows)。stdcall は x64 では ccall として扱われる。ブロックする API は safe 呼び出し推奨。open Ctypes
open Foreign
let advinstallfilew =
foreign "AdvInstallFileW"
((ptr void) @-> (ptr uint16_t) @-> (ptr uint16_t) @-> (ptr uint16_t) @-> (ptr uint16_t) @-> uint32_t @-> uint32_t @-> returning int32_t)
(* hwnd : HWND -> (ptr void) *)
(* lpszSourceDir : LPCWSTR -> (ptr uint16_t) *)
(* lpszSourceFile : LPCWSTR -> (ptr uint16_t) *)
(* lpszDestDir : LPCWSTR -> (ptr uint16_t) *)
(* lpszDestFile : LPCWSTR -> (ptr uint16_t) *)
(* dwFlags : DWORD -> uint32_t *)
(* dwReserved : DWORD -> uint32_t *)
(* foreign は cdecl 前提。x64 Windows では WINAPI と一致。構造体は ctypes structure を定義のこと。 *)(cffi:define-foreign-library advpack (t "ADVPACK.dll"))
(cffi:use-foreign-library advpack)
(cffi:defcfun ("AdvInstallFileW" adv-install-file-w :convention :stdcall) :int32
(hwnd :pointer) ; HWND
(lpsz-source-dir (:string :encoding :utf-16le)) ; LPCWSTR
(lpsz-source-file (:string :encoding :utf-16le)) ; LPCWSTR
(lpsz-dest-dir (:string :encoding :utf-16le)) ; LPCWSTR
(lpsz-dest-file (:string :encoding :utf-16le)) ; LPCWSTR
(dw-flags :uint32) ; DWORD
(dw-reserved :uint32)) ; DWORD
; isize/usize(INT_PTR/SIZE_T)は x64 前提で :int64/:uint64。x86 では :int32/:uint32。use Win32::API;
my $AdvInstallFileW = Win32::API::More->new('ADVPACK',
'int AdvInstallFileW(HANDLE hwnd, LPCWSTR lpszSourceDir, LPCWSTR lpszSourceFile, LPCWSTR lpszDestDir, LPCWSTR lpszDestFile, DWORD dwFlags, DWORD dwReserved)');
# my $ret = $AdvInstallFileW->Call($hwnd, $lpszSourceDir, $lpszSourceFile, $lpszDestDir, $lpszDestFile, $dwFlags, $dwReserved);
# hwnd : HWND -> HANDLE
# lpszSourceDir : LPCWSTR -> LPCWSTR
# lpszSourceFile : LPCWSTR -> LPCWSTR
# lpszDestDir : LPCWSTR -> LPCWSTR
# lpszDestFile : LPCWSTR -> LPCWSTR
# dwFlags : DWORD -> DWORD
# dwReserved : DWORD -> DWORD
# 値渡し構造体は pack() した文字列、または Win32::API::Struct を使用。
# Unicode(-W): LPCWSTR/LPWSTR は Win32::API が UTF-16 変換を行う。関連項目
文字セット違い
- f AdvInstallFileA (ANSI版) — ファイルをコピーしてインストールする(ANSI版)。