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.

80 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. parse.c
  5. Abstract:
  6. This module contains UI code for the OS chooser
  7. Author:
  8. Geoff Pease (GPease) May 29 1998
  9. Revision History:
  10. --*/
  11. #ifndef __PARSE_H__
  12. #define __PARSE_H__
  13. enum ACTIONS {
  14. ACTION_NOP = 0,
  15. ACTION_REBOOT,
  16. ACTION_JUMP,
  17. ACTION_LOGIN
  18. #if defined(_BUILDING_OSDISP_)
  19. ,ACTION_REFRESH
  20. #endif
  21. };
  22. extern enum ACTIONS SpecialAction;
  23. extern CHAR DomainName[256];
  24. extern CHAR UserName[256];
  25. extern CHAR Password[128];
  26. extern CHAR AdministratorPassword[OSC_ADMIN_PASSWORD_LEN+1];
  27. extern CHAR AdministratorPasswordConfirm[OSC_ADMIN_PASSWORD_LEN+1];
  28. #ifndef _FILETIME_
  29. #define _FILETIME_
  30. typedef struct _FILETIME {
  31. ULONG dwLowDateTime;
  32. ULONG dwHighDateTime;
  33. } FILETIME, *PFILETIME;
  34. #endif // _FILETIME_
  35. extern FILETIME GlobalFileTime;
  36. extern TIME_FIELDS ArcTimeForUTCTime;
  37. extern ULONG AuthenticationType;
  38. #define OSCHOICE_AUTHENETICATE_TYPE_NTLM_V1 0x00000001
  39. #define OSCHOICE_AUTHENETICATE_TYPE_NTLM_V2 0x00000002
  40. NTSTATUS
  41. SetFileTimeFromTimeString(
  42. IN PSTR TimeString,
  43. OUT PFILETIME FileTime,
  44. OUT TIME_FIELDS *ArcTime
  45. );
  46. CHAR
  47. BlProcessScreen(
  48. IN PCHAR InputString,
  49. OUT PCHAR OutputString
  50. );
  51. #define ASCI_CSI_OUT TEXT("\033[") // escape-leftbracket
  52. #define ATT_FG_BLUE 4
  53. #define ATT_FG_WHITE 7
  54. #define ATT_BG_BLUE (ATT_FG_BLUE << 4)
  55. #define ATT_BG_WHITE (ATT_FG_WHITE << 4)
  56. #define DEFATT (ATT_FG_WHITE | ATT_BG_BLUE)
  57. #define INVATT (ATT_FG_BLUE | ATT_BG_WHITE)
  58. #endif // __PARSE_H__