Solved

WAIT_TIMEOUT value

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

773 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