Wednesday, July 06, 2005

Microsoft Win32 to Microsoft .NET (1.0/1.1) Framework API Map

Microsoft Win32 to Microsoft .NET Framework API Map

"This article identifies the Microsoft .NET Framework version 1.0 or 1.1 APIs that provide similar functionality to Microsoft Win32 functions. One or more relevant .NET Framework APIs are shown for each Win32 function listed. The intended audience for this article is experienced Win32 developers who are creating applications or libraries based on the Microsoft .NET Framework, but anyone looking for a managed counterpart for a Win32 function could find this document useful. (85 printed pages) ..."

This is a little old (it's dated 1/2004) but still pretty useful. It provides a table/map/matrix of Win32 API to .Net 1.1 BCL.

Some of these are pretty interesting and I like how the different possible .Net options are shown. For example, there's two .Net options for the GetDriveType Win32 API call

GetDriveType
Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
System.Management.ManagementObject("Win32_LogicalDisk.DeviceID=\"C:\"").Get
System.Management.ManagementObject.Properties

or
System.IO.DriveInfo.DriveType

I hope it gets updated for .Net 2.0...

No comments: