rtltypes.inc 2.3 KB

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