Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I Reboot Windows?
Message
De
16/10/1999 20:38:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00277082
Message ID:
00277350
Vues:
18
>
>Hi Doug,
>
>I've got this documented better at the office. Here, however, is what the SDK says:
>
>"EWX_LOGOFF Shuts down all processes running in the security context of the process that called the ExitWindowsEx function. Then it logs the user off.
>EWX_POWEROFF Shuts down the system and turns off the power. The system must support the power-off feature.
>
>Windows NT/2000: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.
>
>EWX_REBOOT Shuts down the system and then restarts the system.
>
>Windows NT/2000: The calling process must have the SE_SHUTDOWN_NAME privilege.
>
>EWX_SHUTDOWN Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.
>
>Windows NT/2000: The calling process must have the SE_SHUTDOWN_NAME privilege.
>
>
>This parameter can optionally include the following values. Value Meaning
>
>EWX_FORCE Forces processes to terminate. When this flag is set, the system does not send the WM_QUERYENDSESSION and WM_ENDSESSION messages. This can cause the applications to lose data. Therefore, you should only use this flag in an emergency.
>
>EWX_FORCEIFHUNG Windows 2000: Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message. This flag is ignored if EWX_FORCE is used."
>
>If you want more information, post back. I'll reply on Monday.

George,

Thanks for the reply! I was fooling around on Friday and discovered the EWX_FORCE option by adding them together, which is pretty standard. Whenever I see values like 1,2,4,8, etc it's pretty obvious they can get added together. < g >

I think I'll take this approach. I'll just issue a memo to the folks at work and then if they forget, well them's the breaks. I kind of hate to take that approach but in this case I can get away with it and it's kind of needed for backup purposes. Essentially what I'm concerned about is the data, not some Word document or Excel spreadsheet they may have open anyway.

Fortunately I'll be using SQL 7.0 on the backend and my archive software can save the data anyway.

The other reason I need to boot them out is that we deal with a lot of sensitive information. We help people get out of debt and as such have the credit card information for them and so forth so I'm FAR more concerned they don't just walk away from their app and leave it running so the cleaning people or someone else can get to the data should we have unexpected weekend or nightly visitors. Every form I have has as a part of its subclassing a timer function that logs them off the system at varying intervals and this last little bit will close the loop.

Best,
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform