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.

65 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: uisift.h
  7. //
  8. // Contents: function declarations and macros for using sift code from C
  9. //
  10. // History: 7-05-94 t-chripi Created
  11. // 3-08-95 ericn changed linkeage of C functions
  12. //
  13. //----------------------------------------------------------------------------
  14. #ifndef __UISIFT_H__
  15. #define __UISIFT_H__
  16. //Sift success/error values
  17. #define SIFT_NO_ERROR 0
  18. #define SIFT_ERROR_BASE 10000
  19. #define SIFT_ERROR_OUT_OF_MEMORY (SIFT_ERROR_BASE+3)
  20. #define SIFT_ERROR_INVALID_VALUE (SIFT_ERROR_BASE+4)
  21. #if defined(NOSIFT) || defined(WIN16) || defined(WIN32S) || (WIN32 == 200)
  22. // NULL out macros if Win16/Win32s/Chicago or NOSIFT is defined
  23. #define UI_SIFT_INIT(name)
  24. #define UI_SIFT_ON
  25. #define UI_SIFT_OFF
  26. #define UI_SIFT_DECLARE
  27. #define UI_SIFT_DESTROY
  28. #else // Win32 only
  29. EXTERN_C VOID UiSiftDeclare(VOID** g_pptsoTestSift);
  30. EXTERN_C VOID UiSiftInit(VOID** g_pptsoTestSift, LPCSTR lpProgName);
  31. EXTERN_C VOID UiSiftOn(VOID** g_pptsoTestSift);
  32. EXTERN_C VOID UiSiftOff(VOID** g_pptsoTestSift);
  33. EXTERN_C VOID UiSiftDestroy(VOID** g_pptsoTestSift);
  34. #define UI_SIFT_INIT(name) \
  35. UiSiftDeclare(&g_ptsoTestSift); \
  36. UiSiftInit(&g_ptsoTestSift, (name))
  37. #define UI_SIFT_ON \
  38. UiSiftOn(&g_ptsoTestSift)
  39. #define UI_SIFT_OFF \
  40. UiSiftOff(&g_ptsoTestSift)
  41. #define UI_SIFT_DECLARE \
  42. VOID* g_ptsoTestSift
  43. #define UI_SIFT_DESTROY \
  44. UiSiftDestroy(&g_ptsoTestSift)
  45. #define SVR_SIFT_INIT(name) \
  46. SvrSiftInit((name))
  47. #endif // Win32
  48. #endif // __UISIFT_H__
  49.