Solved

WAIT_TIMEOUT value

Posted on 1998-08-02
2
1,410 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 50 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now