SecureZeroMemor y is an alias of RtlSecureZeroMe mory, 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 SecureZeroMemor y RtlSecureZeroMe mory
However in C# I want to call SecureZeroMemor y to zero a memory area
containing a password, but using user32.dll, kernel32.dll or
advapi32.dll with DllImport setting SecureZeroMemor y or
RtlSecureZeroMe mory as the entry point an exception says unable to
find entrypoint X in DLL Y.
[DllImport("kern el32.dll", CharSet = CharSet.Auto)]
private static extern void SecureZeroMemor y(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 SecureZeroMemor y RtlSecureZeroMe mory
However in C# I want to call SecureZeroMemor y to zero a memory area
containing a password, but using user32.dll, kernel32.dll or
advapi32.dll with DllImport setting SecureZeroMemor y or
RtlSecureZeroMe mory as the entry point an exception says unable to
find entrypoint X in DLL Y.
[DllImport("kern el32.dll", CharSet = CharSet.Auto)]
private static extern void SecureZeroMemor y(IntPtr ptr, IntPtr cnt);
Can you help me?
Thanks, Luigi.
Comment