Leaked source code of windows server 2003
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.

353 lines
3.7 KiB

  1. #include "resource.h"
  2. #define INVALID_KEY_HANDLE 0
  3. extern HINSTANCE g_hInst;
  4. #define WM_FILE_LOAD (WM_APP + 1)
  5. #define WM_FILE_UPDATE (WM_APP + 2)
  6. #define WM_QUIT_CHECK (WM_APP + 3)
  7. #define WM_SELECT_KEY (WM_APP + 4)
  8. #define MENUINDEX_POPUP_KEY 0
  9. #define MENUINDEX_POPUP_KEY_ADDDATA 0
  10. #define MENUINDEX_MAIN_FILE 0
  11. #define MENUINDEX_MAIN_KEY 1
  12. PSTR
  13. GetPieceOfKey (
  14. PSTR KeyPtr,
  15. PSTR PieceBuf
  16. );
  17. VOID
  18. KeyAddClear (
  19. VOID
  20. );
  21. HTREEITEM
  22. KeyAddItem (
  23. PSTR ItemName,
  24. HTREEITEM Parent,
  25. UINT Index
  26. );
  27. VOID
  28. KeyAddSetFilterPattern (
  29. PSTR Pattern
  30. );
  31. BOOL
  32. KeyAddSubLevels (
  33. HTREEITEM ParentItem
  34. );
  35. HTREEITEM
  36. KeyAddCreateItem (
  37. PSTR Key
  38. );
  39. BOOL
  40. KeyAddCreateChildItem (
  41. HWND hdlg,
  42. HTREEITEM hItem
  43. );
  44. BOOL
  45. IsKeyTree (
  46. HWND hwnd
  47. );
  48. BOOL
  49. KeyTreeInit (
  50. HWND hParent
  51. );
  52. VOID
  53. KeyTreeDestroy (
  54. VOID
  55. );
  56. BOOL
  57. KeyTreeClear (
  58. VOID
  59. );
  60. BOOL
  61. KeyTreeRefresh (
  62. VOID
  63. );
  64. BOOL
  65. KeyTreeSetIndexOfItem (
  66. HTREEITEM hItem,
  67. UINT Index
  68. );
  69. UINT
  70. KeyTreeGetIndexOfItem (
  71. HTREEITEM hItem
  72. );
  73. BOOL
  74. KeyTreeGetNameOfItem (
  75. HTREEITEM hItem,
  76. PSTR Buffer
  77. );
  78. VOID
  79. KeyTreeSelectItem (
  80. HTREEITEM hItem
  81. );
  82. VOID
  83. KeyTreeSelectKey (
  84. UINT Index
  85. );
  86. VOID
  87. KeyTreeSelectRClickItem (
  88. VOID
  89. );
  90. HTREEITEM
  91. KeyTreeSelChanged (
  92. HWND hdlg,
  93. LPNMTREEVIEW pnmtv
  94. );
  95. BOOL
  96. KeyTreeBeginDrag (
  97. HWND hWnd,
  98. LPNMTREEVIEW pnmtv
  99. );
  100. BOOL
  101. KeyTreeMoveDrag (
  102. POINTS pt
  103. );
  104. BOOL
  105. KeyTreeEndDrag (
  106. BOOL TakeAction,
  107. POINTS *pt
  108. );
  109. BOOL
  110. KeyTreeRenameItem (
  111. HTREEITEM hItem,
  112. LPSTR Name
  113. );
  114. BOOL
  115. KeyTreeDeleteKey (
  116. HTREEITEM hItem
  117. );
  118. BOOL
  119. KeyTreeDeleteItem (
  120. HTREEITEM hItem
  121. );
  122. VOID
  123. KeyTreeExpandItem (
  124. HTREEITEM hItem,
  125. BOOL Expand,
  126. BOOL Recurse
  127. );
  128. BOOL
  129. KeyTreeRightClick (
  130. HWND hdlg,
  131. HTREEITEM hItem
  132. );
  133. BOOL
  134. KeyTreeForceEditLabel (
  135. HTREEITEM hItem
  136. );
  137. BOOL
  138. KeyTreeCreateItem (
  139. HWND hdlg
  140. );
  141. BOOL
  142. KeyTreeCreateChildItem (
  143. HWND hdlg,
  144. HTREEITEM hItem
  145. );
  146. HTREEITEM
  147. KeyTreeFindChildItem (
  148. HTREEITEM hItem,
  149. PSTR Str
  150. );
  151. BOOL
  152. KeyTreeFindNext (
  153. VOID
  154. );
  155. BOOL
  156. KeyTreeFind (
  157. HWND hdlg
  158. );
  159. BOOL
  160. KeyTreeCreateEmptyKey (
  161. HTREEITEM hItem
  162. );
  163. BOOL
  164. KeyTreeAddShortData (
  165. HWND hwnd,
  166. HTREEITEM hItem,
  167. BYTE DataFlag
  168. );
  169. BOOL
  170. KeyTreeClearData (
  171. HTREEITEM hItem
  172. );
  173. VOID
  174. KeyTreeSetFilterPattern (
  175. PSTR Pattern
  176. );
  177. BOOL
  178. KeyTreeCreateLinkage (
  179. HWND hdlg,
  180. HTREEITEM hItem,
  181. BOOL SingleLinkage,
  182. BYTE Instance
  183. );
  184. BOOL
  185. IsDataList (
  186. HWND hwnd
  187. );
  188. BOOL
  189. DataListInit (
  190. HWND hdlg
  191. );
  192. BOOL
  193. DataListClear (
  194. VOID
  195. );
  196. BOOL
  197. DataListRefresh (
  198. VOID
  199. );
  200. INT
  201. DataListAddData (
  202. BYTE DataFlag,
  203. UINT DataValue,
  204. PBYTE DataPtr
  205. );
  206. BOOL
  207. DataListRightClick (
  208. HWND hdlg,
  209. POINT pt
  210. );
  211. BOOL
  212. DataListDblClick (
  213. HWND hdlg,
  214. INT iItem,
  215. INT iSubItem
  216. );
  217. BOOL
  218. CALLBACK
  219. MainDlgProc (
  220. HWND hdlg,
  221. UINT uMsg,
  222. WPARAM wParam,
  223. LPARAM lParam
  224. );
  225. BOOL
  226. WantProcess (
  227. UINT msg,
  228. WPARAM wParam,
  229. LPARAM lParam
  230. );
  231. BOOL
  232. InitializeMemDb (
  233. HWND hWnd
  234. );
  235. BOOL
  236. DestroyMemDb (
  237. VOID
  238. );