Languages Visual Basic & VB.NET Visual Basic Windows API Call/ Explanation  

A Better API Error Lookup

download download  
important code information
author:
Shawn Bullock
minimum requirements:
A Better API Error Lookup description

Queries Windows for the meaning of an API error number, and allows you to search a range of numbers... the results get placed in a list


This is just a simple program that lets you enter in an error number, and get the error description (Windows API errors). You can also enter in a search range and it will list all the errors in that range. Sometimes, it will want to raise an exception error, so I have some code in here that will trap them and continue. On that note, I must admit, I don't recall which issue, but I got the source for that from a VBPJ article, therefore it's not really my source code, nor is it modified. The rest of the source code I wrote. Also, on that note, there are some windows errors that will not be displayed, such as number 34. It's a disk error, but it also raises an exception when that number is queried, therefore shows as a blank.

I actually used this for my own purposes here at work. There is another programmer here who kept pushing it past it's limits and telling me how much better I can make it, so that's how it got to be what it is today (and why it's so fast, earlier, it was painstakingly slow). In the future, I will actually take the time to document all of the related constants and perhaps generate some VB code to deal with API errors and exception handling (try reading about Windows exception handling in some of the online MSJ articles, it's complicated). Actually, more or less, I'll write a parser that reads into the MSDN files to retrieve them.

To lookup up only an error, just enter the error number and press enter.
To lookup a range, enter in the range number and press enter.
To Filter a search, enter in the word (single word, no expressions) and press enter
To search with a filter, enter in a filter word, and then click "List Them"

Please note, that when focus is set to a particular text field, the default button is also set so that the Enter key will yield the proper result.


File List:
Form1.frm21Kb
MSSCCPRJ.SCC193b
Project1.vbp1Kb
Project1.vbw137b
ReadMe.txt2Kb
basAPI.bas5Kb
basErrorFilter.bas4Kb
basMain.bas1Kb

Similar code
FIXED CD TRAY OPENER & CLOSER (Popularity: ) : This one's a fixed version of the last one. Thanks to the help of others, i've included the CLOSE function... This is a ZIPPED version as well, so it comes with the EXE version and the source code! I still ...
A complete ping code using API Code and ICMP ! very easy (Popularity: ) : Is a API code that allows the application to make a PING to host, just as the command "ping" made in the CMD of Windows, which will respond suitably
Form On Top (Popularity: ) : This will put your forms on top. Works good. It uses API calls to do this. Hope it helps you. Also Please visut my site, i got some video tutorials there about visual basic.
Console API Class (Popularity: ) : Visual Basic doesn't have the ability to read or write from the console. To accomplish this, the Win32 API exports a set of functions that interacts with a console window using handles. clsWinConsole is a simple VB class that encapsulates ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 41
version
size in Kb 11
popularity   694/7913374
user rating 4/10
ad


New Code
Popular Code