Skip to content

Commit 4259998

Browse files
committed
vcap/screen_win: IWYU
1 parent d75951d commit 4259998

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

src/video_capture/screen_win.c

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* - load the dll even if working directory is not the dir with the DLL
1010
*/
1111
/*
12-
* Copyright (c) 2019-2023 CESNET, z.s.p.o.
12+
* Copyright (c) 2019-2025 CESNET
1313
* All rights reserved.
1414
*
1515
* Redistribution and use in source and binary forms, with or without
@@ -41,28 +41,26 @@
4141
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4242
*/
4343

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...
6664

6765
#define MOD_NAME "[screen win] "
6866
#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) {
387385
if ((INT_PTR) ret > 32) {
388386
log_msg(LOG_LEVEL_NOTICE, MOD_NAME "Module installation successful.\n");
389387
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
391389
return 1;
392390
}
393391
}

0 commit comments

Comments
 (0)