1
0
Fork 0
phizclip-desktop-demo/vendor/finclip/include/finclip_wrapper.h

105 lines
2.8 KiB
C
Raw Normal View History

2021-11-18 22:25:15 +08:00
#ifndef __H_FINCLIP_WRAPPER_H__
#define __H_FINCLIP_WRAPPER_H__
#include "finclip_api.h"
#include <windows.h>
2022-01-05 21:52:53 +08:00
namespace com::finogeeks::finclip::wrapper {
2021-11-18 22:25:15 +08:00
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief SDI
* @detail
*
* @param hinstance
* @param configpacker
* @return 01
*/
DLL_EXPORT int FINSTDMETHODCALLTYPE Initialize(HINSTANCE hinstance, IFinConfigPacker* configpacker);
/**
* @brief
* @detail
*
* @param
* @param
* @return
* @retval
* @note
* @attention
* @warning
* @exception
*/
DLL_EXPORT IPackerFactory* FINSTDMETHODCALLTYPE GetPackerFactory();
/**
* @brief
* @detail
*
* @param
* @param
* @return
* @retval
* @note
* @attention
* @warning
* @exception
*/
2021-11-23 18:53:04 +08:00
DLL_EXPORT int FINSTDMETHODCALLTYPE CloseAllApplet();
2021-11-18 22:25:15 +08:00
/**
* @brief
* @detail
*
* @param
* @param
* @return
* @retval
* @note
* @attention
* @warning
* @exception
*/
2021-11-23 18:53:04 +08:00
DLL_EXPORT int FINSTDMETHODCALLTYPE CleanCache();
2021-11-18 22:25:15 +08:00
///小程序Api
/**打开小程序
*
* @param appstore
* @param appId appId
* @param param
* @param callback
2022-01-05 21:52:53 +08:00
* @param exe_path : finclip.exe, d:\finclip.exe
2021-11-18 22:25:15 +08:00
* @return 01
*/
2021-11-23 18:53:04 +08:00
DLL_EXPORT int FINSTDMETHODCALLTYPE StartApplet(HWND hWnd, int appstore, const char* appid, const char* page_path,
2022-01-05 21:52:53 +08:00
IFinPacker* params, const char* exe_path, FinClipSDKCallback callback);
2021-11-23 18:53:04 +08:00
/**
* @brief Set the Applet Pos object
*
* @param appid
* @param appstore
* @param left
* @param top
* @param width
* @param height
* @return DLL_EXPORT
*/
2022-01-05 21:52:53 +08:00
DLL_EXPORT void FINSTDMETHODCALLTYPE SetAppletPos(const char* appid, int left, int top, int width, int height,
bool repaint);
2021-11-23 18:53:04 +08:00
/**
* @brief
*
* @return DLL_EXPORT
*/
DLL_EXPORT int FINSTDMETHODCALLTYPE FinClipShutdown();
2021-11-18 22:25:15 +08:00
2021-11-23 18:53:04 +08:00
DLL_EXPORT int FINSTDMETHODCALLTYPE InvokeWebApi(const char* app_id, const char* api_name, const char* params);
2021-11-18 22:25:15 +08:00
2022-01-05 21:52:53 +08:00
DLL_EXPORT int FINSTDMETHODCALLTYPE CloseApplet(const char* appid);
2021-11-18 22:25:15 +08:00
#ifdef __cplusplus
}
#endif
2022-01-05 21:52:53 +08:00
} // namespace com::finogeeks::finclip::wrapper
2021-11-18 22:25:15 +08:00
#endif