See
HOWTO: Exit Windows from Visual FoxPro mskb #
251310 and
How can I shut down or reboot Windows for all versions? FAQ #8009.
>HI, I want to shutdown my pc fromVFP, the pc have windows XP
>
>I execute this code, but it only reset the pc
>
>Declare integer ExitWindowsEx IN user32.dll integer uFlags, INTEGER dwReserved
>ldsdd =ExitWindowsEx(0,0)
>
>Thanks !!
--sb--