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.

77 lines
3.2 KiB

  1. #ifndef _CONFRES_H_
  2. #define _CONFRES_H_
  3. // If we require any of the elements in the dialog box, we can call the
  4. // caller back via the callback function and specify what we want
  5. // (This has not yet been implemented)
  6. #define RFCD_NAME 0x0001
  7. #define RFCD_KEEPBOTHICON 0x0002
  8. #define RFCD_KEEPLOCALICON 0x0004
  9. #define RFCD_KEEPSERVERICON 0x0008
  10. #define RFCD_NETWORKMODIFIEDBY 0x0010
  11. #define RFCD_NETWORKMODIFIEDON 0x0020
  12. #define RFCD_LOCALMODIFIEDBY 0x0040
  13. #define RFCD_LOCALMODIFIEDON 0x0080
  14. #define RFCD_NEWNAME 0x0100
  15. #define RFCD_LOCATION 0x0200
  16. #define RFCD_ALL 0x03FF
  17. // User clicks the view button. This is the message sent to the caller
  18. // via the callback
  19. #define RFCCM_VIEWLOCAL 0x0001
  20. #define RFCCM_VIEWNETWORK 0x0002
  21. #define RFCCM_NEEDELEMENT 0x0003
  22. // Return values
  23. #define RFC_KEEPBOTH 0x01
  24. #define RFC_KEEPLOCAL 0x02
  25. #define RFC_KEEPNETWORK 0x03
  26. typedef BOOL (*PFNRFCDCALLBACK)(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  27. typedef struct tagRFCDLGPARAMW {
  28. DWORD dwFlags; // currently unused..
  29. LPCWSTR pszFilename; // File name of the file conflicted
  30. LPCWSTR pszLocation; // Location of the file
  31. LPCWSTR pszNewName; // The new name to give the file
  32. LPCWSTR pszNetworkModifiedBy; // Name of person who changed the net doc
  33. LPCWSTR pszLocalModifiedBy; // Name of person who changed the local doc
  34. LPCWSTR pszNetworkModifiedOn; // When the net doc was changed
  35. LPCWSTR pszLocalModifiedOn; // Whent the local doc was changed
  36. HICON hIKeepBoth; // Icon
  37. HICON hIKeepLocal; //
  38. HICON hIKeepNetwork; //
  39. PFNRFCDCALLBACK pfnCallBack; // Callback
  40. LPARAM lCallerData; // Place where the caller can keep some context data
  41. } RFCDLGPARAMW;
  42. typedef struct tagRFCDLGPARAMA {
  43. DWORD dwFlags; // currently unused..
  44. LPCSTR pszFilename; // File name of the file conflicted
  45. LPCSTR pszLocation; // Location of the file
  46. LPCSTR pszNewName; // The new name to give the file
  47. LPCSTR pszNetworkModifiedBy; // Name of person who changed the net doc
  48. LPCSTR pszLocalModifiedBy; // Name of person who changed the local doc
  49. LPCSTR pszNetworkModifiedOn; // When the net doc was changed
  50. LPCSTR pszLocalModifiedOn; // Whent the local doc was changed
  51. HICON hIKeepBoth; // Icon
  52. HICON hIKeepLocal; //
  53. HICON hIKeepNetwork; //
  54. PFNRFCDCALLBACK pfnCallBack; // Callback
  55. LPARAM lCallerData; // Place where the caller can keep some context data
  56. } RFCDLGPARAMA;
  57. int WINAPI SyncMgrResolveConflictW(HWND hWndParent, RFCDLGPARAMW *pdlgParam);
  58. int WINAPI SyncMgrResolveConflictA(HWND hWndParent, RFCDLGPARAMA *pdlgParam);
  59. #ifdef UNICODE
  60. #define SyncMgrResolveConflict SyncMgrResolveConflictW
  61. #define RFCDLGPARAM RFCDLGPARAMW
  62. #else
  63. #define SyncMgrResolveConflict SyncMgrResolveConflictA
  64. #define RFCDLGPARAM RFCDLGPARAMA
  65. #endif
  66. #endif // _CONFRES_H_