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.

72 lines
1.6 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. lui.h
  5. Abstract:
  6. This file maps the LM 2.x include file name to the appropriate NT include
  7. file name, and does any other mapping required by this include file.
  8. Author:
  9. Dan Hinsley (danhi) 8-Jun-1991
  10. Environment:
  11. User Mode - Win32
  12. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  13. Requires ANSI C extensions: slash-slash comments.
  14. --*/
  15. #include <stdio.h>
  16. #include <luiint.h>
  17. #include <time.h>
  18. #define LUI_FORMAT_DURATION_LEN 32
  19. #define LUI_FORMAT_TIME_LEN 32
  20. /*
  21. * General word parsing functions and values
  22. */
  23. #define LUI_UNDEFINED_VAL 0
  24. #define LUI_YES_VAL 1
  25. #define LUI_NO_VAL 2
  26. #define MSG_BUFF_SIZE 512
  27. USHORT LUI_CanonPassword(TCHAR * szPassword);
  28. DWORD LUI_GetMsg (LPTSTR msgbuf, USHORT bufsize, ULONG msgno);
  29. USHORT LUI_PrintLine(VOID);
  30. DWORD LUI_YorN(USHORT promptMsgNum, USHORT def);
  31. USHORT LUI_FormatDuration(LONG *, TCHAR *buffer, USHORT bufferlen);
  32. DWORD
  33. GetString(
  34. LPTSTR buf,
  35. DWORD buflen,
  36. PDWORD len,
  37. LPTSTR terminator
  38. );
  39. USHORT LUI_CanonMessagename(PTCHAR buf);
  40. USHORT LUI_CanonMessageDest(PTCHAR buf);
  41. DWORD LUI_YorNIns(LPTSTR *istrings, USHORT nstrings,
  42. USHORT promptMsgNum, USHORT def);
  43. DWORD LUI_ParseYesNo(LPTSTR inbuf, PDWORD answer);
  44. DWORD ParseWeekDay(PTCHAR inbuf, PDWORD answer);
  45. DWORD FormatTimeofDay(time_t *, LPTSTR buf, DWORD buflen);