SetupDecompressOrCopyFile

機能
ファイルをコピーし、必要に応じて解凍する
Declare Function SetupDecompressOrCopyFile _
Lib "setupapi.dll" Alias "SetupDecompressOrCopyFileA" _
(ByVal SourceFileName As String, ByVal TargetFileName As String, _
ByVal CompressionType As Long) As Long
Declare Function SetupDecompressOrCopyFile _
Lib "setupapi.dll" Alias "SetupDecompressOrCopyFileA" _
(ByVal SourceFileName As String, ByVal TargetFileName As String, _
ByVal CompressionType As Integer) As Integer

DWORD SetupDecompressOrCopyFile(
PCTSTR SourceFileName,
PCTSTR TargetFileName,
PUINT CompressionType
);
引数
SourceFileName

コピーするファイル名
TargetFileName
セットアップ先の正確な名前
CompressionType
ソースファイルで使われている圧縮タイプへのポインタ
FILE_COMPRESSION_NONEを指定したとき、解凍せずにコピーする
指定されていないとき、圧縮のタイプを自動的に調べる
戻り値
正常終了のとき          No_Error(=0)
失敗したとき            Win32のエラーコード