1{%MainUnit ndk.pas}
2{
3    Native Development Kit for Native NT
4
5    This file is part of the Free Pascal run time library.
6    This unit contains types defined for RTL functions.
7    Copyright (c) 2010 by Sven Barth
8
9    See the file COPYING.FPC, included in this distribution,
10    for details about the copyright.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
16 **********************************************************************}
17
18type
19  //
20  // Time Structure for RTL Time calls
21  //
22  _TIME_FIELDS = packed record
23    Year: CSHORT;
24    Month: CSHORT;
25    Day: CSHORT;
26    Hour: CSHORT;
27    Minute: CSHORT;
28    Second: CSHORT;
29    Milliseconds: CSHORT;
30    Weekday: CSHORT;
31  end;
32  TIME_FIELDS = _TIME_FIELDS;
33  PTIME_FIELDS = ^TIME_FIELDS;
34
35  //
36  // Current Directory Structures
37  //
38  _CURDIR = packed record
39    DosPath: UNICODE_STRING;
40    Handle: HANDLE;
41  end;
42  CURDIR = _CURDIR;
43  PCURDIR = ^CURDIR;
44
45  _RTL_DRIVE_LETTER_CURDIR = packed record
46    Flags: USHORT;
47    Length: USHORT;
48    TimeStamp: ULONG;
49    DosPath: UNICODE_STRING;
50  end;
51  RTL_DRIVE_LETTER_CURDIR = _RTL_DRIVE_LETTER_CURDIR;
52  PRTL_DRIVE_LETTER_CURDIR = ^RTL_DRIVE_LETTER_CURDIR;
53
54  //
55  // Structures for RtlCreateUserProcess
56  //
57  _RTL_USER_PROCESS_PARAMETERS = packed record
58    MaximumLength: ULONG;
59    Length: ULONG;
60    Flags: ULONG;
61    DebugFlags: ULONG;
62    ConsoleHandle: HANDLE;
63    ConsoleFlags: ULONG;
64    StandardInput: HANDLE;
65    StandardOutput: HANDLE;
66    StandardError: HANDLE;
67    CurrentDirectory: CURDIR;
68    DllPath: UNICODE_STRING;
69    ImagePathName: UNICODE_STRING;
70    CommandLine: UNICODE_STRING;
71    Environment: PWSTR;
72    StartingX: ULONG;
73    StartingY: ULONG;
74    CountX: ULONG;
75    CountY: ULONG;
76    CountCharsX: ULONG;
77    CountCharsY: ULONG;
78    FillAttribute: ULONG;
79    WindowFlags: ULONG;
80    ShowWindowFlags: ULONG;
81    WindowTitle: UNICODE_STRING;
82    DesktopInfo: UNICODE_STRING;
83    ShellInfo: UNICODE_STRING;
84    RuntimeData: UNICODE_STRING;
85    CurrentDirectories: array[0..31] of RTL_DRIVE_LETTER_CURDIR;
86  end;
87  RTL_USER_PROCESS_PARAMETERS = _RTL_USER_PROCESS_PARAMETERS;
88  PRTL_USER_PROCESS_PARAMETERS = ^RTL_USER_PROCESS_PARAMETERS;
89
90