Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / modules / rostests / apitests / ntdll / NtCreateFile.c
1 /*
2 * PROJECT: ReactOS api tests
3 * LICENSE: See COPYING in the top level directory
4 * PURPOSE: Test for NtCreateFile
5 * PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
6 */
7
8 #define WIN32_NO_STATUS
9 #include <wine/test.h>
10 //#include <ndk/iotypes.h>
11 #include <ndk/iofuncs.h>
12 //#include <ndk/obtypes.h>
13 //#include <ndk/obfuncs.h>
14
15 START_TEST(NtCreateFile)
16 {
17 NTSTATUS Status;
18 HANDLE FileHandle;
19 IO_STATUS_BLOCK StatusBlock;
20
21 Status = NtCreateFile(&FileHandle,
22 FILE_READ_DATA,
23 (POBJECT_ATTRIBUTES)0xCCCCCCCC,
24 &StatusBlock,
25 NULL,
26 FILE_ATTRIBUTE_NORMAL,
27 FILE_SHARE_READ,
28 FILE_OPEN_IF,
29 FILE_NON_DIRECTORY_FILE,
30 NULL,
31 0);
32
33 ok_hex(Status, STATUS_ACCESS_VIOLATION);
34 }