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.

53 lines
1.8 KiB

  1. /*
  2. * WABMIG.H
  3. *
  4. * WAB Migration Interface
  5. *
  6. * Note: Must follow inclusion of wab.h.
  7. *
  8. * Copyright 1996, Microsoft Corporation. All Rights Reserved.
  9. */
  10. #ifndef ARRAYSIZE
  11. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  12. #endif
  13. typedef struct _WAB_PROGRESS {
  14. DWORD numerator; // Numerator for % done progress bar
  15. DWORD denominator; // Denominator for % done progress bar
  16. LPTSTR lpText; // Text to display in status area
  17. } WAB_PROGRESS, FAR *LPWAB_PROGRESS;
  18. typedef enum {
  19. WAB_REPLACE_ALWAYS,
  20. WAB_REPLACE_NEVER,
  21. WAB_REPLACE_PROMPT
  22. } WAB_REPLACE_OPTION, *LPWAB_REPLACE_OPTION;
  23. typedef struct _WAB_IMPORT_OPTIONS {
  24. WAB_REPLACE_OPTION ReplaceOption; // On collision, Should import overwrite? Yes, no, or prompt user.
  25. BOOL fNoErrors; // Don't display error pop-ups
  26. } WAB_IMPORT_OPTIONS, *LPWAB_IMPORT_OPTIONS;
  27. typedef WAB_IMPORT_OPTIONS WAB_EXPORT_OPTIONS;
  28. typedef WAB_EXPORT_OPTIONS * LPWAB_EXPORT_OPTIONS;
  29. typedef HRESULT (STDMETHODCALLTYPE WAB_PROGRESS_CALLBACK)(HWND hwnd,
  30. LPWAB_PROGRESS lpProgress);
  31. typedef WAB_PROGRESS_CALLBACK FAR * LPWAB_PROGRESS_CALLBACK;
  32. typedef HRESULT (STDMETHODCALLTYPE WAB_IMPORT)(HWND hwnd,
  33. LPADRBOOK lpAdrBook,
  34. LPWABOBJECT lpWABObject,
  35. LPWAB_PROGRESS_CALLBACK lpProgressCB,
  36. LPWAB_IMPORT_OPTIONS lpOptions);
  37. typedef WAB_IMPORT FAR * LPWAB_IMPORT;
  38. typedef HRESULT (STDMETHODCALLTYPE WAB_EXPORT)(HWND hwnd,
  39. LPADRBOOK lpAdrBook,
  40. LPWABOBJECT lpWABObject,
  41. LPWAB_PROGRESS_CALLBACK lpProgressCB,
  42. LPWAB_EXPORT_OPTIONS lpOptions);
  43. typedef WAB_EXPORT FAR * LPWAB_EXPORT;