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.

73 lines
2.4 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. // wnd.h - interface for window functions in wnd.c
  24. ////
  25. #ifndef __WND_H__
  26. #define __WND_H__
  27. #include "winlocal.h"
  28. #define WND_VERSION 0x00000100
  29. ////
  30. // window functions
  31. ////
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. // WndCenterWindow - center one window on top of another
  36. // <hwnd1> (i) window to be centered
  37. // <hwnd2> (i) window to be centered upon
  38. // NULL center on parent or owner
  39. // <xOffCenter> (i) offset from horizontal center
  40. // 0 center window exactly
  41. // <yOffCenter> (i) offset from vertical center
  42. // 0 center window exactly
  43. // return 0 if success
  44. //
  45. int DLLEXPORT WINAPI WndCenterWindow(HWND hwnd1, HWND hwnd2, int xOffCenter, int yOffCenter);
  46. // WndMessageBox - display message box, but first disable task windows
  47. // see MessageBox() documentation for behavior
  48. //
  49. int DLLEXPORT WINAPI WndMessageBox(HWND hwndParent, LPCTSTR lpszText, LPCTSTR lpszTitle, UINT fuStyle);
  50. // WndEnableTaskWindows - enable or disable top-level windows of a task
  51. // <hTask> (i) specified task
  52. // NULL current task
  53. // <fEnable> (i) FALSE to disable, TRUE to enable
  54. // <hwndExcept> (i) disable/enable all windows except this one
  55. // NULL no exceptions
  56. // return 0 if success
  57. //
  58. int DLLEXPORT WINAPI WndEnableTaskWindows(HTASK hTask, BOOL fEnable, HWND hwndExcept);
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif // __WND_H__