Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.1 KiB

  1. /************************************************************************
  2. * *
  3. * wbasek.h -- This header is included by ntuser\kernel\userk.h *
  4. * *
  5. * Copyright (c) Microsoft Corp. All rights reserved. *
  6. * *
  7. ************************************************************************/
  8. #ifndef _WBASEK_
  9. #define _WBASEK_
  10. #define WINBASEAPI DECLSPEC_IMPORT
  11. #define WAIT_FAILED ((DWORD)0xFFFFFFFF)
  12. #define WAIT_OBJECT_0 ((STATUS_WAIT_0 ) + 0 )
  13. #define WAIT_ABANDONED ((STATUS_ABANDONED_WAIT_0 ) + 0 )
  14. #define WAIT_ABANDONED_0 ((STATUS_ABANDONED_WAIT_0 ) + 0 )
  15. #define WAIT_IO_COMPLETION STATUS_USER_APC
  16. typedef struct _SECURITY_ATTRIBUTES {
  17. DWORD nLength;
  18. LPVOID lpSecurityDescriptor;
  19. BOOL bInheritHandle;
  20. } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
  21. typedef struct _FILETIME {
  22. DWORD dwLowDateTime;
  23. DWORD dwHighDateTime;
  24. } FILETIME, *PFILETIME, *LPFILETIME;
  25. //
  26. // System time is represented with the following structure:
  27. //
  28. typedef struct _SYSTEMTIME {
  29. WORD wYear;
  30. WORD wMonth;
  31. WORD wDayOfWeek;
  32. WORD wDay;
  33. WORD wHour;
  34. WORD wMinute;
  35. WORD wSecond;
  36. WORD wMilliseconds;
  37. } SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
  38. #define INFINITE 0xFFFFFFFF // Infinite timeout
  39. #define MAXINTATOM 0xC000
  40. #define MAKEINTATOM(i) (LPTSTR)((ULONG_PTR)((WORD)(i)))
  41. #define INVALID_ATOM ((ATOM)0)
  42. #define STARTF_USESHOWWINDOW 0x00000001
  43. #define STARTF_USESIZE 0x00000002
  44. #define STARTF_USEPOSITION 0x00000004
  45. #define STARTF_USECOUNTCHARS 0x00000008
  46. #define STARTF_USEFILLATTRIBUTE 0x00000010
  47. #define STARTF_RUNFULLSCREEN 0x00000020 // ignored for non-x86 platforms
  48. #define STARTF_FORCEONFEEDBACK 0x00000040
  49. #define STARTF_FORCEOFFFEEDBACK 0x00000080
  50. #define STARTF_USESTDHANDLES 0x00000100
  51. #define STARTF_USEHOTKEY 0x00000200
  52. #define STARTF_HASSHELLDATA 0x00000400
  53. #endif // _WBASEK_