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.

71 lines
1.5 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cm_misc.h
  4. //
  5. // Module: CMPBK32.DLL
  6. //
  7. // Synopsis: Miscellaneous function definitions.
  8. //
  9. // Copyright (c) 1998 Microsoft Corporation
  10. //
  11. // Author: quintinb created header 08/17/99
  12. //
  13. //+----------------------------------------------------------------------------
  14. #ifndef _CM_MISC_INC
  15. #define _CM_MISC_INC
  16. //+----------------------------------------------------------------------------
  17. // defines
  18. //+----------------------------------------------------------------------------
  19. //
  20. // the register stuff is from libc(cruntime.h)
  21. //
  22. #ifdef _M_IX86
  23. /*
  24. * x86
  25. */
  26. #define REG1 register
  27. #define REG2 register
  28. #define REG3 register
  29. #define REG4
  30. #else
  31. /*
  32. * ALPHA
  33. */
  34. #define REG1 register
  35. #define REG2 register
  36. #define REG3 register
  37. #define REG4 register
  38. #endif
  39. int MyStrCmp(LPCTSTR psz1, LPCTSTR psz2);
  40. //int MyStrICmpWithRes(HINSTANCE hInst, LPCTSTR psz1, UINT n2);
  41. LPTSTR GetBaseDirFromCms(LPCSTR pszSrc);
  42. void * __cdecl CmBSearch (
  43. REG4 const void *key,
  44. const void *base,
  45. size_t num,
  46. size_t width,
  47. int (__cdecl *compare)(const void *, const void *)
  48. );
  49. void __cdecl CmQSort (
  50. void *base,
  51. unsigned num,
  52. unsigned width,
  53. int (__cdecl *comp)(const void *, const void *)
  54. );
  55. //+----------------------------------------------------------------------------
  56. // externs
  57. //+----------------------------------------------------------------------------
  58. extern HINSTANCE g_hInst;
  59. #endif