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.

119 lines
4.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526, 5,488,650,
  15. // 5,434,906, 5,581,604, 5,533,102, 5,568,540, 5,625,676, 5,651,054.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. ////
  23. // splash.h - interface for splash screen functions in splash.c
  24. ////
  25. #ifndef __SPLASH_H__
  26. #define __SPLASH_H__
  27. #include "winlocal.h"
  28. #define SPLASH_VERSION 0x00000106
  29. // handle to splash screen
  30. //
  31. DECLARE_HANDLE32(HSPLASH);
  32. #define SPLASH_SETFOCUS 0x00000001
  33. #define SPLASH_NOFOCUS 0x00000002
  34. #define SPLASH_ABORT 0x00000004
  35. #define SPLASH_NOMOVE 0x00000008
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. // SplashCreate - create splash screen
  40. // <dwVersion> (i) must be SPLASH_VERSION
  41. // <hInst> (i) instance handle of calling module
  42. // <hwndParent> (i) window which will own the splash screen
  43. // NULL desktop window
  44. // <hBitmapMono> (i) bitmap to display on mono displays
  45. // <hBitmapColor> (i) bitmap to display on color displays
  46. // 0 use mono bitmap
  47. // <msMinShow> (i) minimum time (ms) to show splash screen
  48. // 0 no minimum time
  49. // <msMaxShow> (i) maximum time (ms) to show splash screen
  50. // 0 no maximum time
  51. // <dwFlags> (i) control flags
  52. // SPLASH_SETFOCUS SplashShow will set focus to splash screen
  53. // SPLASH_NOFOCUS user cannot set focus to splash screen
  54. // SPLASH_ABORT user can hide splash screen w/mouse or keybd
  55. // SPLASH_NOMOVE user cannot move the splash screen w/mouse
  56. // return handle (NULL if error)
  57. //
  58. // NOTE: SplashCreate creates the window but does not show it.
  59. // See SplashShow and SplashHide
  60. //
  61. HSPLASH DLLEXPORT WINAPI SplashCreate(DWORD dwVersion, HINSTANCE hInst,
  62. HWND hwndParent, HBITMAP hBitmapMono, HBITMAP hBitmapColor,
  63. UINT msMinShow, UINT msMaxShow, DWORD dwFlags);
  64. // SplashDestroy - destroy splash screen
  65. // <hSplash> (i) handle returned from SplashCreate
  66. // return 0 if success
  67. //
  68. // NOTE: SplashDestroy always destroys the splash screen,
  69. // whether or not the minimum show time has elapsed.
  70. //
  71. int DLLEXPORT WINAPI SplashDestroy(HSPLASH hSplash);
  72. // SplashShow - show splash screen
  73. // <hSplash> (i) handle returned from SplashCreate
  74. // return 0 if success
  75. //
  76. // NOTE: SplashShow() makes the splash screen visible. Also, timers are
  77. // initiated for minimum and maximum show times, if they were specified.
  78. //
  79. int DLLEXPORT WINAPI SplashShow(HSPLASH hSplash);
  80. // SplashHide - hide splash screen
  81. // <hSplash> (i) handle returned from SplashCreate
  82. // return 0 if success
  83. //
  84. // NOTE: SplashHide() will hide the splash screen, unless
  85. // 1) the minimum show time has not yet elapsed. If not,
  86. // the splash screen will remain visible until then.
  87. // 2) the maximum show time has already elapsed. If so,
  88. // the splash screen has already been hidden.
  89. //
  90. int DLLEXPORT WINAPI SplashHide(HSPLASH hSplash);
  91. // SplashIsVisible - get visible flag
  92. // <hSplash> (i) handle returned from SplashCreate
  93. // return TRUE if splash screen is visible, FALSE if hidden
  94. //
  95. int DLLEXPORT WINAPI SplashIsVisible(HSPLASH hSplash);
  96. // SplashGetWindowHandle - get splash screen window handle
  97. // <hSplash> (i) handle returned from SplashCreate
  98. // return window handle (NULL if error)
  99. //
  100. HWND DLLEXPORT WINAPI SplashGetWindowHandle(HSPLASH hSplash);
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104. #endif // __SPLASH_H__