carlos-montiers / enhancedbatch

Enhances your windows command prompt https://www.enhancedbatch.com
Other
5 stars 1 forks source link

Hook CmdBatNotification #3

Closed carlos-montiers closed 5 years ago

carlos-montiers commented 5 years ago

CmdBatNotification is not hooked correctly in some cmd versions. This cause the automatic unload of the dll not be executed.

german-one commented 5 years ago

On which versions is that happening? What do you think is the reason for that? Does it help if you don't override the default _dllstart routine.

adoxa commented 5 years ago

From Windows 8 (6.2) CmdBatNotification is called as a stub in another DLL that is delay loaded.

german-one commented 5 years ago

Good find. I also read about CmdBatNotificationStub in cmdext.dll. But since none of them are documented it's quite difficult to find something useful in the internet.