d7e8414b0dde670097f267121320daa3c813ac6d
[reactos.git] / reactos / subsystems / win32 / csrss / win32csr / file.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: subsys/csrss/win32csr/file.c
5 * PURPOSE: File handling
6 * PROGRAMMERS: Pierre Schweitzer (pierre.schweitzer@reactos.org)
7 * NOTE: Belongs to basesrv.dll
8 */
9
10 /* INCLUDES ******************************************************************/
11
12 #include <w32csr.h>
13
14 #define NDEBUG
15 #include <debug.h>
16
17 /* GLOBALS *******************************************************************/
18
19 UINT CsrGetTempFileUnique;
20
21 /* FUNCTIONS *****************************************************************/
22
23 CSR_API(CsrGetTempFile)
24 {
25 DPRINT("CsrGetTempFile entered\n");
26
27 /* Return 16-bits ID */
28 Request->Data.GetTempFile.UniqueID = (++CsrGetTempFileUnique & 0xFFFF);
29
30 DPRINT("Returning: %u\n", Request->Data.GetTempFile.UniqueID);
31
32 return STATUS_SUCCESS;
33 }