Skip to content

c3nb/DynamicPInvokeFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

DynamicPInvokeFactory

DllImport DllImportAttribute.

How To Use

Example

public delegate int MessageBoxEx(IntPtr ptr, string text, string caption, uint type);
public static MessageBoxEx MessageBox = DynamicPInvokeFactory.GetPInvokeMethod<MessageBoxEx>("user32");
  1. Create the delegate the same as the method to import.
  2. Declare the delegate field as static like example.
  3. Finish.

About

DllImport Without WinAPI or DllImportAttribute.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages