Hi there,

I wnat to know if i can close the Windows OS itself from my Program. I mean to say that if my program is closed/exited. the system should shutdown automatically.

I've tried using ExitWindowsEx as below;

Dim i As Boolean
i = ExitWindowsEx(EWX_SHUTDOWN + EWX_FORCE, 0)

but it only logsoff the cureent user. it is not shutting down the system. Any help is welkome.

Thnx in adv.