|
[ Previous entry: workBLOGS . winAPI lock ] [ Next entry: NF . linux and open source ] 06/29/2004: workBLOGS . L The final punch to that quest is delivered this afternoon. The disabling of task switching and locking of other tasks is finally compatible with Windows 2000/XP. Converting an API-related algorithm using Delphi's source code as the basis is not too easy considering that you have to declare which DLL exactly are you using and the paremeters needed. Unlike Delphi, you also have to declare each WinAPI procedures used inside a DLL. I'm using WinLock.dll by the way to accomplish things which also calls LoadLibrary, GetProcAddress, EnableWindow and FindWindow. The first two procedures are inside KERNEL32.dll while the latter two... inside USER.dll. The locking part was accomplished after a number of compiles and reboots while it took me quite some time to figure out how to unload and deactive that lock. Luckily, Avatar came to the rescue and pointed out that procedures in DLLs are often case sensitive. declare UnLockKeys in WINLOCK.dll integer FHook, ; ... does not generate the mentioned error. Quite weird if you ask me (Probably related to why some programmers/developers are labeled as weird sometimes). I'm creating a separate HTML for this and the whole locking/disabling process. Disclaimers are for castrated EARTHLINGS. Powered: GREYMatter | GM-RSS
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
