Use this tag for questions about importing functions, data or objects from DLLs (Dynamic-link libraries).
I've seen a couple of examples such as this: [DllImport("user32.dll")] static extern bool TranslateMessage([In] ref Message lpMsg); […
c# visual-studio dll reference dllimportGiven this C API declaration how would it be imported to C#? int _stdcall z4ctyget(CITY_REC *, void *); I've …
c# pinvoke dllimportI want integrate a header .h or .dll file in CAPL (concretly Visa32.dll, visa.h or sicl.h) to …
header-files dllimport capl canoeI am writing a DLL for a third party application. The main software engineer mentions that the application uses the __…
c++ c dllimport calling-conventionI am using a struct to pass to an unmanaged DLL as so - [StructLayout(LayoutKind.Sequential)] public struct valTable { …
c# dll constructor struct dllimportI have a method I want to import from a DLL and it has a signature of: BOOL GetDriveLetter(OUT …
c# .net pinvoke marshalling dllimport