GetEmbeddedFileContentToFileA
文件屬性
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetEmbeddedFileContentToFile 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
擷取指定的內嵌檔案,並將內容寫入指定檔案
語法
Delphi
Function DLGetEmbeddedFileContentToFileA(InstanceID, Index: Integer; FileName: PAnsiChar): Integer;
DLL
int DLGetEmbeddedFileContentToFileA(int InstanceID, int Index, const char* FileName);
參數
| Index | 內嵌檔案的索引。必須是 1 到 EmbeddedFileCount 傳回值之間的數字 |
|---|---|
| FileName | 要寫入內容的檔案路徑與檔名。 |
傳回值
| 0 | 無法寫入指定檔案,或 Index 參數無效。 |
|---|---|
| 1 | 內嵌檔案內容已成功寫入指定檔案。 |