Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WAIT_TIMEOUT value

Posted on 1998-08-02
2
Medium Priority
?
1,496 Views
Last Modified: 2012-06-21
Hi, need the const value in VB5 for WAIT_TIMEOUT that is returned in Win32 API : WaitForSingleObject.
(ie.
    Const WAIT_TIMEOUT &H????????
)

Where can I find such values in future?
0
Comment
Question by:totoro030898
  • 2
2 Comments
 
LVL 39

Accepted Solution

by:
abel earned 200 total points
ID: 1467523
From WinNT.h:
#define STATUS_TIMEOUT                   ((DWORD   )0x00000102L)    

From Winbase.h:
#define WAIT_TIMEOUT                        STATUS_TIMEOUT

In other words:
Const WAIT_TIMEOUT &H00000102

You can find those references in the headerfiles provided with MS Visual C++.

0
 
LVL 39

Expert Comment

by:abel
ID: 1467524
Sorry, forgot to say, it must be Long:
Const WAIT_TIMEOUT As Long = &H00000102

And VB (off course) makes it this:
Const WAIT_TIMEOUT As Long = &H102

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question