|
-
May 5th, 2020, 08:21 AM
#12
Re: How to use a _declspec(dllexport) in VB6?
 Originally Posted by Schmidt
Jacob could answer the question, whether NVidia explicitely checks for the lowest Bit in the Export,
by compiling and running his existing C++App with this setting:
Code:
extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000002; }
Just tested this myself, and what NVidia currently does, is not as they've specified in the Documentation...
They are not checking explicitely whether the LSB is at 1 -
they just treat the exported Value like a bool-expression (everything <> 0 is true).
Even if they'll check the LSB in the future, the "empty-sub" export should work further,
because its "prolog" == "epilog" == &HC3 == just the x86-RETN-instruction.
Olaf
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|