I maybe wrong, but I think the VC++ compiler (at least 2002/2003)
automatically tags native calls with the
SuppressUnmanagedCodeSecurityAttribute.
You may check this using ILDasm.
---------
- G Himangi, Sky Software
http://www.ssware.com
Shell MegaPack : Drop-In Explorer GUI Controls For Your Apps (.Net & ActiveX
Editions Available)
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions rapidly in .Net
---------
"Lloyd Dupont" <net.galador@ldwrote in message
news:eS*************@TK2MSFTNGP02.phx.gbl...
>I have a managed C++ API which calls extensively into native API.
I would like to remove the security walk above!!
in C# I could tag my declaration like that:
[System::Security::SuppressUnmanagedCodeSecurityAtt ribute]
extern static void SomeCFunction();
but in managed C++ I don't declare the function, I just import the header
and call the function.
how do I avoid stack walk?