I just downloaded the mingw GUI installer and did a base installation. I have a working gcc compiler, all my packages are up to date, I installed the Win API packages.
In the Winnt.h file it should be a RtlSecureZeroMemory define which is a define of SecureZeroMemory.
I searched all the .H files, these defines are missing. My code uses SecureZeroMemory, so fails on compilation.
Did I missed something? Or this macro was removed from the mingw Win API H files??
Last edit: Kantor Zsolt 2019-07-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
of course do we have SecureZeroMemory as define to
RtlSecureZeroMemory. See for this winbase.h. The RtlSecureZeroMemory
instrinc function is implemented for mingw-w64 within our kernel32
library. So by linking to it, it should work flawless. My tests
confirm that.
So I am not quite sure how your setup was done, but could you be a bit
more specific?
I just downloaded the mingw GUI installer and did a base installation. I have a working gcc compiler, all my packages are up to date, I installed the Win API packages.
In the Winnt.h file it should be a RtlSecureZeroMemory define which is a define of SecureZeroMemory.
I searched all the .H files, these defines are missing. My code uses SecureZeroMemory, so failes on compilation.
Did I missed something? Or this macro was removed from the mingw Win API H files??
SecureZeroMemory is missing from the Win API headers
In the meantime, somehow I understood this problem. I installed the older mingw (using the 2017 beta GUI setup - this is the latest) and not the mingw-w64. The problem is that I'm using WinXP and I have issues installing and using mingw-w64 on XP.
But I don't know why the last version of the "classic" mingw does not has that RtlSecureZeroMemory defined in the winnt.h header (as I know it should be a macro define in that header). If you wish I can reinstall mingw (NOT mingw-w64) to point out the issue.
Regards,
Zsolt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just downloaded the mingw GUI installer and did a base installation. I have a working gcc compiler, all my packages are up to date, I installed the Win API packages.
In the Winnt.h file it should be a RtlSecureZeroMemory define which is a define of SecureZeroMemory.
I searched all the .H files, these defines are missing. My code uses SecureZeroMemory, so fails on compilation.
Did I missed something? Or this macro was removed from the mingw Win API H files??
Last edit: Kantor Zsolt 2019-07-21
Hi,
of course do we have SecureZeroMemory as define to
RtlSecureZeroMemory. See for this winbase.h. The RtlSecureZeroMemory
instrinc function is implemented for mingw-w64 within our kernel32
library. So by linking to it, it should work flawless. My tests
confirm that.
So I am not quite sure how your setup was done, but could you be a bit
more specific?
Thanks in advance
Kai
Am So., 21. Juli 2019 um 22:58 Uhr schrieb Kantor Zsolt
kantorzsolt@users.sourceforge.net:
In the meantime, somehow I understood this problem. I installed the older mingw (using the 2017 beta GUI setup - this is the latest) and not the mingw-w64. The problem is that I'm using WinXP and I have issues installing and using mingw-w64 on XP.
But I don't know why the last version of the "classic" mingw does not has that RtlSecureZeroMemory defined in the winnt.h header (as I know it should be a macro define in that header). If you wish I can reinstall mingw (NOT mingw-w64) to point out the issue.
Regards,
Zsolt