silverf0x / RpcView

RpcView is a free tool to explore and decompile Microsoft RPC interfaces
GNU General Public License v3.0
901 stars 246 forks source link

FEATURE/EXPERIMENTAL : Add /f flag to force runtime loading #6

Closed TogDu closed 6 years ago

TogDu commented 6 years ago

Rpcrt4's version being quite volatile, it's unpractical to compile a new version (or to bin patch dll ;) ) every few weeks. It may be possible to check runtime version against major parts, excluding minor changes.

I made a quick (and very dirty) change to RpcCore_T structure to add a bForce flag, transmitted through RpcCoreInit callbacks, and some modifications to WinMain to parse and check command line (not happy with this part..)

silverf0x commented 6 years ago

Thanks for the pull request!

Concerning the parsing of the command line, the argc is not corrupted. The problem seems to come from the QApplication constructor. The doc says "argc and argv might be changed as Qt removes command line arguments that it recognizes" (see http://doc.qt.io/qt-5/qapplication.html#QApplication). Could you please fix your pull request to comply with the debug configuration (minor fixes).

TogDu commented 6 years ago

As I said, WinMain changes are quite crappy, but to be fair your wWinMain/main thingy it's...special :) Pull request was mainly to propose and discuss the version mask idea.

Will try to fix that during the week. By the way, can you add a dev branch ?