mirror of
https://github.com/zs-yg/kortapp-z.git
synced 2025-12-07 00:20:43 +08:00
27 lines
545 B
C
27 lines
545 B
C
#include <windows.h>
|
|
#include "video_compressor.h"
|
|
#include "gui.h"
|
|
|
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
|
LPSTR lpCmdLine, int nCmdShow)
|
|
{
|
|
// 抑制未使用参数警告
|
|
(void)hPrevInstance;
|
|
(void)lpCmdLine;
|
|
(void)nCmdShow;
|
|
|
|
// 初始化GUI
|
|
if (!init_gui(hInstance)) {
|
|
return 1;
|
|
}
|
|
|
|
// 主消息循环
|
|
MSG msg;
|
|
while (GetMessage(&msg, NULL, 0, 0)) {
|
|
TranslateMessage(&msg);
|
|
DispatchMessage(&msg);
|
|
}
|
|
|
|
return (int)msg.wParam;
|
|
}
|