Solved

WAIT_TIMEOUT value

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Run code from text file in vb 1 73
vb6 connector to SQL Server 2 37
How to set the row selection as it was prior leaving the datagrid in vb6 3 49
Help me. 3 60
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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

830 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