The warning is thrown because the parameter is declared as
_Reserved_
. In such cases
NULL
should be passed.
The
ExtractIcon function (Windows)[
^] documentation is unclear here. With other functions, the documentation usually states explicitly that the parameter should be
NULL
.
I suggest to pass
NULL
and check if an icon handle is returned. I expect that it will work because the "Handle to the instance of the application that calls the function" should be not required to load an icon from a specific file.