Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Any one knows how to use
C#
[DLLImport("Kernel32.dll")]

Can we use hal.dll using DLLImport?
Posted
Updated 22-Sep-16 19:10pm
v2

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 7-Aug-11 2:49am    
Should be helpful, my 5.
--SA
RaviRanjanKr 7-Aug-11 12:28pm    
Thanks SA
Madhav Hatwalne 8-Aug-11 1:06am    
Thank you
RaviRanjanKr 8-Aug-11 2:55am    
You are welcome :)
 
Share this answer
 
DLLImport can be used to call any exported function in a native Windows DLL. Check this[^] link for more information.
 
Share this answer
 
Comments
Madhav Hatwalne 8-Aug-11 1:05am    
Thank you!
just add to your class
using System.Runtime.InteropServices;
 
Share this answer
 
Comments
CHill60 23-Sep-16 5:50am    
Adds nothing to the solutions that were posted 5 years ago

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900