Subscribe to Windows IT Pro
August 04, 2004 12:00 AM

Avoid Calling Win32 API Functions

Dev Pro
InstantDoc ID #124661
Rating: (0)
Win32 API calls require permission to run unmanaged code. As soon as you make a Win32 API call, your assembly instantly requires the highest possible level of permission that an assembly can have. This means that it will be much harder to distribute your assembly for any but the most trusted distribution scenarios.

 

 

·          Win32 API calls are more prone to errors. Because they run in unmanaged code, you again open the door to the potential for Memory exceptions, memory and resource leaks, and all of the typical bugs that API programmers in any language are accustomed to.

 

·          It's harder to call Win32 API calls than to use equivalent framework calls.

 

Happy Learning !!! 

 

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.