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.

53 lines
762 B

  1. /*++
  2. Copyright (c) 1992-2000 Microsoft Corporation
  3. Module Name:
  4. format.h
  5. Abstract:
  6. Formatting functions.
  7. Environment:
  8. Win32, User Mode
  9. --*/
  10. typedef UINT FMTTYPE;
  11. #define fmtAscii 0
  12. #define fmtInt 1
  13. #define fmtUInt 2
  14. #define fmtFloat 3
  15. #define fmtAddress 4
  16. #define fmtUnicode 5
  17. #define fmtBit 6
  18. #define fmtBasis 0x0f
  19. // override logic to force radix
  20. #define fmtSpacePad 0x1000
  21. #define fmtOverRide 0x2000
  22. #define fmtZeroPad 0x4000
  23. #define fmtNat 0x8000
  24. int
  25. CPCopyString(
  26. PTSTR *lplps,
  27. PTSTR lpT,
  28. TCHAR chEscape,
  29. BOOL fQuote
  30. );
  31. BOOL
  32. CPFormatMemory(
  33. LPCH lpchTarget,
  34. DWORD cchTarget,
  35. LPBYTE lpbSource,
  36. DWORD cBits,
  37. FMTTYPE fmtType,
  38. DWORD radix
  39. );