L
Luigi
SecureZeroMemory is an alias of RtlSecureZeroMemory, an inline
function defined in WinBase.h.
I opened WinBase.h with a text editor but I didn't find any inline
definition; I only found:
#define SecureZeroMemory RtlSecureZeroMemory
However in C# I want to call SecureZeroMemory to zero a memory area
containing a password, but using user32.dll, kernel32.dll or
advapi32.dll with DllImport setting SecureZeroMemory or
RtlSecureZeroMemory as the entry point an exception says unable to
find entrypoint X in DLL Y.
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
private static extern void SecureZeroMemory(IntPtr ptr, IntPtr cnt);
Can you help me?
Thanks, Luigi.
function defined in WinBase.h.
I opened WinBase.h with a text editor but I didn't find any inline
definition; I only found:
#define SecureZeroMemory RtlSecureZeroMemory
However in C# I want to call SecureZeroMemory to zero a memory area
containing a password, but using user32.dll, kernel32.dll or
advapi32.dll with DllImport setting SecureZeroMemory or
RtlSecureZeroMemory as the entry point an exception says unable to
find entrypoint X in DLL Y.
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
private static extern void SecureZeroMemory(IntPtr ptr, IntPtr cnt);
Can you help me?
Thanks, Luigi.