FindResource mode version in kernel mode

I am trying to embed a binary resource in a static kernel-mode library, but I do not see the kernel equivalent of FindResource and the LoadResource API. Could you help me?

+4
source share
2 answers

Maybe LdrFindResource and LdrAccessResource will help you. But these features are undocumented and not supported by Microsoft.

+2
source

Write a simple script to run as a pre-build event:

  • Run the Bin2Hex utility on your resource
  • Paste the output as an array into the source code: char *data[] = {/* hex data */};
+2
source

Source: https://habr.com/ru/post/1433924/


All Articles