Files
AppInstallerForWin8/Base64Img/Base64Img.h
Bruce 949759ffe9 Updates for WebUI:
· [Important] Fixed the destruction issue with PriReader (caused by incorrect pointer types leading to unexecuted object destruction tasks).
· [Important] Added a program execution selection interface for packages containing multiple applications (still using WebUI).
 Issue: Since the selection window is set to close when losing focus, checking the "Launch when ready" option after successful installation causes the pop-up window to disappear when a Toast notification appears (due to focus loss). Currently, the selection window can only be displayed by clicking a button.
· [Optimization] Reduced the creation of PriReader objects to lower memory and storage consumption.
(Translated by DeepSeek)
2025-03-02 00:33:09 +08:00

19 lines
625 B
C

// 下列 ifdef 块是创建使从 DLL 导出更简单的
// 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 BASE64IMG_EXPORTS
// 符号编译的。在使用此 DLL 的
// 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
// BASE64IMG_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
// 符号视为是被导出的。
#ifdef BASE64IMG_EXPORTS
#define BASE64IMG_API __declspec(dllexport)
#else
#define BASE64IMG_API __declspec(dllimport)
#endif
typedef HANDLE HISTREAM;
typedef char *LPSTR;
extern "C" BASE64IMG_API LPSTR StreamToBase64 (HISTREAM ifile);
extern "C" BASE64IMG_API LPWSTR StreamToBase64W (HISTREAM ifile);