Windows XP(SP2) shuts down automatically

Discussion in 'Virus Information' started by Uri Dimant, Jul 11, 2006.

  1. Uri Dimant

    Uri Dimant Guest

    Hello everyone

    It was going very well for 7 moths since I got the computer. Suddenly,
    yesterday my Windows started shuts down automatically WITHOUT any error.
    It might be 15 minutes or couple of hours and at the end it is asways shuts
    down and it does not matter whether connected to the internt or not

    And since I got the computer I have not installed/altered /updgrade any
    system things except WINDOWS UPDATE ..



    I have done
    1) Ad-Aware (not found virus)
    2) Spybot (not found virus)
    3)Mcafee 8.0 Enterprise (not found virus)



    What are the next steps shouldn i go? Does it relate to the hardware as
    well?

    Thanks
     
    Uri Dimant, Jul 11, 2006
    #1
    1. Advertisements

  2. Yes, it may relate to hardware as well.

    Is your computer a notebook? Several monthes ago such case appeared with
    notebook and was activly discussed on *.kernel NG. The OP solved problem by
    writing small application which handles WM_QUERYENDSESSION windows message
    and returns FALSE - as a result Windows stopped shutdowning. Yes, it was a
    "quick hack" but OP was really glad that his computer stoped shutdowning
    automatically without a reason.
     
    Scherbina Vladimir, Jul 11, 2006
    #2
    1. Advertisements

  3. Uri Dimant

    Uri Dimant Guest

    Vova (speak russian)?
    No , it isn't
    Cn you point me to the OP's solution or the app's code?

    Thanks
     
    Uri Dimant, Jul 11, 2006
    #3
  4. :) Yes we can, but the rest of the group would not understand us, plus the
    msnews.microsoft.com will not accept cyrrilcs in this NG.

    [...]
    You may read the whole thread:
    http://groups.google.com/group/microsoft.public.development.device.drivers/browse_frm/thread/ee0b892e1f0e7a8d/6d7005fbb9585df5?tvc=1&q=computer+is+shutdowning#6d7005fbb9585df5

    I don't remember whether he provided his source code but it should be
    trivial. Make the window, in it's window procedure handle WM_QUERYENDSESSION
    message. So, basically the code will look like this: (it may not compile
    cause I was getting it from MSDN/my memory)

    void DoCancelShutdown()
    {
    HWND hMainWndHandle = CreateWindow("STATIC", "szTitle", WS_OVERLAPPEDWINDOW,
    0, 0, 13, 13, NULL, NULL, g_hInstance, NULL);

    if (hMainWndHandle != NULL)
    {
    LONG lPrev = SetWindowLong(m_hMainWndHandle , GWL_WNDPROC,
    reinterpret_cast<LONG>(MainPartWndProc));

    MSG msg = {0};
    BOOL bRet;

    while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0)
    {
    if (bRet == -1)
    {
    // handle the error and possibly exit
    }
    else
    {
    TranslateMessage(&msg);
    DispatchMessage(&msg);
    }
    }

    }
    }

    /* wnd proc */
    LRESULT WINAPI MainPartWndProc(HWND hWnd, UINT uMessage, WPARAM wParam,
    LPARAM lParam)
    {
    switch (uMessage)
    {
    case WM_QUERYENDSESSION:
    return FALSE; /// RETURN FALSE
    break;
    case WM_ENDSESSION:
    return FALSE; /// RETURN FALSE
    break;
    }

    return DefWindowProc(hWnd, uMessage, wParam, lParam);
    }
     
    Scherbina Vladimir, Jul 11, 2006
    #4
  5. Uri Dimant

    Uri Dimant Guest

    Thanks

    However, I see, now that the OP upgrated the memory to 1.5gb the problem is
    occured. .Well, I'm going to give my PC to the out technical person to
    check out any hardware issues.

    Thank you again







     
    Uri Dimant, Jul 11, 2006
    #5
  6. Sometimes problems with RAM cause such a problem - if it's damaged - PC may
    immidiatly hung...(my own practice..)

    --
    Vladimir


     
    Scherbina Vladimir, Jul 11, 2006
    #6

  7. Кирилица. БългарÑ?ки . РуÑ?ки . Ð?бв...

    Cyrrilics accepted :)



    Panda_man
     
    =?Utf-8?B?UGFuZGFfbWFu?=, Jul 11, 2006
    #7
  8. :)

    --
    Vladimir

     
    Scherbina Vladimir, Jul 11, 2006
    #8
  9. Uri Dimant

    Unobtrusive Guest

    ????????. ????????? . ????? . ???...
    Depends on what people download, ~tovarich...

    --U
     
    Unobtrusive, Jul 12, 2006
    #9

  10. Strange , it looks like you can't read Cyrillics but I can see them moreover
    I am sure that other members can also see them . You might wish to check some
    settings of yours . Do svidanja (Bye) :)


    Panda_man
     
    =?Utf-8?B?UGFuZGFfbWFu?=, Jul 12, 2006
    #10
  11. Uri Dimant

    Unobtrusive Guest

    Strange , it looks like you can't read Cyrillics but I can see them
    moreover
    Actually, the Cyrillics both work and not work at once... depends on the
    font, time of day, other stuff like that! ^.-

    On a more serious note, Hiragana and Kanji have not been working on my '98
    machine... would here be the newsgroup to post a query about it? It doesn't
    seem to have anything to do with malware, so I am unsure...

    Do svidanja... (Until we meet again)

    --U
     
    Unobtrusive, Jul 13, 2006
    #11
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.