Women in Technology

Hear us Roar



Article:
  WinFX: An All-Managed API
Subject:   What Managed Means...
Date:   2003-11-26 08:45:34
From:   swildermuth
Managed is a term that specifically means that the memory of the code is managed by some runtime environment. In the case of .NET code (and WinFX specifically), the garbage collector managed the memory.


In Win32, the API is unmanaged and exposed to .NET clients through interop. To .NET clients, it is still unmanaged memory and has the same constraints as any system that has unmanaged memory (possibly of memory leaks, no code-access security, etc.) By the WinFX being all managed, the .NET folks get to use the API in a more native way, but those same API's will be exposed to Win32 folks throuth interop the other way around. The code will continue to be managed, but the calling code may not be managed (in the case of calling it from a traditional MFC app for example).


HTH


Shawn Wildermuth
Editor of ONDotnet.com

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • What Managed Means...
    2003-12-09 09:21:16  anonymous2 [View]

    just curious:

    <quote>
    those same API's will be exposed to Win32 folks throuth interop the other way around.
    </quote>

    will this be via CCWs? (COM Callable Wrappers) Or is there another mechanism?

    Tnx,

    Jason Langston
    • Ian Griffiths photo What Managed Means...
      2003-12-09 15:22:15  Ian Griffiths | O'Reilly Author [View]

      .NET components in the existing .NET Framework are generally available through COM interop via CCWs. (Look in the .NET Components Category in OLEView, and you'll see that loads of the built-in components are exported this way.) So it is likely to be the same with the new stuff in WinFX.
      • What Managed Means...
        2003-12-13 00:17:32  anonymous2 [View]

        According to the article, Win32 is apparently still seperate from .Net but any new features of Avalon and any new features added to Windows will not have a Win32 API added.

        This article states that .Net based system, WinFX, will interact directly with the processor/Kernel to get the best performance unless the feature already exists in the Win32 side(Windows Forms).
        • What Managed Means...
          2004-01-14 09:45:33  anonymous2 [View]

          This article states that .Net based system, WinFX, will interact directly with the processor/Kernel to get the best performance unless the feature already exists in the Win32 side(Windows Forms).