What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Resource] Win32 API Constant Reference

[Resource] Win32 API Constant Reference
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
O.P. [Resource] Win32 API Constant Reference
Sometimes when scripting and I need to make an Interop.Call call to a Windows API function that takes a parameter which is a constant, such as MB_OK for MessageBox or WM_CLOSE for SendMessage, I need to find out the value of the constant and the way I do this is open Visual Studio, type the constant name and hover over it so that the tooltip tells me the value. That method sucked. I googled for a reference of all the constant values and I didn't find much either.

I then remembered VB came with a file called WIN32API.TXT that contained all the Constants, Declares and Types used by the Win32 API functions. However I didn't like the format of the file (as I don't like VB's syntax anyway) so I used a combination of (regex) find/replace and various other things to format the file the way JScript developers would find most convenient. I removed the useless Declares and Types, changes &H for hex into 0x, And and Or into & and |, and made each line follow the format 'var CONST = 0xVALUE;' so that it's possible to easily copy and paste it into your script should you want to.

The file is hosted here: [EDITED: file found to be inaccurate/incomplete]

This post was edited on 07-02-2006 at 09:34 AM by segosa.
The previous sentence is false. The following sentence is true.
07-01-2006 07:55 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Resource] Win32 API Constant Reference - by segosa on 07-01-2006 at 07:55 PM
RE: [Resource] Win32 API Constant Reference - by ShawnZ on 07-01-2006 at 08:03 PM
RE: RE: [Resource] Win32 API Constant Reference - by segosa on 07-01-2006 at 08:06 PM
RE: [Resource] Win32 API Constant Reference - by ShawnZ on 07-01-2006 at 08:12 PM
RE: [Resource] Win32 API Constant Reference - by alexp2_ad on 07-01-2006 at 08:16 PM
RE: RE: [Resource] Win32 API Constant Reference - by segosa on 07-01-2006 at 08:19 PM
RE: [Resource] Win32 API Constant Reference - by ShawnZ on 07-01-2006 at 09:05 PM
RE: [Resource] Win32 API Constant Reference - by CookieRevised on 07-02-2006 at 02:59 AM
RE: RE: [Resource] Win32 API Constant Reference - by segosa on 07-02-2006 at 07:37 AM
RE: [Resource] Win32 API Constant Reference - by ShawnZ on 07-02-2006 at 05:18 AM
RE: RE: RE: [Resource] Win32 API Constant Reference - by CookieRevised on 07-02-2006 at 09:22 AM
RE: RE: RE: RE: [Resource] Win32 API Constant Reference - by segosa on 07-02-2006 at 09:34 AM
RE: [Resource] Win32 API Constant Reference - by CookieRevised on 07-02-2006 at 09:38 AM
RE: [Resource] Win32 API Constant Reference - by segosa on 07-02-2006 at 09:59 AM
RE: [Resource] Win32 API Constant Reference - by CookieRevised on 07-02-2006 at 11:02 AM
RE: RE: [Resource] Win32 API Constant Reference - by segosa on 07-02-2006 at 11:18 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On