Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: farpetrad

Search: Search took 0.02 seconds.

  1. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    I was able to track this down to one of our apps. If I don't let it start I can shut the system down, however once it starts windows will not shut down. I started debugging and noticed this app...
  2. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    So I tested after killing all of our applications and the system still hangs. It also hangs if using the shutdown button and trying the command line shutdown -s -t 10 it also hangs. I am starting...
  3. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    Playing around a little more with a .net app I wrote to kill any processes and then shutdown the system shutsdown. I was able to then test the origional app without the other things running and it...
  4. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    So I was finally able to get on the system this morning and get to testing. The additional log code provided no help. Using the remote debugger I stepped through the code the adjust prvlidges...
  5. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    I haven't been able to get on that lab system but will be able to around noon today. On the other system that is a spitting image of that one the 32 bit machine is having no problems. Hopefully I...
  6. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    I was about to try that with a C# app I found that tests all the different shutdown api's, however this is being called from a server app that is sending a packet which in response we need to shut...
  7. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    Maybe you should lookup the documentation for AdjustTokenPrivileges as it states:

    If the function succeeds, the return value is nonzero. To determine whether the function adjusted all of the...
  8. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    HANDLE hToken;
    TOKEN_PRIVILEGES tkp;
    DWORD dwError;
    CString strError;
    // Get a token for this process.

    BOOL bOpenToken = OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES |...
  9. Replies
    19
    Views
    1,260

    Re: InitiateSystemShutdownEx hangs system

    Windows error log has no errors at the time of shutdown, there are several from when it starts up but that is another problem. The return value has always been 1 or non zero and nothing reported...
  10. Replies
    19
    Views
    1,260

    InitiateSystemShutdownEx hangs system

    So using InitiateSystemShutdownEx causes a Win32 machine to go log off go to the shutdown screen and just sit there displaying shutting down with the working indicator just spinning. I left the...
Results 1 to 10 of 10


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center