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.

75 lines
2.3 KiB

  1. #include "common.h"
  2. /*********************************************************/
  3. /******************* Constants ***************************/
  4. /*********************************************************/
  5. #define EDITDLG 200
  6. #define MAINWND 201
  7. #define ID_NAMELIST (ID_FIRSTREGEDIT)
  8. #define ID_CLASSID (ID_FIRSTREGEDIT+0x10)
  9. #define ID_STATCLASSID (ID_CLASSID+1)
  10. #define ID_USESDDE (ID_CLASSID+2)
  11. #define ID_BROWSE (ID_CLASSID+3)
  12. #define ID_SAVEACTION (ID_CLASSID+4)
  13. #define ID_GROUPDDE (ID_CLASSID+5)
  14. #define ID_FIRSTACTIONRADIO (ID_FIRSTREGEDIT+0x20)
  15. #define ID_OPENRADIO (ID_FIRSTACTIONRADIO)
  16. #define ID_PRINTRADIO (ID_FIRSTACTIONRADIO+1)
  17. #define ID_LASTACTIONRADIO (ID_PRINTRADIO)
  18. #define ID_FIRSTEDIT (ID_FIRSTREGEDIT+0x30)
  19. #define ID_CLASSNAME (ID_FIRSTEDIT)
  20. #define ID_FIRSTACTIONEDIT (ID_FIRSTEDIT+1)
  21. #define ID_COMMAND (ID_FIRSTACTIONEDIT)
  22. #define ID_FIRSTDDEEDIT (ID_FIRSTEDIT+2)
  23. #define ID_LASTEDIT (ID_FIRSTEDIT+5)
  24. #define CI_SUCCESS 0
  25. #define CI_EXISTS 1
  26. #define CI_CANTCREATE 2
  27. #define IDS_BROWSETITLE (IDS_FIRSTREGEDIT)
  28. #define IDS_EXES (IDS_BROWSETITLE+1)
  29. #define IDS_CUSTEXES (IDS_BROWSETITLE+2)
  30. #define IDS_EXISTS (IDS_FIRSTREGEDIT+0x10)
  31. #define IDS_INVALIDID (IDS_EXISTS+1)
  32. #define IDS_INVALIDNAME (IDS_EXISTS+2)
  33. #define IDS_ADD (IDS_FIRSTREGEDIT+0x20)
  34. #define IDS_COPY (IDS_ADD+1)
  35. #define IDS_SUREDELETE (IDS_FIRSTREGEDIT+0x30)
  36. #define CC_INVALIDNAME -1
  37. #define CC_OUTOFMEMORY -2
  38. #define CC_ALREADYEXISTS -3
  39. #define CC_CANTCREATE -4
  40. #define FLAG_NEW (1)
  41. #define FLAG_COPY (2)
  42. /*********************************************************/
  43. /******************* Functions ***************************/
  44. /*********************************************************/
  45. /***** regedit.c *****/
  46. extern long FAR PASCAL MainWnd(HWND, WORD, WORD, LONG);
  47. /***** dbase.c *****/
  48. extern WORD NEAR PASCAL CreateId(HANDLE hId);
  49. extern WORD NEAR PASCAL MyGetClassName(HANDLE hId, HANDLE *hName);
  50. extern WORD NEAR PASCAL DeleteClassId(HANDLE hId);
  51. extern WORD NEAR PASCAL MergeData(HWND hWndName, HANDLE hId);
  52. extern WORD NEAR PASCAL ResetClassList(HWND hWndIdList, HWND hWndNameList);
  53. extern WORD NEAR PASCAL GetLocalCopies(HWND hWndName, HANDLE hId);
  54. /***** utils1.c *****/
  55. extern PSTR NEAR PASCAL GetAppName(HANDLE hCommand);
  56. extern HANDLE NEAR cdecl ConstructPath(PSTR pHead, ...);