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::SuppressUnmanagedCodeSecurityAttribute]
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?
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
---------
>I have a managed C++ API which calls extensively into native API.
> I would like to remove the security walk above!!
[quoted text clipped - 7 lines]
> and call the function.
> how do I avoid stack walk?
Lloyd Dupont - 26 Jul 2006 13:15 GMT
ok.
thanks!
>I maybe wrong, but I think the VC++ compiler (at least 2002/2003)
>automatically tags native calls with the
[quoted text clipped - 21 lines]
>> and call the function.
>> how do I avoid stack walk?