[KERNEL32]

Use the new messaging structures...

svn path=/branches/ros-csrss/; revision=57668
This commit is contained in:
Hermès Bélusca-Maïto 2012-11-02 18:30:27 +00:00
parent 1f05ce5f28
commit a8f1d34118
2 changed files with 15 additions and 14 deletions

View file

@ -18,21 +18,22 @@ VOID
WINAPI
NotifySoundSentry(VOID)
{
CSR_API_MESSAGE ApiMessage;
BASE_API_MESSAGE ApiMessage;
PBASE_SOUND_SENTRY SoundSentryRequest = &ApiMessage.Data.SoundSentryRequest;
/* Get the video mode */
if (!GetConsoleDisplayMode(&ApiMessage.Data.SoundSentryRequest.VideoMode))
if (!GetConsoleDisplayMode(&SoundSentryRequest->VideoMode))
{
ApiMessage.Data.SoundSentryRequest.VideoMode = 0;
SoundSentryRequest->VideoMode = 0;
}
/* Make sure it's not fullscreen, and send the message if not */
if (ApiMessage.Data.SoundSentryRequest.VideoMode == 0)
if (SoundSentryRequest->VideoMode == 0)
{
CsrClientCallServer(&ApiMessage,
CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage,
NULL,
CSR_CREATE_API_NUMBER(BASESRV_SERVERDLL_INDEX, BasepSoundSentryNotification),
sizeof(CSR_API_MESSAGE));
sizeof(BASE_SOUND_SENTRY));
}
}

View file

@ -1,10 +1,9 @@
/* $Id: file.c 54310 2011-11-06 04:13:21Z ion $
*
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/kernel32/file/file.c
* PURPOSE: Directory functions
* PROGRAMMER: Ariadne ( ariadne@xs4all.nl)
* PROGRAMMERS: Ariadne (ariadne@xs4all.nl)
* Pierre Schweitzer (pierre.schweitzer@reactos.org)
* UPDATE HISTORY:
* Created 01/11/98
@ -92,7 +91,8 @@ GetTempFileNameW(IN LPCWSTR lpPathName,
UINT ID, Num = 0;
CHAR IDString[5];
WCHAR * TempFileName;
CSR_API_MESSAGE ApiMessage;
BASE_API_MESSAGE ApiMessage;
PBASE_GET_TEMP_FILE GetTempFile = &ApiMessage.Data.GetTempFile;
DWORD FileAttributes, LastError;
UNICODE_STRING PathNameString, PrefixString;
static const WCHAR Ext[] = { L'.', 't', 'm', 'p', UNICODE_NULL };
@ -158,17 +158,17 @@ GetTempFileNameW(IN LPCWSTR lpPathName,
/* If user didn't gave any ID, ask Csrss to give one */
if (!uUnique)
{
CsrClientCallServer(&ApiMessage,
CsrClientCallServer((PCSR_API_MESSAGE)&ApiMessage,
NULL,
CSR_CREATE_API_NUMBER(BASESRV_SERVERDLL_INDEX, BasepGetTempFile),
sizeof(CSR_API_MESSAGE));
if (ApiMessage.Data.GetTempFile.UniqueID == 0)
sizeof(BASE_GET_TEMP_FILE));
if (GetTempFile->UniqueID == 0)
{
Num++;
continue;
}
ID = ApiMessage.Data.GetTempFile.UniqueID;
ID = GetTempFile->UniqueID;
}
else
{