Home » Archives » June 2004 » workBLOGS . L

[ 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, ;
string cUnLockKeys


Generates this error:
Cannot find entry points UnLockKeys in the DLL

It should be UnlockKeys. However...
=UnLockKeys(GetProcAddress( FHook, 'UnlockKeys'), 0)

... 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

 

 
 
 
 

 

foxpro.main
foxpro.archives
richardbase.home

articles
downloads
snippets
utilities
knowledgebase.links
website.links

outpost.forum
the.site
the.catalyst
pixelcatalyst.lair

rss.feeds

June 2004
SMTWTFS
    123
45678910
11121314151617
18192021222324
252627282930 
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004





Darn aliens. THEY kept on rebooting this site's counter.