Windows API calls in .net framework

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm
Contact:

Windows API calls in .net framework

Postby Ladva Nidhi » Thu Oct 16, 2014 2:28 am

How can we make Windows API calls in .NET


sonall gajera

Re: Windows API calls in .net framework

Postby sonall gajera » Mon Jul 13, 2015 6:05 am

Windows API calls are not COM based and are invoked through Platform Invoke Services.
Declare StringConversionType (Function | Sub) MethodName Lib “DllName” ([Args]) As Type

1. StringConversionType is for what type of conversion should take place. Either we can specify Unicode to convert all strings to Unicode values, or Auto to convert strings according to the .NET runtime rules.
2.MethodName is the name of the API to call.
3.DllName is the name of the DLL.
4.Args are any arguments to the API call.
5.Type is the return type of the API call.


Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 3 guests