[PATCH] misc w32api changes
Bart Oldeman <[email protected]> Tue, 3 Jun 2003 16:56:19 +0100 (BST)
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <[email protected]> |
Hi,
here are some changes that came about from the OpenWatcom
newsgroups.
MSDN references:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/modifying_user_properties.asp
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnargdi/html/msdn_sprites.asp
(this is just a sample but LP* things should be obvious)
I changed DECLARE_HANDLE to typedef because otherwise with STRICT on (as
is the default) a lot of older Windows programs are rejected by a
compiler that is critical about pointer types (these programs use
int PASCAL WinMain( HANDLE hInstance,
HANDLE hPrevInstance,
LPSTR lpszCmdParam,
int nCmdShow )
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw98bk/html/appenathewinmainprocedure.asp
instead of a variation of
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow
);
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/winmain.asp
)
2003-06-03 Bart Oldeman <[email protected]>
* include/lmaccess.h (UF_MNS_LOGON_ACCOUNT):
Add missing define.
* include/windef.h (HINSTANCE)
Change from DECLARE_HANDLE to typedef.
* include/wingdi.h (LPRGBTRIPLE, LPRGBQUAD)
Add typedefs.
Index: lmaccess.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/lmaccess.h,v
retrieving revision 1.4
diff -u -r1.4 lmaccess.h
--- lmaccess.h 18 Mar 2003 09:19:21 -0000 1.4
+++ lmaccess.h 3 Jun 2003 16:42:14 -0000
@@ -37,6 +37,7 @@
#define UF_MACHINE_ACCOUNT_MASK (UF_INTERDOMAIN_TRUST_ACCOUNT|UF_WORKSTATION_TRUST_ACCOUNT|UF_SERVER_TRUST_ACCOUNT)
#define UF_ACCOUNT_TYPE_MASK (UF_TEMP_DUPLICATE_ACCOUNT|UF_NORMAL_ACCOUNT|UF_INTERDOMAIN_TRUST_ACCOUNT|UF_WORKSTATION_TRUST_ACCOUNT|UF_SERVER_TRUST_ACCOUNT)
#define UF_DONT_EXPIRE_PASSWD 65536
+#define UF_MNS_LOGON_ACCOUNT 131072
#define UF_SETTABLE_BITS (UF_SCRIPT|UF_ACCOUNTDISABLE|UF_LOCKOUT|UF_HOMEDIR_REQUIRED|UF_PASSWD_NOTREQD|UF_PASSWD_CANT_CHANGE|UF_ACCOUNT_TYPE_MASK|UF_DONT_EXPIRE_PASSWD)
#define FILTER_TEMP_DUPLICATE_ACCOUNT 1
#define FILTER_NORMAL_ACCOUNT 2
Index: windef.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/windef.h,v
retrieving revision 1.17
diff -u -r1.17 windef.h
--- windef.h 4 Oct 2002 04:25:00 -0000 1.17
+++ windef.h 3 Jun 2003 16:42:14 -0000
@@ -281,7 +281,7 @@
typedef HKEY *PHKEY;
DECLARE_HANDLE(HMENU);
DECLARE_HANDLE(HMETAFILE);
-DECLARE_HANDLE(HINSTANCE);
+typedef HANDLE HINSTANCE;
typedef HINSTANCE HMODULE;
DECLARE_HANDLE(HPALETTE);
DECLARE_HANDLE(HPEN);
Index: wingdi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/wingdi.h,v
retrieving revision 1.26
diff -u -r1.26 wingdi.h
--- wingdi.h 23 May 2003 08:07:05 -0000 1.26
+++ wingdi.h 3 Jun 2003 16:42:14 -0000
@@ -1200,7 +1200,7 @@
BYTE rgbtBlue;
BYTE rgbtGreen;
BYTE rgbtRed;
-} RGBTRIPLE;
+} RGBTRIPLE,*LPRGBTRIPLE;
#pragma pack(pop)
#pragma pack(push,2)
typedef struct tagBITMAPFILEHEADER {
@@ -1233,7 +1233,7 @@
BYTE rgbGreen;
BYTE rgbRed;
BYTE rgbReserved;
-} RGBQUAD;
+} RGBQUAD,*LPRGBQUAD;
typedef struct tagBITMAPINFO {
BITMAPINFOHEADER bmiHeader;
RGBQUAD bmiColors[1];
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5