- NDK fix: don't undef a million status codes, instead, have apps define
WIN32_NO_STATUS.
- winnt.h: respect WIN32_NO_STATUS for DBG codes.
- rtl: change STDCALL to NTAPI
- everything else: add precompiled headers where missing, define
WIN32_NO_STATUS.
Modified: trunk/reactos/apps/utils/ps/ps.c
Modified: trunk/reactos/include/ndk/ntndk.h
Modified: trunk/reactos/include/ndk/rtlfuncs.h
Modified: trunk/reactos/include/ndk/umtypes.h
Modified: trunk/reactos/include/ndk/zwfuncs.h
Modified: trunk/reactos/lib/advapi32/advapi32.h
Modified: trunk/reactos/lib/crt/except/unwind.c
Modified: trunk/reactos/lib/crt/wine/scanf.c
Modified: trunk/reactos/lib/dnsapi/dnsapi/adns.c
Modified: trunk/reactos/lib/dnsapi/dnsapi/context.c
Modified: trunk/reactos/lib/dnsapi/dnsapi/free.c
Modified: trunk/reactos/lib/dnsapi/dnsapi/names.c
Added: trunk/reactos/lib/dnsapi/dnsapi/precomp.h
Modified: trunk/reactos/lib/dnsapi/dnsapi/query.c
Modified: trunk/reactos/lib/dnsapi/dnsapi/stubs.c
Modified: trunk/reactos/lib/dnsapi/dnsapi.xml
Modified: trunk/reactos/lib/epsapi/enum/drivers.c
Modified: trunk/reactos/lib/epsapi/enum/modules.c
Modified: trunk/reactos/lib/epsapi/enum/processes.c
Modified: trunk/reactos/lib/fmifs/chkdsk.c
Modified: trunk/reactos/lib/fmifs/compress.c
Modified: trunk/reactos/lib/fmifs/diskcopy.c
Modified: trunk/reactos/lib/fmifs/extend.c
Modified: trunk/reactos/lib/fmifs/fmifs.xml
Modified: trunk/reactos/lib/fmifs/format.c
Modified: trunk/reactos/lib/fmifs/init.c
Modified: trunk/reactos/lib/fmifs/label.c
Modified: trunk/reactos/lib/fmifs/media.c
Added: trunk/reactos/lib/fmifs/precomp.h
Modified: trunk/reactos/lib/fslib/vfatlib/vfatlib.h
Modified: trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h
Modified: trunk/reactos/lib/gdi32/include/precomp.h
Modified: trunk/reactos/lib/kernel32/k32.h
Modified: trunk/reactos/lib/lsasrv/lsaport.c
Modified: trunk/reactos/lib/lsasrv/lsasrv.c
Modified: trunk/reactos/lib/msafd/msafd.h
Modified: trunk/reactos/lib/nt/entry_point.c
Modified: trunk/reactos/lib/ntdll/inc/ntdll.h
Modified: trunk/reactos/lib/opengl32/gl.c
Modified: trunk/reactos/lib/opengl32/opengl32.c
Modified: trunk/reactos/lib/opengl32/teb.h
Modified: trunk/reactos/lib/opengl32/wgl.c
Modified: trunk/reactos/lib/psapi/precomp.h
Modified: trunk/reactos/lib/rtl/access.c
Modified: trunk/reactos/lib/rtl/acl.c
Modified: trunk/reactos/lib/rtl/atom.c
Modified: trunk/reactos/lib/rtl/bit.c
Modified: trunk/reactos/lib/rtl/bitmap.c
Modified: trunk/reactos/lib/rtl/bootdata.c
Modified: trunk/reactos/lib/rtl/compress.c
Modified: trunk/reactos/lib/rtl/crc32.c
Modified: trunk/reactos/lib/rtl/critical.c
Modified: trunk/reactos/lib/rtl/dbgbuffer.c
Modified: trunk/reactos/lib/rtl/debug.c
Modified: trunk/reactos/lib/rtl/dos8dot3.c
Modified: trunk/reactos/lib/rtl/encode.c
Modified: trunk/reactos/lib/rtl/env.c
Modified: trunk/reactos/lib/rtl/error.c
Modified: trunk/reactos/lib/rtl/exception.c
Modified: trunk/reactos/lib/rtl/generictable.c
Modified: trunk/reactos/lib/rtl/handle.c
Modified: trunk/reactos/lib/rtl/heap.c
Modified: trunk/reactos/lib/rtl/i386/exception.c
Modified: trunk/reactos/lib/rtl/image.c
Modified: trunk/reactos/lib/rtl/largeint.c
Modified: trunk/reactos/lib/rtl/luid.c
Modified: trunk/reactos/lib/rtl/mem.c
Modified: trunk/reactos/lib/rtl/message.c
Modified: trunk/reactos/lib/rtl/network.c
Modified: trunk/reactos/lib/rtl/nls.c
Modified: trunk/reactos/lib/rtl/path.c
Modified: trunk/reactos/lib/rtl/ppb.c
Modified: trunk/reactos/lib/rtl/process.c
Modified: trunk/reactos/lib/rtl/propvar.c
Modified: trunk/reactos/lib/rtl/random.c
Modified: trunk/reactos/lib/rtl/rangelist.c
Modified: trunk/reactos/lib/rtl/registry.c
Modified: trunk/reactos/lib/rtl/resource.c
Modified: trunk/reactos/lib/rtl/rtl.h
Modified: trunk/reactos/lib/rtl/rtlp.h
Modified: trunk/reactos/lib/rtl/sd.c
Modified: trunk/reactos/lib/rtl/security.c
Modified: trunk/reactos/lib/rtl/sid.c
Modified: trunk/reactos/lib/rtl/splaytree.c
Modified: trunk/reactos/lib/rtl/thread.c
Modified: trunk/reactos/lib/rtl/time.c
Modified: trunk/reactos/lib/rtl/timerqueue.c
Modified: trunk/reactos/lib/rtl/timezone.c
Modified: trunk/reactos/lib/rtl/unicode.c
Modified: trunk/reactos/lib/rtl/unicodeprefix.c
Modified: trunk/reactos/lib/rtl/vectoreh.c
Modified: trunk/reactos/lib/rtl/version.c
Modified: trunk/reactos/lib/samlib/samlib.c
Modified: trunk/reactos/lib/secur32/dllmain.c
Modified: trunk/reactos/lib/secur32/lsa.c
Added: trunk/reactos/lib/secur32/precomp.h
Modified: trunk/reactos/lib/secur32/secur32.xml
Modified: trunk/reactos/lib/smdll/query.c
Modified: trunk/reactos/lib/smlib/compses.c
Modified: trunk/reactos/lib/smlib/connect.c
[truncated at 100 lines; 39 more skipped]
_____
Modified: trunk/reactos/apps/utils/ps/ps.c
--- trunk/reactos/apps/utils/ps/ps.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/apps/utils/ps/ps.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -22,8 +22,9 @@
Thanks to Filip Navara patch for fixing the Xp crash problem.
*/
+#define NTOS_MODE_USER
+#define WIN32_NO_STATUS
#include <windows.h>
-#define NTOS_MODE_USER
#include <ndk/ntndk.h>
typedef struct _SYSTEM_THREADS
_____
Modified: trunk/reactos/include/ndk/ntndk.h
--- trunk/reactos/include/ndk/ntndk.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/include/ndk/ntndk.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -13,7 +13,7 @@
#include <stdarg.h>
/* Helper Header */
-#include <helper.h>
+#include <reactos/helper.h>
/* A version of ntdef.h to be used with PSDK headers. */
#include "umtypes.h"
_____
Modified: trunk/reactos/include/ndk/rtlfuncs.h
--- trunk/reactos/include/ndk/rtlfuncs.h 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/include/ndk/rtlfuncs.h 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -1989,6 +1989,19 @@
RtlUniform(PULONG Seed);
/*
+ * Network Functions
+ */
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlIpv4StringToAddressW(
+ IN LPWSTR IpString,
+ IN ULONG Base,
+ OUT PULONG PtrToIpAddr,
+ OUT PULONG IpAddr
+);
+
+/*
* Time Functions
*/
NTSYSAPI
@@ -2042,6 +2055,10 @@
NTAPI
RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation);
+NTSYSAPI
+BOOLEAN
+NTAPI
+RtlGetNtProductType(OUT PNT_PRODUCT_TYPE ProductType);
static __inline struct _PEB* NtCurrentPeb (void)
{
_____
Modified: trunk/reactos/include/ndk/umtypes.h
--- trunk/reactos/include/ndk/umtypes.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/include/ndk/umtypes.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -14,51 +14,7 @@
/* DEPENDENCIES
**************************************************************/
#include <winioctl.h>
#include <ntnls.h>
-
-/* Undef the following to avoid conflects including ntstatus.h with
winnt.h */
-#undef STATUS_WAIT_0
-#undef STATUS_ABANDONED_WAIT_0
-#undef STATUS_USER_APC
-#undef STATUS_TIMEOUT
-#undef STATUS_PENDING
-#undef DBG_EXCEPTION_HANDLED
-#undef STATUS_SEGMENT_NOTIFICATION
-#undef DBG_TERMINATE_THREAD
-#undef DBG_TERMINATE_PROCESS
-#undef DBG_CONTROL_C
-#undef DBG_CONTROL_BREAK
-#undef DBG_COMMAND_EXCEPTION
-#undef STATUS_GUARD_PAGE_VIOLATION
-#undef STATUS_DATATYPE_MISALIGNMENT
-#undef STATUS_BREAKPOINT
-#undef STATUS_SINGLE_STEP
-#undef DBG_EXCEPTION_NOT_HANDLED
-#undef STATUS_ACCESS_VIOLATION
-#undef STATUS_IN_PAGE_ERROR
-#undef STATUS_INVALID_HANDLE
-#undef STATUS_NO_MEMORY
-#undef STATUS_ILLEGAL_INSTRUCTION
-#undef STATUS_NONCONTINUABLE_EXCEPTION
-#undef STATUS_INVALID_DISPOSITION
-#undef STATUS_ARRAY_BOUNDS_EXCEEDED
-#undef STATUS_FLOAT_DENORMAL_OPERAND
-#undef STATUS_FLOAT_DIVIDE_BY_ZERO
-#undef STATUS_FLOAT_INEXACT_RESULT
-#undef STATUS_FLOAT_INVALID_OPERATION
-#undef STATUS_FLOAT_OVERFLOW
-#undef STATUS_FLOAT_STACK_CHECK
-#undef STATUS_FLOAT_UNDERFLOW
-#undef STATUS_INTEGER_DIVIDE_BY_ZERO
-#undef STATUS_INTEGER_OVERFLOW
-#undef STATUS_PRIVILEGED_INSTRUCTION
-#undef STATUS_STACK_OVERFLOW
-#undef STATUS_CONTROL_C_EXIT
-#undef STATUS_FLOAT_MULTIPLE_FAULTS
-#undef STATUS_FLOAT_MULTIPLE_TRAPS
-#undef STATUS_REG_NAT_CONSUMPTION
-#undef STATUS_SXS_EARLY_DEACTIVATION
-#undef STATUS_SXS_INVALID_DEACTIVATION
-
+#undef WIN32_NO_STATUS
#include <ntstatus.h>
/* CONSTANTS
*****************************************************************/
_____
Modified: trunk/reactos/include/ndk/zwfuncs.h
--- trunk/reactos/include/ndk/zwfuncs.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/include/ndk/zwfuncs.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -12,6 +12,9 @@
/* DEPENDENCIES
**************************************************************/
#define _WMIKM_
#include <evntrace.h>
+#include "lpctypes.h"
+#include "dbgktypes.h"
+#include "kdtypes.h"
/* FUNCTION TYPES
************************************************************/
_____
Modified: trunk/reactos/lib/advapi32/advapi32.h
--- trunk/reactos/lib/advapi32/advapi32.h 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/advapi32/advapi32.h 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -12,6 +12,7 @@
#include <stdio.h>
/* PSDK/NDK Headers */
+#define WIN32_NO_STATUS
#include <windows.h>
#include <accctrl.h>
#include <sddl.h>
_____
Modified: trunk/reactos/lib/crt/except/unwind.c
--- trunk/reactos/lib/crt/except/unwind.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/crt/except/unwind.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -1,3 +1,4 @@
+#define WIN32_NO_STATUS
#include "precomp.h"
#include <windows.h>
#define NTOS_MODE_USER
_____
Modified: trunk/reactos/lib/crt/wine/scanf.c
--- trunk/reactos/lib/crt/wine/scanf.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/crt/wine/scanf.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -33,6 +33,7 @@
#include "winternl.h"
#include "msvcrt.h"
*/
+#define WIN32_NO_STATUS
#include <stdarg.h>
#include <wchar.h>
_____
Modified: trunk/reactos/lib/dnsapi/dnsapi/adns.c
--- trunk/reactos/lib/dnsapi/dnsapi/adns.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/dnsapi/dnsapi/adns.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -8,11 +8,11 @@
* 12/15/03 -- Created
*/
-#include <windows.h>
-#include <winerror.h>
-#include <windns.h>
-#include <internal/windns.h>
+#include "precomp.h"
+#define NDEBUG
+#include <debug.h>
+
DNS_STATUS DnsIntTranslateAdnsToDNS_STATUS( int Status ) {
switch( Status ) {
case adns_s_ok:
_____
Modified: trunk/reactos/lib/dnsapi/dnsapi/context.c
--- trunk/reactos/lib/dnsapi/dnsapi/context.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/dnsapi/dnsapi/context.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -8,13 +8,11 @@
* 12/15/03 -- Created
*/
-#include <windows.h>
-#include <winerror.h>
-#include <windns.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
-#include <internal/windns.h>
+#include "precomp.h"
+#define NDEBUG
+#include <debug.h>
+
/* DnsAcquireContextHandle *************
* Create a context handle that will allow us to open and retrieve
queries.
*
_____
Modified: trunk/reactos/lib/dnsapi/dnsapi/free.c
--- trunk/reactos/lib/dnsapi/dnsapi/free.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/dnsapi/dnsapi/free.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -8,13 +8,11 @@
* 12/15/03 -- Created
*/
-#include <windows.h>
-#include <winerror.h>
-#include <windns.h>
-#include <internal/windns.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
+#include "precomp.h"
+#define NDEBUG
+#include <debug.h>
+
VOID WINAPI DnsFree
( PVOID Data, DNS_FREE_TYPE FreeType ) {
switch( FreeType ) {
_____
Modified: trunk/reactos/lib/dnsapi/dnsapi/names.c
--- trunk/reactos/lib/dnsapi/dnsapi/names.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/dnsapi/dnsapi/names.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -1,11 +1,8 @@
-#include <ctype.h>
-#include <windows.h>
-#include <winerror.h>
-#include <windns.h>
-#include <internal/windns.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
+#include "precomp.h"
+#define NDEBUG
+#include <debug.h>
+
static BOOL DnsIntNameContainsDots( LPCWSTR Name ) {
return wcschr( Name, '.' ) ? TRUE : FALSE;
}
_____
Added: trunk/reactos/lib/dnsapi/dnsapi/precomp.h
--- trunk/reactos/lib/dnsapi/dnsapi/precomp.h 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/dnsapi/dnsapi/precomp.h 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -0,0 +1,22 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS System Libraries
+ * FILE: lib/dnsapi/precomp.h
+ * PURPOSE: Win32 DNS API Libary Header
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ */
+
+/* INCLUDES
******************************************************************/
+
+#define WIN32_NO_STATUS
+#define NTOS_MODE_USER
+
+/* PSDK/NDK Headers */
+#include <windows.h>
+#include <winerror.h>
+#include <windns.h>
+#include <ndk/ntndk.h>
+
+/* Internal DNSAPI Headers */
+#include <internal/windns.h>
+
_____
Modified: trunk/reactos/lib/dnsapi/dnsapi/query.c
--- trunk/reactos/lib/dnsapi/dnsapi/query.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/dnsapi/dnsapi/query.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -8,13 +8,11 @@
* 12/15/03 -- Created
*/
-#include <windows.h>
-#include <winerror.h>
-#include <windns.h>
-#include <internal/windns.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
+#include "precomp.h"
+#define NDEBUG
+#include <debug.h>
+
/* DnsQuery ****************************
* Begin a DNS query, and allow the result to be placed in the
application
* supplied result pointer. The result can be manipulated with the
record
_____
Modified: trunk/reactos/lib/dnsapi/dnsapi/stubs.c
--- trunk/reactos/lib/dnsapi/dnsapi/stubs.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/dnsapi/dnsapi/stubs.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -1,7 +1,9 @@
+/* Can't use precomp.h because these weren't stubbed properly */
+#define WIN32_NO_STATUS
+#define NTOS_MODE_USER
#include <windows.h>
-#include <winerror.h>
-#define NTOS_MODE_USER
#include <ndk/ntndk.h>
+
#include <debug.h>
typedef ULONG DNS_STATUS;
_____
Modified: trunk/reactos/lib/dnsapi/dnsapi.xml
--- trunk/reactos/lib/dnsapi/dnsapi.xml 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/dnsapi/dnsapi.xml 2005-10-19 17:03:38 UTC (rev
18598)
@@ -20,6 +20,7 @@
<file>names.c</file>
<file>query.c</file>
<file>stubs.c</file>
+ <pch>precomp.h</pch>
</directory>
<file>dnsapi.rc</file>
</module>
_____
Modified: trunk/reactos/lib/epsapi/enum/drivers.c
--- trunk/reactos/lib/epsapi/enum/drivers.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/epsapi/enum/drivers.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -14,6 +14,7 @@
* and improve reusability
*/
+#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
_____
Modified: trunk/reactos/lib/epsapi/enum/modules.c
--- trunk/reactos/lib/epsapi/enum/modules.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/epsapi/enum/modules.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -18,6 +18,7 @@
* isolated in its own library to clear the
confusion
* and improve reusability
*/
+#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
_____
Modified: trunk/reactos/lib/epsapi/enum/processes.c
--- trunk/reactos/lib/epsapi/enum/processes.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/epsapi/enum/processes.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -30,7 +30,7 @@
* isolated in its own library to clear the
confusion
* and improve reusability
*/
-
+#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
_____
Modified: trunk/reactos/lib/fmifs/chkdsk.c
--- trunk/reactos/lib/fmifs/chkdsk.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/chkdsk.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,10 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
-#include <fmifs/fmifs.h>
+#include "precomp.h"
/* FMIFS.1 */
VOID STDCALL
_____
Modified: trunk/reactos/lib/fmifs/compress.c
--- trunk/reactos/lib/fmifs/compress.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/compress.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,10 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
-#include <winioctl.h>
+#include "precomp.h"
/*
* @implemented
_____
Modified: trunk/reactos/lib/fmifs/diskcopy.c
--- trunk/reactos/lib/fmifs/diskcopy.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/diskcopy.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,9 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
+#include "precomp.h"
/* FMIFS.3 */
VOID STDCALL
_____
Modified: trunk/reactos/lib/fmifs/extend.c
--- trunk/reactos/lib/fmifs/extend.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/extend.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,9 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
+#include "precomp.h"
/* FMIFS.5 */
VOID STDCALL
_____
Modified: trunk/reactos/lib/fmifs/fmifs.xml
--- trunk/reactos/lib/fmifs/fmifs.xml 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/fmifs.xml 2005-10-19 17:03:38 UTC (rev
18598)
@@ -15,4 +15,5 @@
<file>label.c</file>
<file>media.c</file>
<file>fmifs.rc</file>
+ <pch>precomp.h</pch>
</module>
_____
Modified: trunk/reactos/lib/fmifs/format.c
--- trunk/reactos/lib/fmifs/format.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/format.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,14 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
-#include <fmifs/fmifs.h>
-#include <fslib/vfatlib.h>
-#include <string.h>
+#include "precomp.h"
#define NDEBUG
#include <debug.h>
_____
Modified: trunk/reactos/lib/fmifs/init.c
--- trunk/reactos/lib/fmifs/init.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/init.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,9 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
+#include "precomp.h"
static BOOL FmIfsInitialized = FALSE;
_____
Modified: trunk/reactos/lib/fmifs/label.c
--- trunk/reactos/lib/fmifs/label.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/label.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,9 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
+#include "precomp.h"
/* FMIFS.10 */
VOID STDCALL
_____
Modified: trunk/reactos/lib/fmifs/media.c
--- trunk/reactos/lib/fmifs/media.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/media.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,9 +9,7 @@
* 1999-02-16 (Emanuele Aliberti)
* Entry points added.
*/
-#define UNICODE
-#define _UNICODE
-#include <windows.h>
+#include "precomp.h"
/* FMIFS.9 */
VOID STDCALL
_____
Added: trunk/reactos/lib/fmifs/precomp.h
--- trunk/reactos/lib/fmifs/precomp.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/fmifs/precomp.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -0,0 +1,26 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS System Libraries
+ * FILE: lib/fmifs/precomp.h
+ * PURPOSE: Win32 FMIFS API Libary Header
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ */
+
+/* INCLUDES
******************************************************************/
+
+#define WIN32_NO_STATUS
+#define NTOS_MODE_USER
+#define UNICODE
+#define _UNICODE
+
+/* PSDK/NDK Headers */
+#include <windows.h>
+#include <ndk/ntndk.h>
+
+/* FMIFS Public Header */
+#include <fmifs/fmifs.h>
+
+/* VFATLIB Public Header */
+#include <fslib/vfatlib.h>
+
+/* EOF */
_____
Modified: trunk/reactos/lib/fslib/vfatlib/vfatlib.h
--- trunk/reactos/lib/fslib/vfatlib/vfatlib.h 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/fslib/vfatlib/vfatlib.h 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -4,6 +4,7 @@
* FILE: vfatlib.h
*/
+#define WIN32_NO_STATUS
#include <windows.h>
#include <fmifs/fmifs.h>
#define NTOS_MODE_USER
_____
Modified: trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h
--- trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/fslib/vfatxlib/vfatxlib.h 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -3,6 +3,7 @@
* PROJECT: ReactOS VFAT filesystem library
* FILE: vfatxlib.h
*/
+#define WIN32_NO_STATUS
#include <windows.h>
#include <fmifs/fmifs.h>
#define NTOS_MODE_USER
_____
Modified: trunk/reactos/lib/gdi32/include/precomp.h
--- trunk/reactos/lib/gdi32/include/precomp.h 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/gdi32/include/precomp.h 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -9,6 +9,7 @@
/* INCLUDES
******************************************************************/
/* SDK/DDK/NDK Headers. */
+#define WIN32_NO_STATUS
#define NTOS_MODE_USER
#define __GDI32__
#include <windows.h>
_____
Modified: trunk/reactos/lib/kernel32/k32.h
--- trunk/reactos/lib/kernel32/k32.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/kernel32/k32.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,6 +9,7 @@
/* INCLUDES
******************************************************************/
/* PSDK/NDK Headers */
+#define WIN32_NO_STATUS
#define NTOS_MODE_USER
#define _KERNEL32_
#include <windows.h>
_____
Modified: trunk/reactos/lib/lsasrv/lsaport.c
--- trunk/reactos/lib/lsasrv/lsaport.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/lsasrv/lsaport.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -1,6 +1,7 @@
/*
*/
+#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
_____
Modified: trunk/reactos/lib/lsasrv/lsasrv.c
--- trunk/reactos/lib/lsasrv/lsasrv.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/lsasrv/lsasrv.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -1,4 +1,4 @@
-
+#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
_____
Modified: trunk/reactos/lib/msafd/msafd.h
--- trunk/reactos/lib/msafd/msafd.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/msafd/msafd.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -8,8 +8,9 @@
#define __MSAFD_H
#include <stdio.h>
+#include <stdlib.h>
-#include <stdlib.h>
+#define WIN32_NO_STATUS
#include <windows.h>
#include <winsock2.h>
#include <ws2spi.h>
_____
Modified: trunk/reactos/lib/nt/entry_point.c
--- trunk/reactos/lib/nt/entry_point.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/nt/entry_point.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,6 +9,7 @@
/* INCLUDES
******************************************************************/
/* PSDK/NDK Headers */
+#define WIN32_NO_STATUS
#include <stdio.h>
#include <windows.h>
#define NTOS_MODE_USER
_____
Modified: trunk/reactos/lib/ntdll/inc/ntdll.h
--- trunk/reactos/lib/ntdll/inc/ntdll.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/ntdll/inc/ntdll.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -20,6 +20,7 @@
#include <ctype.h>
/* SDK/DDK/NDK Headers. */
+#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
_____
Modified: trunk/reactos/lib/opengl32/gl.c
--- trunk/reactos/lib/opengl32/gl.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/opengl32/gl.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -21,6 +21,7 @@
*/
#define WIN32_LEANER_AND_MEANER
+#define WIN32_NO_STATUS
#include <windows.h>
#include "teb.h"
_____
Modified: trunk/reactos/lib/opengl32/opengl32.c
--- trunk/reactos/lib/opengl32/opengl32.c 2005-10-19 17:02:15 UTC
(rev 18597)
+++ trunk/reactos/lib/opengl32/opengl32.c 2005-10-19 17:03:38 UTC
(rev 18598)
@@ -10,6 +10,7 @@
*/
#define WIN32_LEAN_AND_MEAN
+#define WIN32_NO_STATUS
#include <windows.h>
#include <winreg.h>
#include "teb.h"
_____
Modified: trunk/reactos/lib/opengl32/teb.h
--- trunk/reactos/lib/opengl32/teb.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/opengl32/teb.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -1,33 +1,5 @@
// teb.h
-#ifdef _MSC_VER
-
-typedef struct _TEB
-{
- char blah[0x7C4];
- PVOID glDispatchTable[0xA3]; /* 7C4h */
- PVOID glReserved1[0xA3]; /* A50h */
- PVOID glReserved2; /* BDCh */
- PVOID glSectionInfo; /* BE0h */
- PVOID glSection; /* BE4h */
- PVOID glTable; /* BE8h */
- PVOID glCurrentRC; /* BECh */
- PVOID glContext; /* BF0h */
-} TEB, *PTEB;
-
-#pragma warning ( disable : 4035 )
-static inline PTEB __declspec(naked) NtCurrentTeb(void)
-{
- //struct _TEB * pTeb;
- __asm mov eax, fs:0x18
- //__asm mov pTeb, eax
- //return pTeb;
-};
-#pragma warning ( default : 4035 )
-
-#else/*_MSC_VER*/
-
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
-#endif/*_MSC_VER*/
_____
Modified: trunk/reactos/lib/opengl32/wgl.c
--- trunk/reactos/lib/opengl32/wgl.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/opengl32/wgl.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -9,6 +9,7 @@
*/
#define WIN32_LEAN_AND_MEAN
+#define WIN32_NO_STATUS
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
_____
Modified: trunk/reactos/lib/psapi/precomp.h
--- trunk/reactos/lib/psapi/precomp.h 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/psapi/precomp.h 2005-10-19 17:03:38 UTC (rev
18598)
@@ -1,4 +1,4 @@
-
+#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
_____
Modified: trunk/reactos/lib/rtl/access.c
--- trunk/reactos/lib/rtl/access.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/rtl/access.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -17,7 +17,8 @@
/*
* @implemented
*/
-BOOLEAN STDCALL
+BOOLEAN
+NTAPI
RtlAreAllAccessesGranted(ACCESS_MASK GrantedAccess,
ACCESS_MASK DesiredAccess)
{
@@ -25,41 +26,37 @@
return ((GrantedAccess & DesiredAccess) == DesiredAccess);
}
-
/*
* @implemented
*/
-BOOLEAN STDCALL
+BOOLEAN
+NTAPI
RtlAreAnyAccessesGranted(ACCESS_MASK GrantedAccess,
ACCESS_MASK DesiredAccess)
{
- PAGED_CODE_RTL();
- return ((GrantedAccess & DesiredAccess) != 0);
+ PAGED_CODE_RTL();
+ return ((GrantedAccess & DesiredAccess) != 0);
}
-
/*
* @implemented
*/
-VOID STDCALL
+VOID
+NTAPI
RtlMapGenericMask(PACCESS_MASK AccessMask,
PGENERIC_MAPPING GenericMapping)
{
- PAGED_CODE_RTL();
+ PAGED_CODE_RTL();
- if (*AccessMask & GENERIC_READ)
- *AccessMask |= GenericMapping->GenericRead;
+ if (*AccessMask & GENERIC_READ) *AccessMask |=
GenericMapping->GenericRead;
- if (*AccessMask & GENERIC_WRITE)
- *AccessMask |= GenericMapping->GenericWrite;
+ if (*AccessMask & GENERIC_WRITE) *AccessMask |=
GenericMapping->GenericWrite;
- if (*AccessMask & GENERIC_EXECUTE)
- *AccessMask |= GenericMapping->GenericExecute;
+ if (*AccessMask & GENERIC_EXECUTE) *AccessMask |=
GenericMapping->GenericExecute;
- if (*AccessMask & GENERIC_ALL)
- *AccessMask |= GenericMapping->GenericAll;
+ if (*AccessMask & GENERIC_ALL) *AccessMask |=
GenericMapping->GenericAll;
- *AccessMask &= ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE |
GENERIC_ALL);
+ *AccessMask &= ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE |
GENERIC_ALL);
}
/* EOF */
_____
Modified: trunk/reactos/lib/rtl/acl.c
--- trunk/reactos/lib/rtl/acl.c 2005-10-19 17:02:15 UTC (rev 18597)
+++ trunk/reactos/lib/rtl/acl.c 2005-10-19 17:03:38 UTC (rev 18598)
@@ -14,7 +14,7 @@
/* FUNCTIONS
***************************************************************/
-BOOLEAN STDCALL
+BOOLEAN NTAPI
RtlFirstFreeAce(PACL Acl,
PACE* Ace)
{
@@ -62,7 +62,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlGetAce(PACL Acl,
ULONG AceIndex,
PVOID *Ace)
@@ -150,7 +150,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAccessAllowedAce (IN OUT PACL Acl,
IN ULONG Revision,
IN ACCESS_MASK AccessMask,
@@ -170,7 +170,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAccessAllowedAceEx (IN OUT PACL Acl,
IN ULONG Revision,
IN ULONG Flags,
@@ -191,7 +191,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAccessDeniedAce (PACL Acl,
ULONG Revision,
ACCESS_MASK AccessMask,
@@ -211,7 +211,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAccessDeniedAceEx (IN OUT PACL Acl,
IN ULONG Revision,
IN ULONG Flags,
@@ -254,7 +254,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAce(PACL Acl,
ULONG AclRevision,
ULONG StartingIndex,
@@ -323,7 +323,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAuditAccessAce(PACL Acl,
ULONG Revision,
ACCESS_MASK AccessMask,
@@ -390,7 +390,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAuditAccessAceEx(PACL Acl,
ULONG Revision,
ULONG Flags,
@@ -477,7 +477,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlDeleteAce(PACL Acl,
ULONG AceIndex)
{
@@ -513,7 +513,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlCreateAcl(PACL Acl,
ULONG AclSize,
ULONG AclRevision)
@@ -546,7 +546,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlQueryInformationAcl(PACL Acl,
PVOID Information,
ULONG InformationLength,
@@ -615,7 +615,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlSetInformationAcl(PACL Acl,
PVOID Information,
ULONG InformationLength,
@@ -660,7 +660,7 @@
/*
* @implemented
*/
-BOOLEAN STDCALL
+BOOLEAN NTAPI
RtlValidAcl (PACL Acl)
{
PACE Ace;
_____
Modified: trunk/reactos/lib/rtl/atom.c
--- trunk/reactos/lib/rtl/atom.c 2005-10-19 17:02:15 UTC (rev
18597)
+++ trunk/reactos/lib/rtl/atom.c 2005-10-19 17:03:38 UTC (rev
18598)
@@ -135,7 +135,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlCreateAtomTable(IN ULONG TableSize,
IN OUT PRTL_ATOM_TABLE *AtomTable)
{
@@ -183,7 +183,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlDestroyAtomTable(IN PRTL_ATOM_TABLE AtomTable)
{
PRTL_ATOM_TABLE_ENTRY *CurrentBucket, *LastBucket;
@@ -232,7 +232,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlEmptyAtomTable(PRTL_ATOM_TABLE AtomTable,
BOOLEAN DeletePinned)
{
@@ -286,7 +286,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlAddAtomToAtomTable(IN PRTL_ATOM_TABLE AtomTable,
IN PWSTR AtomName,
OUT PRTL_ATOM Atom)
@@ -406,7 +406,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlDeleteAtomFromAtomTable(IN PRTL_ATOM_TABLE AtomTable,
IN RTL_ATOM Atom)
{
@@ -478,7 +478,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlLookupAtomInAtomTable(IN PRTL_ATOM_TABLE AtomTable,
IN PWSTR AtomName,
OUT PRTL_ATOM Atom)
@@ -535,7 +535,7 @@
/*
* @implemented
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlPinAtomInAtomTable(IN PRTL_ATOM_TABLE AtomTable,
IN RTL_ATOM Atom)
{
@@ -589,7 +589,7 @@
* (again EXCLUDING the null terminator) is returned in NameLength, at
least
* on Win2k, XP and ReactOS. NT4 will return 0 in that case.
*/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
RtlQueryAtomInAtomTable(PRTL_ATOM_TABLE AtomTable,
RTL_ATOM Atom,
PULONG RefCount,
[truncated at 1000 lines; 4572 more skipped]