Jump to content

Recommended Posts

Posted

Well, 0+4=4, so I'm guessing it's just doing "force" shutdown. I'd guess there's no force logoff.

There is when you call the Win32Shutdown method through WBEM. I want to force the logoff..but I guess I can't.

I suspect this is a bug.

BMac.

Posted

Well, the math will be performed before the function is executed (someone correct me if I'm wrong), so it is essentially still 4. I wouldn't call it a bug, but maybe a missing feature? :)

Of course it is still 4...I never doubted that. I showed the 0 + 4 to indicate logoff + force.

> maybe a missing feature?

Do you work for Microsoft? ;)

Ah well...no one much cares about bugs these days...a pity.

BMac

Posted

Have you tried just Shutdown(0)... maybe all logoffs are forced?

An unsaved notepad will halt Shutdown(0) the XP SP2 system that I tested it on.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted

Even Run("Shutdown.exe -f") hangs if a doc is unsaved.

I suppose that you could ProcessClose all that you can and then call the logoff.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted (edited)

Do you work for Microsoft? :)

No... Microsoft doesn't make Autoit, which is what I'm talking about.

Of course it is still 4...I never doubted that. I showed the 0 + 4 to indicate logoff + force.

Maybe you should have been more clear from the start.

Edited by xcal
Posted (edited)

When I tried Shutdown(0 + 4) the machine actually shutdown...

When I tried Shutdown(0 + 4) the machine only logged me off...

...it did not shutdown.

Anybody else have a system that shuts off vs. logs off?

Edit: XP SP2

-MSP-

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted

When I tried Shutdown(0 + 4) the machine only logged me off...

...it did not shutdown.

Anybody else have a system that shuts off vs. logs off?

Edit: XP SP2

-MSP-

Interesting...I was testing this on Win2K SP4. So, I guess it may be a Win2K issue. Oh well, non-forced logoffs work for now.

BMac

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...