2005-06-20 04:07:49 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS System Libraries
|
2005-06-20 05:36:32 +00:00
|
|
|
* FILE: lib/kernel32/k32.h
|
|
|
|
* PURPOSE: Win32 Kernel Libary Header
|
2005-06-20 04:07:49 +00:00
|
|
|
* PROGRAMMER: Alex Ionescu (alex@relsoft.net)
|
|
|
|
*/
|
|
|
|
|
2005-11-25 11:53:30 +00:00
|
|
|
#ifndef __K32_H
|
|
|
|
#define __K32_H
|
|
|
|
|
2005-06-20 04:07:49 +00:00
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
/* PSDK/NDK Headers */
|
2005-10-19 17:03:38 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2005-07-26 14:00:45 +00:00
|
|
|
#include <windows.h>
|
2005-09-28 21:43:54 +00:00
|
|
|
#include <tlhelp32.h>
|
2007-08-04 10:59:01 +00:00
|
|
|
|
2009-09-28 17:45:23 +00:00
|
|
|
/* Redefine NTDDI_VERSION to 2K3 SP1 to get correct NDK definitions */
|
|
|
|
#undef NTDDI_VERSION
|
|
|
|
#define NTDDI_VERSION NTDDI_WS03SP1
|
2007-08-04 10:59:01 +00:00
|
|
|
|
2005-06-20 04:07:49 +00:00
|
|
|
#include <ndk/ntndk.h>
|
|
|
|
|
Large change to modify NTDLL'S CSR Functions to be compatible with NT. They are external and we should at least try to match the number of arguments (one vs eight? come on!). Because this is also the direction that Emanuele wants to be taking, the whole external calling interface was modified to be more compatible with NT (although internally it still isn't, and does not have a reason to be). API Names are now generated by a macro from the Server ID, like Emanuele and I noticed from traces, and I've entirely removed the concept of a reply structure. CSRSS uses full-duplex one-way structures, not dual-strutures (this would've been incompatible with the external interface anyways). I don't seem to have introduced any new bugs (console-ROS works great for me, as does the GUI), but there is still a chance some obscure bug might happen, so please bear with me, I had to hand-edit over 250 calls. Also, this now allows full removal of ntdll headers and the next commits will clean this up
svn path=/trunk/; revision=16213
2005-06-22 04:02:32 +00:00
|
|
|
/* CSRSS Header */
|
|
|
|
#include <csrss/csrss.h>
|
|
|
|
|
2005-06-20 04:07:49 +00:00
|
|
|
/* C Headers */
|
2005-07-26 14:00:45 +00:00
|
|
|
#include <ctype.h>
|
2009-06-22 20:15:42 +00:00
|
|
|
#include <limits.h>
|
2005-07-26 14:00:45 +00:00
|
|
|
#include <stdio.h>
|
2003-01-15 21:25:29 +00:00
|
|
|
#include <wchar.h>
|
2005-06-20 04:07:49 +00:00
|
|
|
|
|
|
|
/* DDK Driver Headers */
|
2005-07-26 14:00:45 +00:00
|
|
|
#include <ntddbeep.h>
|
2005-12-17 11:08:16 +00:00
|
|
|
#include <mountmgr.h>
|
|
|
|
#include <mountdev.h>
|
2005-06-20 04:07:49 +00:00
|
|
|
|
|
|
|
/* Internal Kernel32 Header */
|
2004-01-23 21:16:04 +00:00
|
|
|
#include "include/kernel32.h"
|
2004-12-18 13:26:57 +00:00
|
|
|
|
2005-06-20 04:07:49 +00:00
|
|
|
/* PSEH for SEH Support */
|
2008-11-30 19:28:11 +00:00
|
|
|
#include <pseh/pseh2.h>
|
2005-06-20 04:07:49 +00:00
|
|
|
|
2005-11-25 11:53:30 +00:00
|
|
|
#endif
|