- Fix Alex's csrss compilation, however it won't link due to missing functionality in smss.

svn path=/trunk/; revision=31371
This commit is contained in:
Aleksey Bragin 2007-12-21 13:40:20 +00:00
parent 68075a2152
commit ad11e66d58
6 changed files with 1527 additions and 1524 deletions

View file

@ -3,6 +3,7 @@
<group>
<module name="csr" type="nativecui" installbase="system32" installname="csr.exe">
<include base="csr">.</include>
<include base="ReactOS">include/reactos/subsys</include>
<define name="_WIN32_WINNT">0x0600</define>
<define name="WINVER">0x0501</define>
<library>nt</library>

View file

@ -50,7 +50,7 @@ CsrCheckRequestThreads(VOID)
NTSTATUS Status;
/* Decrease the count, and see if we're out */
if (!(InterlockedDecrement(&CsrpStaticThreadCount)))
if (!(_InterlockedDecrement((PLONG)&CsrpStaticThreadCount)))
{
/* Check if we've still got space for a Dynamic Thread */
if (CsrpDynamicThreadTotal < CsrMaxApiRequestThreads)
@ -366,8 +366,8 @@ CsrApiRequestThread(IN PVOID Parameter)
NtSetEvent((HANDLE)Parameter, NULL);
/* Increase the Thread Counts */
InterlockedIncrement(&CsrpStaticThreadCount);
InterlockedIncrement(&CsrpDynamicThreadTotal);
_InterlockedIncrement((PLONG)&CsrpStaticThreadCount);
_InterlockedIncrement((PLONG)&CsrpDynamicThreadTotal);
}
/* Now start the loop */
@ -464,7 +464,7 @@ CsrApiRequestThread(IN PVOID Parameter)
}
/* Increase the thread count */
InterlockedIncrement(&CsrpStaticThreadCount);
_InterlockedIncrement((PLONG)&CsrpStaticThreadCount);
/* If the response was 0xFFFFFFFF, we'll ignore it */
if (HardErrorMsg->Response == 0xFFFFFFFF)
@ -523,7 +523,7 @@ CsrApiRequestThread(IN PVOID Parameter)
(ServerDll->DispatchTable[ApiId])(&ReceiveMsg, &Reply);
/* Increase the static thread count */
InterlockedIncrement(&CsrpStaticThreadCount);
_InterlockedIncrement((PLONG)&CsrpStaticThreadCount);
}
_SEH_EXCEPT(CsrUnhandledExceptionFilter)
{
@ -590,7 +590,7 @@ CsrApiRequestThread(IN PVOID Parameter)
/* Return a Debug Message */
DebugMessage = (PDBGKM_MSG)&ReceiveMsg;
DebugMessage->Status = DBG_CONTINUE;
DebugMessage->ReturnedStatus = DBG_CONTINUE;
ReplyMsg = &ReceiveMsg;
/* Remove our extra reference */
@ -627,7 +627,7 @@ CsrApiRequestThread(IN PVOID Parameter)
}
/* Increase the thread count */
InterlockedIncrement(&CsrpStaticThreadCount);
_InterlockedIncrement((PLONG)&CsrpStaticThreadCount);
/* If the response was 0xFFFFFFFF, we'll ignore it */
if (HardErrorMsg->Response == 0xFFFFFFFF)

View file

@ -4,10 +4,10 @@
<importlibrary definition="csrsrv.def" />
<include base="csrsrv">.</include>
<include base="csr">.</include>
<include base="ReactOS">include/reactos/subsys</include>
<define name="_DISABLE_TIDENTS" />
<library>ntdll</library>
<library>pseh</library>
<library>intrlck</library>
<file>api.c</file>
<file>init.c</file>
<file>process.c</file>

View file

@ -4,6 +4,7 @@
/* PSDK/NDK Headers */
#define NTOS_MODE_USER
#include <stdio.h>
#define WIN32_NO_STATUS
#include <windows.h>
#include <winnt.h>
#include <ndk/ntndk.h>

View file

@ -106,6 +106,6 @@
* - The skeleton code for winsrv and basesrv which connects with CSR/CSRSRV
* needs to be written. [NOT DONE]
*
* - The kernel's LPC implementation needs to be made compatible. [NOT DONE]
* - The kernel's LPC implementation needs to be made compatible. [DONE!]
*/

View file

@ -28,6 +28,7 @@
/* INCLUDES ******************************************************************/
#define WIN32_NO_STATUS
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>