WinUser.nsh 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. !ifndef __WIN_WINUSER__INC
  2. !define __WIN_WINUSER__INC
  3. !verbose push
  4. !verbose 3
  5. !ifndef __WIN_MS_NOUSER & __WIN_NOINC_WINUSER
  6. !ifndef __WIN_MS_NOVIRTUALKEYCODES
  7. !define VK_LBUTTON 0x01
  8. !define VK_RBUTTON 0x02
  9. !define VK_CANCEL 0x03
  10. !define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */
  11. !define VK_XBUTTON1 0x05 /* NOT contiguous with L & RBUTTON */
  12. !define VK_XBUTTON2 0x06 /* NOT contiguous with L & RBUTTON */
  13. !define VK_BACK 0x08
  14. !define VK_TAB 0x09
  15. !define VK_CLEAR 0x0C
  16. !define VK_RETURN 0x0D
  17. !define VK_SHIFT 0x10
  18. !define VK_CONTROL 0x11
  19. !define VK_MENU 0x12
  20. !define VK_PAUSE 0x13
  21. !define VK_CAPITAL 0x14
  22. !define VK_ESCAPE 0x1B
  23. !define VK_CONVERT 0x1C
  24. !define VK_NONCONVERT 0x1D
  25. !define VK_ACCEPT 0x1E
  26. !define VK_MODECHANGE 0x1F
  27. !define VK_SPACE 0x20
  28. !define VK_PRIOR 0x21
  29. !define VK_NEXT 0x22
  30. !define VK_END 0x23
  31. !define VK_HOME 0x24
  32. !define VK_LEFT 0x25
  33. !define VK_UP 0x26
  34. !define VK_RIGHT 0x27
  35. !define VK_DOWN 0x28
  36. !define VK_SELECT 0x29
  37. !define VK_PRINT 0x2A
  38. !define VK_EXECUTE 0x2B
  39. !define VK_SNAPSHOT 0x2C
  40. !define VK_INSERT 0x2D
  41. !define VK_DELETE 0x2E
  42. !define VK_HELP 0x2F
  43. ; VK_0 - VK_9 are the same as ASCII '0' - '9' (0x30 - 0x39)
  44. ; VK_A - VK_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A)
  45. !define VK_LWIN 0x5B
  46. !define VK_RWIN 0x5C
  47. !define VK_APPS 0x5D
  48. !define VK_SLEEP 0x5F
  49. !define VK_NUMPAD0 0x60
  50. !define VK_NUMPAD1 0x61
  51. !define VK_NUMPAD2 0x62
  52. !define VK_NUMPAD3 0x63
  53. !define VK_NUMPAD4 0x64
  54. !define VK_NUMPAD5 0x65
  55. !define VK_NUMPAD6 0x66
  56. !define VK_NUMPAD7 0x67
  57. !define VK_NUMPAD8 0x68
  58. !define VK_NUMPAD9 0x69
  59. !define VK_MULTIPLY 0x6A
  60. !define VK_ADD 0x6B
  61. !define VK_SEPARATOR 0x6C
  62. !define VK_SUBTRACT 0x6D
  63. !define VK_DECIMAL 0x6E
  64. !define VK_DIVIDE 0x6F
  65. !define VK_F1 0x70
  66. !define VK_F2 0x71
  67. !define VK_F3 0x72
  68. !define VK_F4 0x73
  69. !define VK_F5 0x74
  70. !define VK_F6 0x75
  71. !define VK_F7 0x76
  72. !define VK_F8 0x77
  73. !define VK_F9 0x78
  74. !define VK_F10 0x79
  75. !define VK_F11 0x7A
  76. !define VK_F12 0x7B
  77. !define VK_NUMLOCK 0x90
  78. !define VK_SCROLL 0x91
  79. !define VK_OEM_NEC_EQUAL 0x92 ; '=' key on numpad
  80. !define VK_LSHIFT 0xA0
  81. !define VK_RSHIFT 0xA1
  82. !define VK_LCONTROL 0xA2
  83. !define VK_RCONTROL 0xA3
  84. !define VK_LMENU 0xA4
  85. !define VK_RMENU 0xA5
  86. !endif
  87. !ifndef __WIN_MS_NOWINOFFSETS
  88. !define /ifndef GWL_STYLE -16
  89. !define /ifndef GWL_EXSTYLE -20
  90. !define /ifndef GWLP_WNDPROC -4
  91. !define /ifndef GWLP_HINSTANCE -6
  92. !define /ifndef GWLP_HWNDPARENT -8
  93. !define /ifndef GWLP_USERDATA -21
  94. !define /ifndef GWLP_ID -12
  95. !define DWLP_MSGRESULT 0
  96. !define /math DWLP_DLGPROC ${DWLP_MSGRESULT} + ${NSIS_PTR_SIZE} ;DWLP_MSGRESULT + sizeof(LRESULT)
  97. !define /math DWLP_USER ${DWLP_DLGPROC} + ${NSIS_PTR_SIZE} ;DWLP_DLGPROC + sizeof(DLGPROC)
  98. !endif
  99. !ifndef __WIN_MS_NONCMESSAGES
  100. !define HTERROR -2
  101. !define HTTRANSPARENT -1
  102. !define HTNOWHERE 0
  103. !define HTCLIENT 1
  104. !define HTCAPTION 2
  105. !define HTSYSMENU 3
  106. !define HTGROWBOX 4
  107. !define HTSIZE ${HTGROWBOX}
  108. !define HTMENU 5
  109. !define HTHSCROLL 6
  110. !define HTVSCROLL 7
  111. !define HTMINBUTTON 8
  112. !define HTMAXBUTTON 9
  113. !define HTLEFT 10
  114. !define HTRIGHT 11
  115. !define HTTOP 12
  116. !define HTTOPLEFT 13
  117. !define HTTOPRIGHT 14
  118. !define HTBOTTOM 15
  119. !define HTBOTTOMLEFT 16
  120. !define HTBOTTOMRIGHT 17
  121. !define HTBORDER 18
  122. !define HTREDUCE ${HTMINBUTTON}
  123. !define HTZOOM ${HTMAXBUTTON}
  124. !define HTSIZEFIRST ${HTLEFT}
  125. !define HTSIZELAST ${HTBOTTOMRIGHT}
  126. !define HTOBJECT 19
  127. !define HTCLOSE 20
  128. !define HTHELP 21
  129. !endif
  130. !ifndef __WIN_MS_NOSYSCOMMANDS
  131. !define SC_SIZE 0xF000
  132. !define SC_MOVE 0xF010
  133. !define SC_MINIMIZE 0xF020
  134. !define SC_MAXIMIZE 0xF030
  135. !define SC_NEXTWINDOW 0xF040
  136. !define SC_PREVWINDOW 0xF050
  137. !define SC_CLOSE 0xF060
  138. !define SC_VSCROLL 0xF070
  139. !define SC_HSCROLL 0xF080
  140. !define SC_MOUSEMENU 0xF090
  141. !define SC_KEYMENU 0xF100
  142. !define SC_ARRANGE 0xF110
  143. !define SC_RESTORE 0xF120
  144. !define SC_TASKLIST 0xF130
  145. !define SC_SCREENSAVE 0xF140
  146. !define SC_HOTKEY 0xF150
  147. !define SC_DEFAULT 0xF160
  148. !define SC_MONITORPOWER 0xF170
  149. !define SC_CONTEXTHELP 0xF180
  150. !define SC_SEPARATOR 0xF00F
  151. !endif
  152. !define /ifndef IDC_ARROW 32512
  153. !define /ifndef IDC_IBEAM 32513
  154. !define /ifndef IDC_WAIT 32514
  155. !define /ifndef IDC_CROSS 32515
  156. !define /ifndef IDC_UPARROW 32516
  157. !define /ifndef IDC_SIZE 32640
  158. !define /ifndef IDC_ICON 32641
  159. !define /ifndef IDC_SIZENWSE 32642
  160. !define /ifndef IDC_SIZENESW 32643
  161. !define /ifndef IDC_SIZEWE 32644
  162. !define /ifndef IDC_SIZENS 32645
  163. !define /ifndef IDC_SIZEALL 32646
  164. !define /ifndef IDC_NO 32648
  165. !define /ifndef IDC_HAND 32649
  166. !define /ifndef IDC_APPSTARTING 32650
  167. !define /ifndef IDC_HELP 32651
  168. !define /ifndef IMAGE_BITMAP 0
  169. !define /ifndef IMAGE_ICON 1
  170. !define /ifndef IMAGE_CURSOR 2
  171. !define /ifndef IMAGE_ENHMETAFILE 3
  172. !define /ifndef LR_DEFAULTCOLOR 0x0000
  173. !define /ifndef LR_MONOCHROME 0x0001
  174. !define /ifndef LR_COLOR 0x0002
  175. !define /ifndef LR_COPYRETURNORG 0x0004
  176. !define /ifndef LR_COPYDELETEORG 0x0008
  177. !define /ifndef LR_LOADFROMFILE 0x0010
  178. !define /ifndef LR_LOADTRANSPARENT 0x0020
  179. !define /ifndef LR_DEFAULTSIZE 0x0040
  180. !define /ifndef LR_VGACOLOR 0x0080
  181. !define /ifndef LR_LOADMAP3DCOLORS 0x1000
  182. !define /ifndef LR_CREATEDIBSECTION 0x2000
  183. !define /ifndef LR_COPYFROMRESOURCE 0x4000
  184. !define /ifndef LR_SHARED 0x8000
  185. !define GA_PARENT 1
  186. !define GA_ROOT 2
  187. !define GA_ROOTOWNER 3
  188. !endif /* __WIN_MS_NOUSER & __WIN_NOINC_WINUSER */
  189. !verbose pop
  190. !endif /* __WIN_WINUSER__INC */