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.

54 lines
1.5 KiB

  1. /*
  2. * Module Name: WSFSLIB.H
  3. *
  4. * Description:
  5. *
  6. * Working set tuner include file for WSFSLIB library functions.
  7. *
  8. *
  9. * This is an OS/2 2.x specific file
  10. *
  11. * IBM/Microsoft Confidential
  12. *
  13. * Copyright (c) IBM Corporation 1987, 1989
  14. * Copyright (c) Microsoft Corporation 1987-1998
  15. *
  16. * All Rights Reserved
  17. *
  18. * Modification History:
  19. *
  20. * 03/26/90 - created
  21. * 04/16/98 - QFE DerrickG (mdg):
  22. * - Removed WsGetWSDIR(), change return from WsTMIReadRec()
  23. *
  24. */
  25. /*
  26. * Constant definitions.
  27. */
  28. /*
  29. * Function prototypes.
  30. */
  31. typedef enum // Progress indicator for console functions
  32. {
  33. WSINDF_NEW, // Start new indicator: value = 100% limit
  34. WSINDF_PROGRESS, // Set progress of current indicator; value = progress toward limit
  35. WSINDF_FINISH // Mark indicator as finished; value ignored
  36. } WsIndicator_e;
  37. VOID FAR PASCAL WsProgress( WsIndicator_e eFunc, const char *pszLbl, unsigned long nVal );
  38. extern BOOL fWsIndicator;
  39. #define WsIndicator( x, y, z ) if (fWsIndicator) WsProgress( x, y, z )
  40. typedef int (*PFN)(UINT, INT, UINT, ULONG, LPSTR);
  41. USHORT FAR PASCAL WsWSPOpen( PSZ, FILE **, PFN, wsphdr_t *, INT, INT );
  42. ULONG FAR PASCAL WsTMIOpen( PSZ, FILE **, PFN, USHORT, PCHAR );
  43. ULONG FAR PASCAL WsTMIReadRec( PSZ *, PULONG, PULONG, FILE *, PFN, PCHAR ); // mdg 98/4
  44. LPVOID APIENTRY AllocAndLockMem(DWORD cbMem, HGLOBAL *hMem);
  45. BOOL APIENTRY UnlockAndFreeMem(HGLOBAL hMem);
  46. void ConvertAppToOem( unsigned argc, char* argv[] );