If you are talking about .NET, use the DllImportAttribute to import a native function on a DLL. The docs in MSDN have good examples and there are plenty on the web if you Google for DllImport.
Dig Deeper on Win Development Resources
Related Q&A from Berni McCoy
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.