2024-01-08 23:37:00 +08:00
|
|
|
#pragma once
|
2024-04-14 20:55:06 +08:00
|
|
|
#define DECLARE extern "C" __declspec(dllexport)
|
2024-04-02 15:36:52 +08:00
|
|
|
extern "C"
|
|
|
|
{
|
2024-04-14 20:55:06 +08:00
|
|
|
|
2024-04-04 00:41:44 +08:00
|
|
|
__declspec(dllexport) bool queryversion(const wchar_t *exe, WORD *_1, WORD *_2, WORD *_3, WORD *_4);
|
2024-01-08 23:37:00 +08:00
|
|
|
|
2024-07-14 15:09:37 +08:00
|
|
|
__declspec(dllexport) void SAPI_List(int version, void (*cb)(const wchar_t *));
|
2024-01-08 23:37:00 +08:00
|
|
|
__declspec(dllexport) BOOL SetProcessMute(DWORD Pid, bool mute);
|
|
|
|
__declspec(dllexport) bool GetProcessMute(DWORD Pid);
|
|
|
|
|
2024-04-02 15:36:52 +08:00
|
|
|
__declspec(dllexport) size_t levenshtein_distance(size_t len1, const wchar_t *string1,
|
|
|
|
size_t len2, const wchar_t *string2);
|
|
|
|
__declspec(dllexport) double levenshtein_ratio(size_t len1, const wchar_t *string1,
|
|
|
|
size_t len2, const wchar_t *string2);
|
2024-01-08 23:37:00 +08:00
|
|
|
|
2024-04-02 15:36:52 +08:00
|
|
|
__declspec(dllexport) void *mecab_init(char *utf8path, wchar_t *);
|
2024-07-14 15:09:37 +08:00
|
|
|
__declspec(dllexport) bool mecab_parse(void *trigger, char *utf8string, void (*callback)(const char *, const char *));
|
2024-04-02 15:36:52 +08:00
|
|
|
__declspec(dllexport) void mecab_end(void *trigger);
|
2024-01-08 23:37:00 +08:00
|
|
|
|
2024-07-14 15:09:37 +08:00
|
|
|
__declspec(dllexport) bool clipboard_get(void (*)(const wchar_t *));
|
2024-04-02 15:36:52 +08:00
|
|
|
__declspec(dllexport) bool clipboard_set(HWND hwnd, wchar_t *text);
|
|
|
|
__declspec(dllexport) void GetLnkTargetPath(wchar_t *lnkFilePath, wchar_t *path, wchar_t *tgtpath, wchar_t *iconpath, wchar_t *dirpath);
|
|
|
|
__declspec(dllexport) bool otsu_binary(const void *image, int thresh);
|
2024-01-08 23:37:00 +08:00
|
|
|
|
2024-07-14 15:09:37 +08:00
|
|
|
__declspec(dllexport) bool extracticon2data(const wchar_t *name, void (*)(const char *, size_t));
|
2024-01-08 23:37:00 +08:00
|
|
|
}
|