|
@@ -26,8 +26,8 @@ unit defines;
|
|
|
|
|
|
{ Automatically converted by H2PAS.EXE from defines.h
|
|
|
Utility made by Florian Klaempfl 25th-28th september 96
|
|
|
- Improvements made by Mark A. Malakanov 22nd-25th may 97
|
|
|
- Further improvements by Michael Van Canneyt, April 1998
|
|
|
+ Improvements made by Mark A. Malakanov 22nd-25th may 97
|
|
|
+ Further improvements by Michael Van Canneyt, April 1998
|
|
|
define handling and error recovery by Pierre Muller, June 1998 }
|
|
|
|
|
|
|
|
@@ -36,33 +36,33 @@ unit defines;
|
|
|
{ C default packing is dword }
|
|
|
|
|
|
{$PACKRECORDS 4}
|
|
|
- {
|
|
|
+ {
|
|
|
Defines.h
|
|
|
-
|
|
|
+
|
|
|
Windows32 API definitions
|
|
|
-
|
|
|
+
|
|
|
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
|
|
-
|
|
|
+
|
|
|
Author: Scott Christley <[email protected]>
|
|
|
-
|
|
|
+
|
|
|
This file is part of the Windows32 API Library.
|
|
|
-
|
|
|
+
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
License as published by the Free Software Foundation; either
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
-
|
|
|
+
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
Library General Public License for more details.
|
|
|
-
|
|
|
+
|
|
|
If you are interested in a warranty or support for this source code,
|
|
|
contact Scott Christley <[email protected]> for more information.
|
|
|
-
|
|
|
+
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
License along with this library; see the file COPYING.LIB.
|
|
|
- If not, write to the Free Software Foundation,
|
|
|
+ If not, write to the Free Software Foundation,
|
|
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
}
|
|
|
{ WARNING: This file is automatically generated. }
|
|
@@ -437,22 +437,22 @@ unit defines;
|
|
|
FILE_WRITE_ATTRIBUTES = $0100;
|
|
|
{ displaced lower
|
|
|
#define FILE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF)
|
|
|
-
|
|
|
+
|
|
|
#define FILE_GENERIC_READ (STANDARD_RIGHTS_READ |\
|
|
|
FILE_READ_DATA |\
|
|
|
FILE_READ_ATTRIBUTES |\
|
|
|
FILE_READ_EA |\
|
|
|
SYNCHRONIZE)
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
#define FILE_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\
|
|
|
FILE_WRITE_DATA |\
|
|
|
FILE_WRITE_ATTRIBUTES |\
|
|
|
FILE_WRITE_EA |\
|
|
|
FILE_APPEND_DATA |\
|
|
|
SYNCHRONIZE)
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
#define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\
|
|
|
FILE_READ_ATTRIBUTES |\
|
|
|
FILE_EXECUTE |\
|
|
@@ -587,7 +587,7 @@ unit defines;
|
|
|
LR_DEFAULTCOLOR = 0;
|
|
|
LR_LOADREALSIZE = 128;
|
|
|
{ already defined above !!
|
|
|
- #define LR_MONOCHROME (1)
|
|
|
+ #define LR_MONOCHROME (1)
|
|
|
}
|
|
|
{ CreateMailslot, GetMailslotInfo }
|
|
|
MAILSLOT_WAIT_FOREVER = $ffffffff;
|
|
@@ -660,16 +660,16 @@ unit defines;
|
|
|
READ_CONTROL = $20000;
|
|
|
GENERIC_EXECUTE = $20000000;
|
|
|
{ already defined above !!
|
|
|
- #define SERVICE_WIN32_OWN_PROCESS (16)
|
|
|
- #define SERVICE_WIN32_SHARE_PROCESS (32)
|
|
|
- #define SERVICE_KERNEL_DRIVER (1)
|
|
|
- #define SERVICE_FILE_SYSTEM_DRIVER (2)
|
|
|
- #define SERVICE_INTERACTIVE_PROCESS (256)
|
|
|
- #define SERVICE_BOOT_START (0)
|
|
|
- #define SERVICE_SYSTEM_START (1)
|
|
|
- #define SERVICE_AUTO_START (2)
|
|
|
- #define SERVICE_DEMAND_START (3)
|
|
|
- #define SERVICE_DISABLED (4)
|
|
|
+ #define SERVICE_WIN32_OWN_PROCESS (16)
|
|
|
+ #define SERVICE_WIN32_SHARE_PROCESS (32)
|
|
|
+ #define SERVICE_KERNEL_DRIVER (1)
|
|
|
+ #define SERVICE_FILE_SYSTEM_DRIVER (2)
|
|
|
+ #define SERVICE_INTERACTIVE_PROCESS (256)
|
|
|
+ #define SERVICE_BOOT_START (0)
|
|
|
+ #define SERVICE_SYSTEM_START (1)
|
|
|
+ #define SERVICE_AUTO_START (2)
|
|
|
+ #define SERVICE_DEMAND_START (3)
|
|
|
+ #define SERVICE_DISABLED (4)
|
|
|
}
|
|
|
SERVICE_ERROR_IGNORE = 0;
|
|
|
SERVICE_ERROR_NORMAL = 1;
|
|
@@ -882,7 +882,7 @@ unit defines;
|
|
|
WH_SHELL = 10;
|
|
|
WH_SYSMSGFILTER = 6;
|
|
|
{ already defined above !!
|
|
|
- #define WH_MSGFILTER (-1) }
|
|
|
+ #define WH_MSGFILTER (-1) }
|
|
|
WH_FOREGROUNDIDLE = 11;
|
|
|
{ DefineDosDevice }
|
|
|
DDD_RAW_TARGET_PATH = 1;
|
|
@@ -914,7 +914,7 @@ unit defines;
|
|
|
DC_VERSION = 10;
|
|
|
DC_BINADJUST = 19;
|
|
|
{ already defined above !!
|
|
|
- #define DC_DATATYPE_PRODUCED (21)
|
|
|
+ #define DC_DATATYPE_PRODUCED (21)
|
|
|
}
|
|
|
{ DeviceIoControl }
|
|
|
{ DlgDirList }
|
|
@@ -1429,8 +1429,8 @@ unit defines;
|
|
|
CP_OEMCP = 1;
|
|
|
{ GetDateFormat }
|
|
|
{ already defined above !!
|
|
|
- #define DATE_SHORTDATE (1)
|
|
|
- #define DATE_LONGDATE (2)
|
|
|
+ #define DATE_SHORTDATE (1)
|
|
|
+ #define DATE_LONGDATE (2)
|
|
|
}
|
|
|
DATE_USE_ALT_CALENDAR = 4;
|
|
|
{ GetDCEx }
|
|
@@ -1475,12 +1475,12 @@ unit defines;
|
|
|
NUMRESERVED = 106;
|
|
|
COLORRES = 108;
|
|
|
{ already defined above !!
|
|
|
- #define PHYSICALWIDTH (110)
|
|
|
- #define PHYSICALHEIGHT (111)
|
|
|
- #define PHYSICALOFFSETX (112)
|
|
|
- #define PHYSICALOFFSETY (113)
|
|
|
- #define SCALINGFACTORX (114)
|
|
|
- #define SCALINGFACTORY (115)
|
|
|
+ #define PHYSICALWIDTH (110)
|
|
|
+ #define PHYSICALHEIGHT (111)
|
|
|
+ #define PHYSICALOFFSETX (112)
|
|
|
+ #define PHYSICALOFFSETY (113)
|
|
|
+ #define SCALINGFACTORX (114)
|
|
|
+ #define SCALINGFACTORY (115)
|
|
|
}
|
|
|
VREFRESH = 116;
|
|
|
DESKTOPHORZRES = 118;
|
|
@@ -3581,7 +3581,7 @@ unit defines;
|
|
|
HHT_TORIGHT = 1024;
|
|
|
{ TBADDBITMAP structure }
|
|
|
{ was #define dname def_expr }
|
|
|
- function HINST_COMMCTRL : HINSTANCE;
|
|
|
+ function HINST_COMMCTRL : HINST;
|
|
|
|
|
|
|
|
|
const
|
|
@@ -3736,7 +3736,7 @@ unit defines;
|
|
|
{const this is a function in fact !!
|
|
|
LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKW;}
|
|
|
function LPSTR_TEXTCALLBACK : LPWSTR;
|
|
|
-
|
|
|
+
|
|
|
{$else}
|
|
|
|
|
|
{const
|
|
@@ -3833,7 +3833,7 @@ unit defines;
|
|
|
TREEITEM = record
|
|
|
end;
|
|
|
HTREEITEM = ^TREEITEM;
|
|
|
-
|
|
|
+
|
|
|
{ was #define dname def_expr }
|
|
|
function TVI_ROOT : HTREEITEM;
|
|
|
|
|
@@ -4824,15 +4824,15 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_COMMAND_CMD(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_COMMAND_ID(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
@@ -4844,9 +4844,9 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_HSCROLL_CODE(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
@@ -4854,15 +4854,15 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_HSCROLL_POS(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_MDIACTIVATE_FACTIVATE(h,a,b : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
@@ -4874,9 +4874,9 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_VSCROLL_CODE(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
@@ -4884,9 +4884,9 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_VSCROLL_POS(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ Not convertable by H2PAS
|
|
|
#define FORWARD_WM_CLOSE(h, fn) __CRACK_VOID_F(fn,(h, WM_CLOSE, 0, 0))
|
|
@@ -4905,7 +4905,7 @@ unit defines;
|
|
|
#define FORWARD_WM_QUERYENDSESSION(h, fn) __CRACK_BOOL_F(fn,(h, WM_QUERYENDSESSION, 0, 0))
|
|
|
#define FORWARD_WM_SIZE(h, state, cx, cy, fn) __CRACK_VOID_F(fn,(h, WM_SIZE, (WPARAM)state, MAKELPARAM(cx, cy)))
|
|
|
#define FORWARD_WM_SYSCOMMAND(h, c, x, y, fn) __CRACK_VOID_F(fn,(h, WM_SYSCOMMAND, (WPARAM)c, MAKELPARAM(x, y)))
|
|
|
-
|
|
|
+
|
|
|
#define HANDLE_WM_CLOSE(h, w, l, fn) __CRACK_ZERO_F(fn,(h));
|
|
|
#define HANDLE_WM_COMMAND(h, w, l, fn) __CRACK_ZERO_F(fn,(h, SEXT_LOWORD(w), (HWND)l, HIWORD(w)))
|
|
|
#define HANDLE_WM_CREATE(h, w, l, fn) (LRESULT)((fn(h, (CREATESTRUCT )l)) ? 0 : -1)
|
|
@@ -5038,19 +5038,19 @@ unit defines;
|
|
|
PROCESSOR_ARCHITECTURE_ALPHA = 2;
|
|
|
PROCESSOR_ARCHITECTURE_PPC = 3;
|
|
|
{ was #define dname(params) def_expr }
|
|
|
- function FreeModule(h:HINSTANCE):WINBOOL;
|
|
|
+ function FreeModule(h:HINST):WINBOOL;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function MakeProcInstance(p,i : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function FreeProcInstance(p : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
|
|
|
|
|
|
const
|
|
@@ -5138,7 +5138,7 @@ unit defines;
|
|
|
ascdef,
|
|
|
{$endif UNICODE}
|
|
|
func;
|
|
|
-
|
|
|
+
|
|
|
const External_library='kernel32'; {Setup as you need!}
|
|
|
|
|
|
{$endif not windows_include_files}
|
|
@@ -5505,9 +5505,9 @@ unit defines;
|
|
|
end;
|
|
|
|
|
|
{ was #define dname def_expr }
|
|
|
- function HINST_COMMCTRL : HINSTANCE;
|
|
|
+ function HINST_COMMCTRL : HINST;
|
|
|
begin
|
|
|
- HINST_COMMCTRL:=HINSTANCE(-(1));
|
|
|
+ HINST_COMMCTRL:=HINST(-(1));
|
|
|
end;
|
|
|
|
|
|
{ was #define dname def_expr }
|
|
@@ -5529,7 +5529,7 @@ unit defines;
|
|
|
begin
|
|
|
LPSTR_TEXTCALLBACK:=LPWSTR(-(1));
|
|
|
end;
|
|
|
-
|
|
|
+
|
|
|
{$else}
|
|
|
|
|
|
{const
|
|
@@ -5596,18 +5596,18 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_COMMAND_CMD(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
GET_WM_COMMAND_CMD:=HIWORD(w);
|
|
|
end;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_COMMAND_ID(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
GET_WM_COMMAND_ID:=LOWORD(w);
|
|
|
end;
|
|
@@ -5628,9 +5628,9 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_HSCROLL_CODE(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
GET_WM_HSCROLL_CODE:=LOWORD(w);
|
|
|
end;
|
|
@@ -5644,18 +5644,18 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_HSCROLL_POS(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
GET_WM_HSCROLL_POS:=HIWORD(w);
|
|
|
end;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_MDIACTIVATE_FACTIVATE(h,a,b : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
GET_WM_MDIACTIVATE_FACTIVATE:=b = (LONG(h));
|
|
|
end;
|
|
@@ -5676,9 +5676,9 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_VSCROLL_CODE(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
GET_WM_VSCROLL_CODE:=LOWORD(w);
|
|
|
end;
|
|
@@ -5692,33 +5692,33 @@ unit defines;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function GET_WM_VSCROLL_POS(w,l : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
GET_WM_VSCROLL_POS:=HIWORD(w);
|
|
|
end;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
- function FreeModule(h:HINSTANCE):WINBOOL;
|
|
|
+ function FreeModule(h:HINST):WINBOOL;
|
|
|
begin
|
|
|
FreeModule:=FreeLibrary(h);
|
|
|
end;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function MakeProcInstance(p,i : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
MakeProcInstance:=p;
|
|
|
end;
|
|
|
|
|
|
{ was #define dname(params) def_expr }
|
|
|
{ argument types are unknown }
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
function FreeProcInstance(p : longint) : longint;
|
|
|
- { return type might be wrong }
|
|
|
+ { return type might be wrong }
|
|
|
begin
|
|
|
FreeProcInstance:=p;
|
|
|
end;
|
|
@@ -5730,7 +5730,10 @@ end.
|
|
|
{$endif not windows_include_files}
|
|
|
{
|
|
|
$Log$
|
|
|
- Revision 1.5 1998-08-31 11:53:54 pierre
|
|
|
+ Revision 1.6 1998-10-27 11:17:12 peter
|
|
|
+ * type HINSTANCE -> HINST
|
|
|
+
|
|
|
+ Revision 1.5 1998/08/31 11:53:54 pierre
|
|
|
* compilable windows.pp file
|
|
|
still to do :
|
|
|
- findout problems
|