Top "Dllimport" questions

Use this tag for questions about importing functions, data or objects from DLLs (Dynamic-link libraries).

C# - Possible to use IOCTL

I'm trying to code for a Point Of Sale system which allows for a "Cash Drawer" attachment. Code is provided …

c# dllimport handle ioctl kernel32
Windows Defender Antivirus scan from C# [AccessViolation exception]

We are writing a code to do on-demand scan of a file from C# using Windows Defender APIs. [DllImport(@"C:\…

c# windows dllimport antivirus windows-defender
"[DllImport("__Internal")]" - what does the "__Internal" mean?

I am working with unity for an iOS game. For unlocking achievement I need to access a "Achievement.mm" file …

c# unity3d dllimport
ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

I have the same problem that was discussed here, but I haven't credit to comment an answer so I start …

python postgresql dllimport pygresql
How Can I call a C++ Win32 DLL from another C++ win32 Console Application

What is my main concern is , I am able to write a C++ dll using VC++ . Now the dll is …

c++ windows visual-c++ dllimport dllexport
Difference between dllimport and getProcAddress

First, I know that it doesn't make sense to compare the dllimport attribute and the getProcAddress function directly. Rather, I …

c# pinvoke dllimport getprocaddress
Is there generally a noticeable performance hit when calling PInvoke on Win32 / COM methods?

I'm wondering whether anyone has a decent explanation or overview on the negative aspects of using DLLImport / PInvoke on Win32 …

.net performance pinvoke marshalling dllimport