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.

68 lines
1.7 KiB

  1. //*************************************************************
  2. //
  3. // Header file for copydir.c
  4. //
  5. // Microsoft Confidential
  6. // Copyright (c) Microsoft Corporation 1995
  7. // All rights reserved
  8. //
  9. //*************************************************************
  10. //
  11. // File copy structure
  12. //
  13. typedef struct _FILEINFO {
  14. TCHAR szSrc[MAX_PATH];
  15. TCHAR szDest[MAX_PATH];
  16. FILETIME ftLastWrite;
  17. FILETIME ftCreationTime;
  18. DWORD dwFileSize;
  19. DWORD dwFileAttribs;
  20. BOOL bHive;
  21. struct _FILEINFO *pNext;
  22. } FILEINFO, * LPFILEINFO;
  23. #define NUM_COPY_THREADS 7
  24. //
  25. // ThreadInfo structure
  26. //
  27. typedef struct _THREADINFO {
  28. DWORD dwFlags;
  29. HANDLE hCopyEvent;
  30. LPFILEINFO lpSrcFiles;
  31. DWORD dwError;
  32. HWND hStatusDlg;
  33. HANDLE hStatusInitEvent;
  34. HANDLE hStatusTermEvent;
  35. HDESK hDesktop;
  36. HANDLE hTokenUser;
  37. } THREADINFO, * LPTHREADINFO;
  38. //
  39. // Error dialog structure
  40. //
  41. typedef struct _COPYERRORINFO {
  42. LPTSTR lpSrc;
  43. LPTSTR lpDest;
  44. DWORD dwError;
  45. DWORD dwTimeout;
  46. } COPYERRORINFO, * LPCOPYERRORINFO;
  47. INT ReconcileFile (LPCTSTR lpSrcFile, LPCTSTR lpDestFile,
  48. DWORD dwFlags, LPFILETIME ftSrcTime,
  49. DWORD dwFileSize, BOOL bHiveFile);
  50. INT_PTR APIENTRY CopyStatusDlgProc (HWND hDlg, UINT uMsg,
  51. WPARAM wParam, LPARAM lParam);
  52. INT_PTR APIENTRY CopyErrorDlgProc (HWND hDlg, UINT uMsg,
  53. WPARAM wParam, LPARAM lParam);