Leaked source code of windows server 2003
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.

64 lines
2.2 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. #ifndef _FILETIME_
  22. #define _FILETIME_
  23. typedef struct _FILETIME {
  24. DWORD dwLowDateTime;
  25. DWORD dwHighDateTime;
  26. } FILETIME, *PFILETIME, *LPFILETIME;
  27. #endif
  28. //
  29. // System time is represented with the following structure:
  30. //
  31. typedef struct _SYSTEMTIME {
  32. WORD wYear;
  33. WORD wMonth;
  34. WORD wDayOfWeek;
  35. WORD wDay;
  36. WORD wHour;
  37. WORD wMinute;
  38. WORD wSecond;
  39. WORD wMilliseconds;
  40. } SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
  41. #define INFINITE 0xFFFFFFFF // Infinite timeout
  42. #define MAXINTATOM 0xC000
  43. #define MAKEINTATOM(i) (LPTSTR)((ULONG_PTR)((WORD)(i)))
  44. #define INVALID_ATOM ((ATOM)0)
  45. #define STARTF_USESHOWWINDOW 0x00000001
  46. #define STARTF_USESIZE 0x00000002
  47. #define STARTF_USEPOSITION 0x00000004
  48. #define STARTF_USECOUNTCHARS 0x00000008
  49. #define STARTF_USEFILLATTRIBUTE 0x00000010
  50. #define STARTF_RUNFULLSCREEN 0x00000020 // ignored for non-x86 platforms
  51. #define STARTF_FORCEONFEEDBACK 0x00000040
  52. #define STARTF_FORCEOFFFEEDBACK 0x00000080
  53. #define STARTF_USESTDHANDLES 0x00000100
  54. #define STARTF_USEHOTKEY 0x00000200
  55. #define STARTF_HASSHELLDATA 0x00000400
  56. #endif // _WBASEK_