Please , Explain -> [dllImport ("Kernel32.dll")].
Thanks a lot.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Mar 24, 2012, 1:02 PM
The kernal32 dll is windows API dll which allows to write the operating system program in C#.
You can get more information and examples in the following url.
http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute(v=vs.71).aspx
VulpesPosted Mar 24, 2012, 12:34 PM
In this case, the function is included in Kernel32.dll which is part of the Win32 API.
Only the signature of such functions is included in a C# program as their actual code is, of course, included in the dll itself.