Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BIOS data detection
Message
From
27/12/1998 07:44:13
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00167055
Message ID:
00170556
Views:
19
>Hi,
>With 16 bits FP it was easy to use load and call functions + asm routines. However VFP dropped support for binary routines. In 32 bit windows, all lowlevel calls directly to hardware are masked by win kernel and therefore you need virtual device drivers to overcome it which is rather complex if you're not an experienced lowlevel programmer. If protection is based on port accesses it's allowable and not complex.
>OTOH there is another simple way to make a simple protection in pure FP. Protection idea is based on the fact that each file occupies n clusters which is a multipl of 512. So with some static files, it means you have space to hide your own hooks. ie: You choose mysettings.ini file which is 608 bytes long. It allocates at least one cluster on the system and thus at least 1024-608 bytes are available to you. You simply put your hooks using lowlevel functions of FP.

Not a good idea, since this breaks under several circumstances; the immediate thought is on an NTFS volumes with or without compression enabled, or under any of the DriveSpace compression routines, where cluster suballocations are being used.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform