Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Dllimport #101

Open
davidwillian252 opened this issue May 26, 2023 · 0 comments
Open

Does not work with Dllimport #101

davidwillian252 opened this issue May 26, 2023 · 0 comments

Comments

@davidwillian252
Copy link

I have a csharp exe ([DllImport("DLLOK.dll", SetLastError = true)]
public static extern bool FunctionOne(string hookprocess);
[DllImport("DLLOK.dll", SetLastError = true)]
public static extern bool FunctionTwo(IntPtr hWnd);)
which imports a native dll in c++(), when I process the compiled exe in the packer and run the generated exe, it returns an exception System.BadImageFormatException App.Form1.FunctionOne. If I comment out the DllImport and it doesn't load the DLL, the exe generated by the packer works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant