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

Add support for resources #132

Closed
topstrelok opened this issue Aug 9, 2023 · 1 comment
Closed

Add support for resources #132

topstrelok opened this issue Aug 9, 2023 · 1 comment

Comments

@topstrelok
Copy link

topstrelok commented Aug 9, 2023

Please add resource support, when I make my program in shellcode with donut it displays "Resource not found" message

int APIENTRY WinMain(HINSTANCE hInstance,
  HINSTANCE hPrevInstance,
  LPSTR lpCmdLine,
  int nCmdShow) {
  HRSRC rc = FindResource(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), RT_DIALOG);
  if (rc != NULL) {
    MessageBox(NULL, "Resource is ok", "Resource is ok", MB_OK);
  } else {
    MessageBox(NULL, "Resource not found", "error", MB_OK);
  }

  return 0;
}
@TheWover
Copy link
Owner

TheWover commented Aug 9, 2023

Try the -k 2 option.

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

2 participants