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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lloyd Dupont

    #1

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

    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::Securit y::SuppressUnma nagedCodeSecuri tyAttribute]
    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

    #2
    Re: ManagedC++ and [System::Securit y::SuppressUnma nagedCodeSecuri tyAttribute] and stack walk

    I maybe wrong, but I think the VC++ compiler (at least 2002/2003)
    automatically tags native calls with the
    SuppressUnmanag edCodeSecurityA ttribute.

    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)
    EZNamespaceExte nsions.Net : Develop namespace extensions rapidly in .Net
    EZShellExtensio ns.Net : Develop all shell extensions rapidly in .Net
    ---------



    "Lloyd Dupont" <net.galador@ld wrote in message
    news:eSEWl4EsGH A.952@TK2MSFTNG P02.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::Securit y::SuppressUnma nagedCodeSecuri tyAttribute]
    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?
    >
    >

    Comment

    • Lloyd Dupont

      #3
      Re: ManagedC++ and [System::Securit y::SuppressUnma nagedCodeSecuri tyAttribute] and stack walk

      ok.
      thanks!

      "G Himangi" <info@ssware.co mwrote in message
      news:e9z$haKsGH A.5044@TK2MSFTN GP05.phx.gbl...
      >I maybe wrong, but I think the VC++ compiler (at least 2002/2003)
      >automaticall y tags native calls with the
      >SuppressUnmana gedCodeSecurity Attribute.
      >
      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)
      EZNamespaceExte nsions.Net : Develop namespace extensions rapidly in .Net
      EZShellExtensio ns.Net : Develop all shell extensions rapidly in .Net
      ---------
      >
      >
      >
      "Lloyd Dupont" <net.galador@ld wrote in message
      news:eSEWl4EsGH A.952@TK2MSFTNG P02.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::Securit y::SuppressUnma nagedCodeSecuri tyAttribute]
      >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?
      >>
      >>
      >
      >

      Comment

      Working...