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.

74 lines
2.3 KiB

  1. #include "common.h"
  2. /*********************************************************/
  3. /******************* Constants ***************************/
  4. /*********************************************************/
  5. #define SDKMAINWND 300
  6. #define ModifyKey 301
  7. #define AddKey 302
  8. #define CopyKey 303
  9. #define DeleteKey 304
  10. #define FindKeyDlg 305
  11. #define ID_SAVE (ID_FIRSTSDKREGED)
  12. #define ID_RESTORE (ID_SAVE+1)
  13. #define ID_WRITEFILE (ID_SAVE+2)
  14. #define ID_DORESTORE (ID_SAVE+3)
  15. #define ID_FINDKEY (ID_FIRSTSDKREGED+0x10)
  16. #define ID_FINDNEXT (ID_FINDKEY+1)
  17. #define ID_VALUE (ID_FIRSTSDKREGED+0x20)
  18. #define ID_VALLIST (ID_VALUE+1)
  19. #define ID_DELLIST (ID_VALUE+2)
  20. #define ID_FULLPATH (ID_VALUE+3)
  21. #define ID_STAT1 (ID_FIRSTSDKREGED+0x30)
  22. #define ID_EDIT1 (ID_STAT1+1)
  23. #define ID_EDIT2 (ID_STAT1+2)
  24. #define IDS_NOSUBKEY (IDS_FIRSTSDKREGED)
  25. #define IDS_ALREADYEXIST (IDS_NOSUBKEY+1)
  26. #define IDS_WRITETITLE (IDS_FIRSTSDKREGED+0x10)
  27. #define IDS_CANTWRITEFILE (IDS_WRITETITLE+1)
  28. #define IDS_SAVECHANGES (IDS_FIRSTSDKREGED+0x20)
  29. #define IDS_ERRORSAVING (IDS_SAVECHANGES+1)
  30. #define IDS_SURERESTORE (IDS_SAVECHANGES+2)
  31. #define IDS_NODELROOT (IDS_SAVECHANGES+3)
  32. #define IDS_SOURCENOTEXIST (IDS_FIRSTSDKREGED+0x30)
  33. #define IDW_ADDKEY (IDW_MODIFY-1)
  34. #define IDW_COPYKEY (IDW_MODIFY-2)
  35. #define IDW_DELETE (IDW_MODIFY-3)
  36. #define IDW_FINDKEY (IDW_MODIFY-4)
  37. /*********************************************************/
  38. /******************* Functions ***************************/
  39. /*********************************************************/
  40. /***** sdkreged.c *****/
  41. extern long FAR PASCAL SDKMainWnd(HWND, WORD, WORD, LONG);
  42. /***** sdbase.c *****/
  43. extern DWORD NEAR PASCAL GetTreeMarkers(int nId);
  44. extern int NEAR PASCAL GetLevel(int nId);
  45. extern HANDLE NEAR PASCAL MyGetPartialPath(int index, int nParent);
  46. extern HANDLE NEAR PASCAL MyGetPath(int i);
  47. extern int NEAR PASCAL FindKey(PSTR pKey);
  48. extern int NEAR PASCAL FindLastExistingKey(int nParent, PSTR pPath);
  49. extern WORD NEAR PASCAL DoWriteFile(int nId, HANDLE hFileName);
  50. /***** virt.c *****/
  51. extern WORD NEAR PASCAL MyResetIdList(HWND hDlg);
  52. extern WORD NEAR PASCAL MySaveChanges(void);
  53. extern WORD NEAR PASCAL MyDeleteKey(int nId);
  54. extern unsigned long NEAR PASCAL MyGetValue(int nId, HANDLE *hValue);
  55. extern unsigned long NEAR PASCAL SDKSetValue(HKEY, PSTR, PSTR);
  56. extern int NEAR PASCAL DoCopyKey(int nId, PSTR pPath);