Re: How to find those constants for a API Declare
- From: "Richard T. Edwards" <redwar2006@xxxxxxxxxxx>
- Date: Wed, 21 Mar 2007 13:13:00 -0700
VB installs an API Viewer.
Go to Options then to AddIn Manager. Click on that and look for VB6 API
Viewer. Double click on that and click okay.
Then go back to options and you'll find it down at the bottom.
You'll have to open the WINAPI 32 text file and then select Constants from
the dropdown box.
"simon" <spainabc@xxxxxxxxx> wrote in message
news:1174506035.900968.205310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello all friends. I am a VB-API beginner. I want to know hoe to find
its constants for a API Declare. For example:
When we declare a function:
Private Declare Function RegCreateKey Lib "advapi32.dll" Alias
"RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String,
phkResult As Long) As Long
Const ERROR_SUCCESS = 0&
Const ERROR_BADDB = 1009&
Const ERROR_BADKEY = 1010&
Const ERROR_CANTOPEN = 1011&
Const ERROR_CANTREAD = 1012&
Const ERROR_CANTWRITE = 1013&
Const ERROR_REGISTRY_RECOVERED = 1014&
Const ERROR_REGISTRY_CORRUPT = 1015&
Const ERROR_REGISTRY_IO_FAILED = 1016&
Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
The questions are:
1. Why we just make those constants in the code?
2. What is relevance with those constants and this API function?
3. How can I find which constants will be used in a API function?
4. I´ve heard that in the C++ head file (.h file) can be found this
relation, but I don´t know hoe to find it yet.
5. Do you have any tools to refer it? The VB API viewer can find those
Declares, but I can´t find each API will use which constants.
Waiting you answer.thank you!!
Best Regards.
Simon
.
- Follow-Ups:
- Re: How to find those constants for a API Declare
- From: Ken Halter
- Re: How to find those constants for a API Declare
- References:
- How to find those constants for a API Declare
- From: simon
- How to find those constants for a API Declare
- Prev by Date: How to find those constants for a API Declare
- Next by Date: Re: How to find those constants for a API Declare
- Previous by thread: How to find those constants for a API Declare
- Next by thread: Re: How to find those constants for a API Declare
- Index(es):
Relevant Pages
|
Loading