Solved

WAIT_TIMEOUT value

Posted on 1998-08-02
2
1,450 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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
Course of the Month5 days, 19 hours left to enroll

626 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