home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / nsis-2.46-setup.exe / Include / Win / WinUser.nsh < prev   
Encoding:
Text File  |  2009-02-04  |  5.9 KB  |  199 lines

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