How to Find out if the CPU Supports the CPUID Instruction

Posted December 15th @ 1:05 pm by m3Rlin

Sometimes you may want to find out if the CPU supports the CPUID instruction (late 486+ or Pentium+) to find out the CPU type. Well, this code should be what you need:
<pre>
<i>{$ifndef ver80} // Because of 32 bit register use</i>
<b>function</b> GetCpuIDSupport: Boolean; <b>assembler</b>;
<b>asm</b>
push ebx
mov @Result, True
pushfd [...]

How to Add a Context Menu Item to Windows Explorer

Posted December 15th @ 7:33 am by m3Rlin

To add a context menu item to Windows Explorer you have create a few entries in the system Registry. First you have to get the file type’s name, add the context menu item and add then the command line. Besides files you can add context menus to drives or folders.<br>
Special extensions:<br>
- <i>.drive</i> - drives.<br>
- [...]

Next Entries »