Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

ManagedC++ and     [System::Security::SuppressUnmanagedCodeSecurityAttribute] and stack walk

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 26 Jul 2006 01:57 GMT
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?
G Himangi - 26 Jul 2006 12:28 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.