Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename VCX. Any problems doing this?
Message
De
12/02/1999 16:40:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00186661
Message ID:
00187201
Vues:
21
>>>I have no idea if Justok's reboot command works, but if it does it probably needs to be placed in a exe or com file with a hex editor.
>>
>>You can use the DEBUG.EXE program, it still comes with Windows (at least 95/98). It's been a long time, so I don't remember quite how (I think you have to start at address 100, set up some register values for length, etc, and use the DEBUG N command to name/save it), but you can create a .COM type program file using just DEBUG. Note this is not a COM object, but .COM executable type file for the OS.
>
>Ugh, that 5 byte reboot code translates to: JMP FFFF:0000
>
>This may force a reboot, but it does not shut down the OS properly. If you need to reboot I would suggest an API call to close down windows in a clean manner.
>

Yep - NT will just smack you silly for tryuing that anyway. ExitWindowsEx() is more reliable and much safer.

>Regards,
>Mike
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform