mirror of
https://github.com/modernw/AppInstallerForWin8.git
synced 2026-04-17 13:22:51 +10:00
添加项目文件。
This commit is contained in:
26
PackageManagerAdd/PackageManager.h
Normal file
26
PackageManagerAdd/PackageManager.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#ifdef PKGMGR_EXPORTS
|
||||
#define PKGMGR_API __declspec(dllexport)
|
||||
#else
|
||||
#define PKGMGR_API __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
typedef void (*_PACKAGE_ADD_PROGRESS)(unsigned progress);
|
||||
typedef _PACKAGE_ADD_PROGRESS PACKAGE_ADD_PROGRESS;
|
||||
|
||||
enum class InstallStatus
|
||||
{
|
||||
Success,
|
||||
Error,
|
||||
Canceled
|
||||
};
|
||||
|
||||
extern "C" PKGMGR_API InstallStatus AddPackageFromPath (LPCWSTR lpswPath, PACKAGE_ADD_PROGRESS callbProgress);
|
||||
|
||||
extern "C" PKGMGR_API LPCWSTR GetLastErrorCode ();
|
||||
|
||||
extern "C" PKGMGR_API LPCWSTR GetLastErrorDetailText ();
|
||||
|
||||
extern "C" PKGMGR_API size_t GetLastErrorCodeLength ();
|
||||
|
||||
extern "C" PKGMGR_API size_t GetLastErrorDetailTextLength ();
|
||||
Reference in New Issue
Block a user