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.

56 lines
1.4 KiB

  1. //
  2. // Type Definition(s):
  3. //
  4. typedef struct _STATUSNODE
  5. {
  6. TCHAR szStatusText[MAX_PATH];
  7. HWND hLabelWin;
  8. HWND hIconWin;
  9. struct _STATUSNODE*lpNext;
  10. } STATUSNODE, *LPSTATUSNODE, **LPLPSTATUSNODE;
  11. typedef struct _STATUSWINDOW
  12. {
  13. TCHAR szWindowText[MAX_PATH];
  14. LPTSTR lpszDescription;
  15. int X;
  16. int Y;
  17. HICON hMainIcon;
  18. BOOL bShowIcons;
  19. } STATUSWINDOW, *LPSTATUSWINDOW, **LPLPSTATUSWINDOW;
  20. //
  21. // Function Prototype(s):
  22. //
  23. // Main function that creates Status dialog
  24. //
  25. HWND StatusCreateDialog(
  26. LPSTATUSWINDOW lpswStatus, // structure that contains information about the window
  27. LPSTATUSNODE lpsnStatus // head node for status text
  28. );
  29. // Increments the Status dialog, if the status is incremented past the last item, the dialog will end
  30. //
  31. BOOL StatusIncrement(
  32. HWND hStatusDialog, // handle to status dialog
  33. BOOL bLastResult
  34. );
  35. // Manually ends the dialog
  36. //
  37. BOOL StatusEndDialog(
  38. HWND hStatusDialog // handle to status dialog
  39. );
  40. // Adds a text string to the end of a list
  41. //
  42. BOOL StatusAddNode(
  43. LPTSTR lpszNodeText, // Text that you would like to add to the current list
  44. LPLPSTATUSNODE lpsnHead // List that we will be adding status node to
  45. );
  46. // Deletes all the Nodes in a given list
  47. //
  48. VOID StatusDeleteNodes(
  49. LPSTATUSNODE lpsnHead
  50. );