|
9 | 9 | * - load the dll even if working directory is not the dir with the DLL |
10 | 10 | */ |
11 | 11 | /* |
12 | | - * Copyright (c) 2019-2023 CESNET, z.s.p.o. |
| 12 | + * Copyright (c) 2019-2025 CESNET |
13 | 13 | * All rights reserved. |
14 | 14 | * |
15 | 15 | * Redistribution and use in source and binary forms, with or without |
|
41 | 41 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
42 | 42 | */ |
43 | 43 |
|
44 | | -#ifdef HAVE_CONFIG_H |
45 | | -#include "config.h" |
46 | | -#include "config_unix.h" |
47 | | -#include "config_win32.h" |
48 | | -#endif /* HAVE_CONFIG_H */ |
49 | | - |
50 | | -#include <shellapi.h> |
51 | | -#include <stdbool.h> |
52 | | -#include <stdio.h> |
53 | | -#include <stdlib.h> |
54 | | - |
55 | | -#include "audio/types.h" |
56 | | -#include "debug.h" |
57 | | -#include "host.h" |
58 | | -#include "lib_common.h" |
59 | | -#include "utils/color_out.h" |
60 | | -#include "utils/macros.h" |
61 | | -#include "utils/text.h" |
62 | | -#include "utils/windows.h" |
63 | | -#include "video.h" |
64 | | -#include "video_capture.h" |
65 | | -#include "video_capture_params.h" |
| 44 | +#define WIN32_LEAN_AND_MEAN |
| 45 | +#include <windows.h> // for INT_PTR |
| 46 | + |
| 47 | +#include <assert.h> // for assert |
| 48 | +#include <shellapi.h> // for ShellExecuteA, ShellExecute |
| 49 | +#include <stdbool.h> // for bool, false, true |
| 50 | +#include <stdio.h> // for NULL, snprintf |
| 51 | +#include <stdlib.h> // for free, calloc, strtol |
| 52 | +#include <string.h> // for strchr, strcmp, strlen, strstr |
| 53 | + |
| 54 | +#include "debug.h" // for log_msg, LOG_LEVEL_ERROR, MSG, LOG... |
| 55 | +#include "host.h" // for uv_argv, uv_argc |
| 56 | +#include "lib_common.h" // for REGISTER_MODULE, library_class |
| 57 | +#include "types.h" // for device_info |
| 58 | +#include "utils/color_out.h" // for color_printf, TBOLD, TRED |
| 59 | +#include "utils/macros.h" // for IF_NOT_NULL_ELSE, IS_KEY_PREFIX |
| 60 | +#include "utils/text.h" // for wrap_paragraph |
| 61 | +#include "utils/windows.h" // for get_win32_error, hresult_to_str |
| 62 | +#include "video_capture.h" // for VIDCAP_INIT_FAIL, video_capture_info |
| 63 | +#include "video_capture_params.h" // for vidcap_params_allocate, vidcap_par... |
66 | 64 |
|
67 | 65 | #define MOD_NAME "[screen win] " |
68 | 66 | #define FILTER_UPSTREAM_URL "https://github.com/rdp/screen-capture-recorder-to-video-windows-free/releases" |
@@ -387,7 +385,7 @@ static int register_screen_cap_rec_library(bool is_elevated) { |
387 | 385 | if ((INT_PTR) ret > 32) { |
388 | 386 | log_msg(LOG_LEVEL_NOTICE, MOD_NAME "Module installation successful.\n"); |
389 | 387 | log_msg(LOG_LEVEL_NOTICE, MOD_NAME "If you want to unregister the module, run 'uv -t screen:unregister'.\n"); |
390 | | - sleep(2); |
| 388 | + Sleep(2000); // 2 s |
391 | 389 | return 1; |
392 | 390 | } |
393 | 391 | } |
|
0 commit comments