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.

88 lines
1.7 KiB

  1. #include <commctrl.h>
  2. //
  3. // Global variables
  4. //
  5. extern HINSTANCE ghInst;
  6. extern int listTabs[];
  7. extern int gNumRows;
  8. //
  9. // Function prototypes
  10. //
  11. INT_PTR CALLBACK EnumDlgProc (HWND, UINT, WPARAM, LPARAM);
  12. INT_PTR CALLBACK SortDlgProc (HWND, UINT, WPARAM, LPARAM);
  13. INT_PTR CALLBACK MoreInfoDlgProc (HWND, UINT, WPARAM, LPARAM);
  14. INT_PTR CALLBACK RNRDlgProc (HWND, UINT, WPARAM, LPARAM);
  15. int CatReadRegistry (HWND);
  16. int CatDoMoreInfo (HWND, int);
  17. int CatDoWriteEntries (HWND);
  18. int CatCheckRegErrCode (HWND, LONG, LPTSTR);
  19. int CatDoUpDown (HWND, WPARAM);
  20. BOOL CatGetIndex (LPTSTR, LPINT, LPINT);
  21. //
  22. // Constant defines
  23. //
  24. #define DID_HEADERCTL 501
  25. #define DID_LISTCTL 502
  26. #define DID_UP 503
  27. #define DID_DOWN 504
  28. #define DID_MORE 505
  29. #define DID_ENUM 700
  30. #define DID_WSAENUM 701
  31. #define TOTAL_TABS 10
  32. #define MAX_STR 256
  33. //
  34. // Helpful macros
  35. //
  36. //
  37. // In the context of a dialog box with a child listbox id==DID_LISTCTL...
  38. //
  39. #define ADDSTRING(x) SendMessage (GetDlgItem (hwnd, DID_LISTCTL), LB_ADDSTRING, 0 ,(LPARAM) x)
  40. #define HWNDLISTCTL GetDlgItem (hwnd, DID_LISTCTL)
  41. #define ASSERT(X,Y) if (!X) MessageBox (NULL, Y, TEXT("ASSERT"), MB_OK);
  42. #define XBORDER GetSystemMetrics (SM_CXSIZEFRAME) *3/2
  43. #define YBORDER GetSystemMetrics (SM_CYSIZEFRAME) *3/2
  44. #define HDRHEIGHT GetSystemMetrics (SM_CYMENU)
  45. //
  46. // Simple debug output routine that becomes no-op when ndef DEBUG
  47. //
  48. #ifdef DEBUG
  49. #else
  50. #endif
  51. #if DBG
  52. #define DBGOUT(arg) DbgPrint arg
  53. void
  54. _cdecl
  55. DbgPrint(
  56. PTCH Format,
  57. ...
  58. );
  59. #else
  60. #define DBGOUT(arg)
  61. #endif