mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge PR #613: WinUi: remove unused functions
This commit is contained in:
commit
b70d81b5a8
1258
src/Cedar/WinUi.c
1258
src/Cedar/WinUi.c
File diff suppressed because it is too large
Load Diff
@ -410,7 +410,6 @@ struct LED
|
||||
};
|
||||
|
||||
void LedDrawString(LED *d, char *str, HFONT f);
|
||||
void LedDrawRect(LED *d);
|
||||
void LedMainDraw(LED *d, HANDLE h);
|
||||
void LedSpecial(LED *d, HANDLE h, UINT n);
|
||||
|
||||
@ -575,7 +574,6 @@ struct WINUI_UPDATE_DLG_PARAM
|
||||
|
||||
// Function prototype
|
||||
void InitWinUi(wchar_t *software_name, char *font, UINT fontsize);
|
||||
void SetWinUiTitle(wchar_t *title);
|
||||
void FreeWinUi();
|
||||
|
||||
WINUI_UPDATE *InitUpdateUi(wchar_t *title, char *name, char *family_name, UINT64 current_date, UINT current_build, UINT current_ver, char *client_id, bool use_suppress_flag);
|
||||
@ -619,7 +617,6 @@ void UnselectEdit(HWND hWnd, UINT id);
|
||||
UINT SendMsg(HWND hWnd, UINT id, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||
bool IsEmpty(HWND hWnd, UINT id);
|
||||
UINT GetTextLen(HWND hWnd, UINT id, bool unicode);
|
||||
UINT GetTextSize(HWND hWnd, UINT id, bool unicode);
|
||||
UINT GetStyle(HWND hWnd, UINT id);
|
||||
void SetStyle(HWND hWnd, UINT id, UINT style);
|
||||
void RemoveStyle(HWND hWnd, UINT id, UINT style);
|
||||
@ -632,23 +629,15 @@ void SetShow(HWND hWnd, UINT id, bool b);
|
||||
bool IsHide(HWND hWnd, UINT id);
|
||||
bool IsShow(HWND hWnd, UINT id);
|
||||
void Top(HWND hWnd);
|
||||
void NoTop(HWND hWnd);
|
||||
void *GetParam(HWND hWnd);
|
||||
void SetParam(HWND hWnd, void *param);
|
||||
UINT DlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, bool white_color);
|
||||
void NoticeSettingChange();
|
||||
void UiTest();
|
||||
UINT DialogInternal(HWND hWnd, UINT id, DIALOG_PROC *proc, void *param);
|
||||
UINT MsgBox(HWND hWnd, UINT flag, wchar_t *msg);
|
||||
UINT MsgBoxEx(HWND hWnd, UINT flag, wchar_t *msg, ...);
|
||||
void SetTextEx(HWND hWnd, UINT id, wchar_t *str, ...);
|
||||
void SetTextExA(HWND hWnd, UINT id, char *str, ...);
|
||||
void FormatText(HWND hWnd, UINT id, ...);
|
||||
void FormatTextA(HWND hWnd, UINT id, ...);
|
||||
void Center(HWND hWnd);
|
||||
void GetWindowClientRect(HWND hWnd, struct tagRECT *rect);
|
||||
void CenterParent(HWND hWnd);
|
||||
void GetMonitorSize(UINT *width, UINT *height);
|
||||
void DisableClose(HWND hWnd);
|
||||
void EnableClose(HWND hWnd);
|
||||
void InitFont();
|
||||
@ -657,21 +646,16 @@ int CompareFont(void *p1, void *p2);
|
||||
HFONT GetFont(char *name, UINT size, bool bold, bool italic, bool underline, bool strikeout);
|
||||
double GetTextScalingFactor();
|
||||
bool CalcFontSize(HFONT hFont, UINT *x, UINT *y);
|
||||
bool GetFontSize(HFONT hFont, UINT *x, UINT *y);
|
||||
void SetFont(HWND hWnd, UINT id, HFONT hFont);
|
||||
void SetFontEx(HWND hWnd, UINT id, HFONT hFont, bool no_adjust_font_size);
|
||||
void LimitText(HWND hWnd, UINT id, UINT count);
|
||||
bool CheckTextLen(HWND hWnd, UINT id, UINT len, bool unicode);
|
||||
bool CheckTextSize(HWND hWnd, UINT id, UINT size, bool unicode);
|
||||
void Check(HWND hWnd, UINT id, bool b);
|
||||
bool IsChecked(HWND hWnd, UINT id);
|
||||
void SetIcon(HWND hWnd, UINT id, UINT icon_id);
|
||||
void SetBitmap(HWND hWnd, UINT id, UINT bmp_id);
|
||||
bool SecureDeviceWindow(HWND hWnd, WINUI_SECURE_BATCH *batch, UINT num_batch, UINT device_id, UINT bitmap_id);
|
||||
UINT Dialog(HWND hWnd, UINT id, WINUI_DIALOG_PROC *proc, void *param);
|
||||
UINT DialogEx(HWND hWnd, UINT id, WINUI_DIALOG_PROC *proc, void *param, bool white);
|
||||
UINT DialogEx2(HWND hWnd, UINT id, WINUI_DIALOG_PROC *proc, void *param, bool white, bool meiryo);
|
||||
HWND DialogCreateEx(HWND hWnd, UINT id, WINUI_DIALOG_PROC *proc, void *param, bool white);
|
||||
UINT __stdcall InternalDialogProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||
UINT SecureDeviceWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
|
||||
HFONT Font(UINT size, UINT bold);
|
||||
@ -689,10 +673,6 @@ wchar_t *SaveDlg(HWND hWnd, wchar_t *filter, wchar_t *title, wchar_t *default_na
|
||||
char *SaveDlgA(HWND hWnd, char *filter, char *title, char *default_name, char *default_ext);
|
||||
wchar_t *MakeFilter(wchar_t *str);
|
||||
char *MakeFilterA(char *str);
|
||||
void PkcsUtil();
|
||||
UINT PkcsUtilProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
|
||||
void PkcsUtilWrite(HWND hWnd);
|
||||
void PkcsUtilErase(HWND hWnd);
|
||||
bool PassphraseDlg(HWND hWnd, char *pass, UINT pass_size, BUF *buf, bool p12);
|
||||
UINT PassphraseDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
|
||||
bool PasswordDlg(HWND hWnd, UI_PASSWORD_DLG *p);
|
||||
@ -702,8 +682,6 @@ void PasswordDlgProcChange(HWND hWnd, UI_PASSWORD_DLG *p);
|
||||
UINT CbAddStr(HWND hWnd, UINT id, wchar_t *str, UINT data);
|
||||
UINT CbAddStrA(HWND hWnd, UINT id, char *str, UINT data);
|
||||
UINT CbAddStr9xA(HWND hWnd, UINT id, char *str, UINT data);
|
||||
UINT CbInsertStr(HWND hWnd, UINT id, UINT index, wchar_t *str, UINT data);
|
||||
UINT CbInsertStr9xA(HWND hWnd, UINT id, UINT index, char *str, UINT data);
|
||||
void CbSelectIndex(HWND hWnd, UINT id, UINT index);
|
||||
UINT CbNum(HWND hWnd, UINT id);
|
||||
UINT CbFindStr(HWND hWnd, UINT id, wchar_t *str);
|
||||
@ -718,21 +696,7 @@ UINT CbGetSelectIndex(HWND hWnd, UINT id);
|
||||
UINT CbGetSelect(HWND hWnd, UINT id);
|
||||
void SetRange(HWND hWnd, UINT id, UINT start, UINT end);
|
||||
void SetPos(HWND hWnd, UINT id, UINT pos);
|
||||
UINT LbAddStr(HWND hWnd, UINT id, wchar_t *str, UINT data);
|
||||
UINT LbAddStrA(HWND hWnd, UINT id, char *str, UINT data);
|
||||
UINT LbInsertStr(HWND hWnd, UINT id, UINT index, wchar_t *str, UINT data);
|
||||
UINT LbInsertStrA(HWND hWnd, UINT id, UINT index, char *str, UINT data);
|
||||
void LbSelectIndex(HWND hWnd, UINT id, UINT index);
|
||||
UINT LbNum(HWND hWnd, UINT id);
|
||||
UINT LbFindStr(HWND hWnd, UINT id, wchar_t *str);
|
||||
wchar_t *LbGetStr(HWND hWnd, UINT id);
|
||||
UINT LbFindData(HWND hWnd, UINT id, UINT data);
|
||||
UINT LbGetData(HWND hWnd, UINT id, UINT index);
|
||||
void LbSelect(HWND hWnd, UINT id, int data);
|
||||
void LbReset(HWND hWnd, UINT id);
|
||||
void LbSetHeight(HWND hWnd, UINT id, UINT value);
|
||||
UINT LbGetSelectIndex(HWND hWnd, UINT id);
|
||||
UINT LbGetSelect(HWND hWnd, UINT id);
|
||||
STATUS_WINDOW *StatusPrinterWindowStart(SOCK *s, wchar_t *account_name);
|
||||
void StatusPrinterWindowStop(STATUS_WINDOW *sw);
|
||||
void StatusPrinterWindowPrint(STATUS_WINDOW *sw, wchar_t *str);
|
||||
@ -753,14 +717,12 @@ UINT LvInsertItemByImageListIdA(HWND hWnd, UINT id, UINT image, void *param, cha
|
||||
void LvSetItem(HWND hWnd, UINT id, UINT index, UINT pos, wchar_t *str);
|
||||
void LvSetItemA(HWND hWnd, UINT id, UINT index, UINT pos, char *str);
|
||||
void LvSetItemParam(HWND hWnd, UINT id, UINT index, void *param);
|
||||
void LvSetItemImage(HWND hWnd, UINT id, UINT index, UINT icon);
|
||||
void LvSetItemImageByImageListId(HWND hWnd, UINT id, UINT index, UINT image);
|
||||
void LvDeleteItem(HWND hWnd, UINT id, UINT index);
|
||||
UINT LvNum(HWND hWnd, UINT id);
|
||||
void *LvGetParam(HWND hWnd, UINT id, UINT index);
|
||||
wchar_t *LvGetStr(HWND hWnd, UINT id, UINT index, UINT pos);
|
||||
char *LvGetStrA(HWND hWnd, UINT id, UINT index, UINT pos);
|
||||
void LvShow(HWND hWnd, UINT id, UINT index);
|
||||
UINT LvSearchParam(HWND hWnd, UINT id, void *param);
|
||||
UINT LvSearchStr(HWND hWnd, UINT id, UINT pos, wchar_t *str);
|
||||
UINT LvSearchStrA(HWND hWnd, UINT id, UINT pos, char *str);
|
||||
@ -775,7 +737,6 @@ UINT LvGetNextMasked(HWND hWnd, UINT id, UINT start);
|
||||
bool LvIsMasked(HWND hWnd, UINT id);
|
||||
bool LvIsSingleSelected(HWND hWnd, UINT id);
|
||||
bool LvIsMultiMasked(HWND hWnd, UINT id);
|
||||
UINT LvGetMaskedNum(HWND hWnd, UINT id);
|
||||
void LvAutoSize(HWND hWnd, UINT id);
|
||||
void LvSelect(HWND hWnd, UINT id, UINT index);
|
||||
void LvSelectByParam(HWND hWnd, UINT id, void *param);
|
||||
@ -807,7 +768,6 @@ void LvRemoveStyle(HWND hWnd, UINT id, UINT style);
|
||||
HMENU LoadSubMenu(UINT menu_id, UINT pos, HMENU *parent_menu);
|
||||
UINT GetMenuItemPos(HMENU hMenu, UINT id);
|
||||
void DeleteMenuItem(HMENU hMenu, UINT pos);
|
||||
void SetMenuItemEnable(HMENU hMenu, UINT pos, bool enable);
|
||||
void SetMenuItemBold(HMENU hMenu, UINT pos, bool bold);
|
||||
wchar_t *GetMenuStr(HMENU hMenu, UINT pos);
|
||||
char *GetMenuStrA(HMENU hMenu, UINT pos);
|
||||
@ -831,7 +791,6 @@ void LvSortHander(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, UINT id);
|
||||
void LvStandardHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, UINT id);
|
||||
void IpSet(HWND hWnd, UINT id, UINT ip);
|
||||
UINT IpGet(HWND hWnd, UINT id);
|
||||
void IpClear(HWND hWnd, UINT id);
|
||||
bool IpIsFilled(HWND hWnd, UINT id);
|
||||
UINT IpGetFilledNum(HWND hWnd, UINT id);
|
||||
void About(HWND hWnd, CEDAR *cedar, wchar_t *product_name);
|
||||
@ -844,7 +803,6 @@ char *StringDlgA(HWND hWnd, wchar_t *title, wchar_t *info, char *def, UINT icon,
|
||||
UINT StringDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
|
||||
void InitDialogInternational(HWND hWnd, void *pparam);
|
||||
void AdjustWindowAndControlSize(HWND hWnd, bool *need_resize, double *factor_x, double *factor_y);
|
||||
void GetWindowAndControlSizeResizeScale(HWND hWnd, bool *need_resize, double *factor_x, double *factor_y);
|
||||
void AdjustDialogXY(UINT *x, UINT *y, UINT dlgfont_x, UINT dlgfont_y);
|
||||
HFONT GetDialogDefaultFont();
|
||||
HFONT GetDialogDefaultFontEx(bool meiryo);
|
||||
@ -862,21 +820,10 @@ void KakushiThread(THREAD *thread, void *param);
|
||||
KAKUSHI *InitKakushi();
|
||||
void FreeKakushi(KAKUSHI *k);
|
||||
void ShowEasterEgg(HWND hWnd);
|
||||
bool ExecuteHamcoreExe(char *name);
|
||||
bool IsRegistedToDontShowFreeEditionDialog(char *server_name);
|
||||
void RegistToDontShowFreeEditionDialog(char *server_name);
|
||||
void ShowFreeInfoDialog(HWND hWnd, FREEINFO *info);
|
||||
UINT FreeInfoDialogProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
|
||||
FREEINFO *StartFreeInfoDlg(char *server_name);
|
||||
void FreeInfoThread(THREAD *thread, void *param);
|
||||
void EndFreeInfoDlg(FREEINFO *info);
|
||||
bool Win32CnCheckAlreadyExists(bool lock);
|
||||
void RegistWindowsFirewallAll();
|
||||
void RegistWindowsFirewallAllEx(char *dir);
|
||||
void InitVistaWindowTheme(HWND hWnd);
|
||||
void WinUiDebug(wchar_t *str);
|
||||
void WinUiDebugInit();
|
||||
void WinUiDebugFree();
|
||||
void OnceMsg(HWND hWnd, wchar_t *title, wchar_t *message, bool show_checkbox, UINT icon);
|
||||
void OnceMsgEx(HWND hWnd, wchar_t *title, wchar_t *message, bool show_checkbox, UINT icon, bool *halt);
|
||||
UINT GetOnceMsgHash(wchar_t *title, wchar_t *message);
|
||||
@ -891,7 +838,6 @@ HFONT GetMeiryoFont();
|
||||
HFONT GetMeiryoFontEx(UINT font_size);
|
||||
HFONT GetMeiryoFontEx2(UINT font_size, bool bold);
|
||||
bool ShowWindowsNetworkConnectionDialog();
|
||||
SOCK *WinConnectEx2(HWND hWnd, char *server, UINT port, UINT timeout, UINT icon_id, wchar_t *caption, wchar_t *info, bool try_start_ssl, bool ssl_no_tls);
|
||||
SOCK *WinConnectEx3(HWND hWnd, char *server, UINT port, UINT timeout, UINT icon_id, wchar_t *caption, wchar_t *info, UINT *nat_t_error_code, char *nat_t_svc_name, bool try_start_ssl, bool ssl_no_tls);
|
||||
UINT WinConnectDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
|
||||
void WinConnectDlgThread(THREAD *thread, void *param);
|
||||
@ -909,7 +855,6 @@ WIZARD_PAGE *NewWizardPage(UINT id, WINUI_WIZARD_PROC *proc, wchar_t *title);
|
||||
void FreeWizardPage(WIZARD_PAGE *p);
|
||||
void AddWizardPage(WIZARD *w, WIZARD_PAGE *p);
|
||||
WIZARD_PAGE *GetWizardPage(WIZARD *w, UINT id);
|
||||
UINT GetWizardPageIndex(WIZARD *w, UINT id);
|
||||
void *CreateWizardPageInstance(WIZARD *w, WIZARD_PAGE *p);
|
||||
void ShowWizard(HWND hWndParent, WIZARD *w, UINT start_id);
|
||||
void SetWizardButton(WIZARD_PAGE *p, bool enable_next, bool enable_back, bool enable_close, bool is_finish);
|
||||
|
Loading…
Reference in New Issue
Block a user