Please , Explain -> [dllImport ("Kernel32.dll")].
Thanks a lot.
Kernel
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Mar 24, 2012, 9:02 AM EDT
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
VulpesRank #55 · 29.2K reputationPosted Mar 24, 2012, 8:34 AM EDT
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.