API calls in VB.NET?

hasnain_razwi

Member
Joined
Oct 21, 2003
Messages
15
Location
Melbourne, Australia
hi all. its been somtime since i visited this forum. the problem im having this time around is making calls to API functions for finding out free disk space, free memory space and the number of free processing cycles. Im used to the old way of using API functions in VB 6. any hints on how to do the same thing in VB.NET :D
thanks
 
The Declare statement works similarly in VB.NET as in VB6, but there are some
important differences; any Longs from VB6 must be changed to Integers (theyre 32-bit),
and structures are handled in a special way. There is also the [mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemruntimeinteropservicesdllimportattributeclasstopic.htm]DllImport attribute[/mshelp],
which accomplishes the same task as the Declare statement.

[mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/vbcn7/html/vaconCallingWindowsAPIs.htm]Read me![/mshelp]
 
thanks. i guess what i should have asked was this. in VB 6 there was an application called API viewer? i think. It let u open up a list of all the APIs along with the appropriate data for calling them. you just copied the code from the editor window and pasted it into your code.
Is there something like this in VB.NET?
 
Back
Top