Results 1 to 6 of 6

Thread: problem with api of "exitwindowsex"

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Location
    world
    Posts
    3

    problem with api of "exitwindowsex"

    hi,

    a while ago i wrote a program using api of exitwindowsex to shut the pc down at the time arranged by user. but the api turned the value of "0" which means api is not working, at the same time the process was cancelled by a program runs on the pc. could u pls help me with this issue? which or what kind of program may cause this problem?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: problem with api of "exitwindowsex"

    Welcome to the forums.

    More information please.

    Is this happening on all PCs running your program or just on one?

    How do you know a program "cancelled" your program? What evidence do you have that this is the case?

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Location
    world
    Posts
    3

    Re: problem with api of "exitwindowsex"

    first of all, thank you for welcoming me.

    i used a msgbox to know the turning value from the process. i had read that from a book that was written in my country where said that if the process fails, the turning value is 0. and there was an explanation saying that its cause of a program runs in pc. the program worked for 1-2 times in my pc. but no longer. it only shuts the all programs running, but not the pc

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: problem with api of "exitwindowsex"

    Can you post the code you are using and tell us what OS you are using?


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2006
    Location
    world
    Posts
    3

    Re: problem with api of "exitwindowsex"

    codes are completely running. by the way i wrote another batch file in DOS to do same process but its not working also. i mean it works same as this api

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: problem with api of "exitwindowsex"

    I thought the codes weren't running, in other words the PC isn't closing. If we don't see the code or get some more information, it's very hard to guess what the problem is...


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width