- May
- 13,802
- 211
For a long time I have used a SHRALIAS.DLL which is loaded by PowerPro (via my logon script).
Recently I wrote an INJECTDLL.EXE which will cause any process (except the kernel) to load a specified DLL. In the process of doing that, I discovered (or at least was told) that it's safe to CreateThread() in DllMain (since the thread's entry point won't be called until DLL initialization is finished).
So, in principle, I could re-write SHRALIAS.DLL to work when loaded by any process. The ideal process would be Explorer since it's running at logon and stays running for the entire session. So a logon script could load all the shralias-protected lists and then inject SHRALIAS.DLL into Explorer.
Would anyone be interested in this?
At the moment there's no facility for unloading the DLL (and there might not be for a while.
Also, my SHRALIAS.DLL contains a (global) hotkey server and I have an external SHRHOTKEY.EXE to interface with it (some details below). Is anyone interested in that?
</space></directory></command></directory></command></directory></command></key>
Recently I wrote an INJECTDLL.EXE which will cause any process (except the kernel) to load a specified DLL. In the process of doing that, I discovered (or at least was told) that it's safe to CreateThread() in DllMain (since the thread's entry point won't be called until DLL initialization is finished).
So, in principle, I could re-write SHRALIAS.DLL to work when loaded by any process. The ideal process would be Explorer since it's running at logon and stays running for the entire session. So a logon script could load all the shralias-protected lists and then inject SHRALIAS.DLL into Explorer.
Would anyone be interested in this?
At the moment there's no facility for unloading the DLL (and there might not be for a while.
Also, my SHRALIAS.DLL contains a (global) hotkey server and I have an external SHRHOTKEY.EXE to interface with it (some details below). Is anyone interested in that?
Code:
v:\> shrhotkey /?
Usage: SHRHOTKEY [[Alt-][Ctrl-][Shift-][Win-]]<key> [<command> <directory>]
Omit <command> and <directory> to remove a hotkey.
<command> may be "**sendkeys**" with <directory> an arbitrary string
SHRHOTKEY list (show hot keys)
Unnamed keys: A-Z, a-z, 0-9, <space>, non-alphanumeric characters
Named keys (case-insensitive):
F1 F8 Left Prior BS Enter KP4 KP+
F2 F9 Right Next Back Return KP5 KP-
F3 F10 Home Insert Scroll KP0 KP6 KP*
F4 F11 End Delete Pause KP1 KP7 KP/
F5 F12 PgUp Ins Esc KP2 KP8 KP.
F6 Up PgDn Del Screen KP3 KP9 NumLock
F7 Down Tab Space
v:\> shrhotkey list
Key: CTRL-ALT-F4
Command: d:\uty\monitor0.exe
Directory: d:\uty
Key: F9
Command: d:\uty\toggletcc.exe d:\tcmd10\tcc.exe
Directory: v:\