SC.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. namespace Microsoft.Win32
  2. {
  3. //SC定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// Sizes the window.
  8. /// </summary>
  9. public const int SC_SIZE = 0xF000;
  10. /// <summary>
  11. /// Moves the window.
  12. /// </summary>
  13. public const int SC_MOVE = 0xF010;
  14. /// <summary>
  15. /// Minimizes the window.
  16. /// </summary>
  17. public const int SC_MINIMIZE = 0xF020;
  18. /// <summary>
  19. /// Maximizes the window.
  20. /// </summary>
  21. public const int SC_MAXIMIZE = 0xF030;
  22. /// <summary>
  23. /// Moves to the next window.
  24. /// </summary>
  25. public const int SC_NEXTWINDOW = 0xF040;
  26. /// <summary>
  27. /// Moves to the previous window.
  28. /// </summary>
  29. public const int SC_PREVWINDOW = 0xF050;
  30. /// <summary>
  31. /// Closes the window.
  32. /// </summary>
  33. public const int SC_CLOSE = 0xF060;
  34. /// <summary>
  35. /// Scrolls vertically.
  36. /// </summary>
  37. public const int SC_VSCROLL = 0xF070;
  38. /// <summary>
  39. /// Scrolls horizontally.
  40. /// </summary>
  41. public const int SC_HSCROLL = 0xF080;
  42. /// <summary>
  43. /// Retrieves the window menu as a result of a mouse click.
  44. /// </summary>
  45. public const int SC_MOUSEMENU = 0xF090;
  46. /// <summary>
  47. /// Retrieves the window menu as a result of a keystroke.For more information, see the Remarks section.
  48. /// </summary>
  49. public const int SC_KEYMENU = 0xF100;
  50. /// <summary>
  51. /// TODO
  52. /// </summary>
  53. public const int SC_ARRANGE = 0xF110;
  54. /// <summary>
  55. /// Restores the window to its normal position and size.
  56. /// </summary>
  57. public const int SC_RESTORE = 0xF120;
  58. /// <summary>
  59. /// Activates the Start menu.
  60. /// </summary>
  61. public const int SC_TASKLIST = 0xF130;
  62. /// <summary>
  63. /// Executes the screen saver application specified in the [boot] section of the System.ini file.
  64. /// </summary>
  65. public const int SC_SCREENSAVE = 0xF140;
  66. /// <summary>
  67. /// Activates the window associated with the application-specified hot key.The lParam parameter identifies the window to activate.
  68. /// </summary>
  69. public const int SC_HOTKEY = 0xF150;
  70. //#if(WINVER >= 0x0400) //Win95
  71. /// <summary>
  72. /// Selects the default item; the user double-clicked the window menu.
  73. /// </summary>
  74. public const int SC_DEFAULT = 0xF160;
  75. /// <summary>
  76. /// Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer.
  77. /// The lParam parameter can have the following values: -1 = the display is powering on,1 = the display is going to low power, 2 = the display is being shut off
  78. /// </summary>
  79. public const int SC_MONITORPOWER = 0xF170;
  80. /// <summary>
  81. /// Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.
  82. /// </summary>
  83. public const int SC_CONTEXTHELP = 0xF180;
  84. /// <summary>
  85. /// TODO
  86. /// </summary>
  87. public const int SC_SEPARATOR = 0xF00F;
  88. //#endif /* WINVER >= 0x0400 */
  89. //#if(WINVER >= 0x0600) //Vista
  90. /// <summary>
  91. /// Indicates whether the screen saver is secure.
  92. /// </summary>
  93. public const int SCF_ISSECURE = 0x00000001;
  94. //#endif /* WINVER >= 0x0600 */
  95. /// <summary>
  96. /// Obsolete names
  97. /// </summary>
  98. public const int SC_ICON = SC_MINIMIZE;
  99. /// <summary>
  100. /// Obsolete names
  101. /// </summary>
  102. public const int SC_ZOOM = SC_MAXIMIZE;
  103. }
  104. }