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.

63 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1994-1998, Microsoft Corporation All rights reserved.
  3. Module Name:
  4. applet.h
  5. Abstract:
  6. This module contains the main header information for this project.
  7. Revision History:
  8. --*/
  9. #ifndef _APPLETS_H
  10. #define _APPLETS_H
  11. //
  12. // The prototype for an applet function is:
  13. // int Applet(HINSTANCE instance, HWND parent, LPCTSTR cmdline);
  14. //
  15. // instance - The instance handle of the control panel containing the applet.
  16. //
  17. // parent - Contains the handle of a parent window for the applet (if any).
  18. //
  19. // cmdline - Points to the command line for the applet (if available).
  20. // If the applet was launched without a command line,
  21. // 'cmdline' contains NULL.
  22. //
  23. typedef int (*PFNAPPLET)(HINSTANCE, HWND, LPCTSTR);
  24. //
  25. // The return value specifies any further action that must be taken:
  26. // APPLET_RESTART -- Windows must be restarted
  27. // APPLET_REBOOT -- the machine must be rebooted
  28. // all other values are ignored
  29. //
  30. #define APPLET_RESTART 0x8
  31. #define APPLET_REBOOT (APPLET_RESTART | 0x4)
  32. //
  33. // The prototype for an applet query functions is:
  34. // LRESULT AppletQuery(UINT Message);
  35. //
  36. typedef LRESULT (*PFNAPPLETQUERY)(HWND, UINT);
  37. #define APPLET_QUERY_EXISTS 0 // BOOL result
  38. #define APPLET_QUERY_GETICON 1 // HICON result
  39. #endif