Skip to main content
GameDev.net gamedev.net
🔒 Locked

structure definitions

Started by Boltimus Jun 22, 2001 at 1:25 AM 1 replies 300+ views
Original Post
Boltimus
Boltimus
Hi all, I''m trying to find the EXACT struct definitions for items such as..HWND, HDC..etc.. I tried looking in the win32 SDK that came with VC++ 6.0, but it really wasn''t any help. Does anyone know where of a reference (preferably online and..hehe ... free) that lists that definitions of some or even al the structs? or at least the more important ones? also, does anyone know of a good article or something that explains (better than the bok im reading now) more about GDI Device contexts or rather simply device contexts in general?? Thanks! any help would be greatly appreciated!
~Bolt"All men dream: but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible." This I did...
Stoffel
Stoffel
read through windef.h in your compiler''s source include directory. all those are described by "DECLARE_HANDLE". This is a macro in (for me) winnt.h:

  
#ifdef STRICT
typedef void *HANDLE;
#define DECLARE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
#else
typedef PVOID HANDLE;
#define DECLARE_HANDLE(name) typedef HANDLE name
#endif
typedef HANDLE *PHANDLE;

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.