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
2.6 KiB

  1. #ifndef __SHCOMPUI_H
  2. #define __SHCOMPUI_H
  3. ///////////////////////////////////////////////////////////////////////////////
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1995.
  7. //
  8. // FILE: SHCOMPUI.H
  9. //
  10. // DESCRIPTION:
  11. //
  12. // Header for users of SHCOMPUI.DLL.
  13. //
  14. // REVISIONS:
  15. //
  16. // Date Description Programmer
  17. // ---------- --------------------------------------------------- ----------
  18. // 09/15/95 Initial creation. brianau
  19. // 09/21/95 Changes per first code review. brianau
  20. // 09/28/95 Added SCCA_CONTEXT structure. brianau
  21. //
  22. ///////////////////////////////////////////////////////////////////////////////
  23. #ifdef WINNT
  24. #include <windows.h>
  25. //
  26. // Define a context structure for keeping track of what's going on during the
  27. // compression/uncompression operations.
  28. //
  29. typedef struct {
  30. BOOL bIgnoreAllErrors; // User wants to ignore all errors.
  31. DWORD uCompletionReason; // Reason operation completed.
  32. DWORD cErrors; // Number of errors on last call.
  33. DWORD cCummErrors; // Cummulative error count.
  34. } SCCA_CONTEXT, *LPSCCA_CONTEXT;
  35. //
  36. // Values for uCompletionReason member of SCCA_CONTEXT.
  37. //
  38. #define SCCA_REASON_NORMAL 0 // No problems.
  39. #define SCCA_REASON_USERCANCEL 1 // User cancel in confirm dlg.
  40. #define SCCA_REASON_USERABORT 2 // User abort in error dlg.
  41. #define SCCA_REASON_IOERROR 3 // Device IO error.
  42. #define SCCA_REASON_DISKFULL 4 // Disk full on uncompression.
  43. //
  44. // Initialize a new context structure.
  45. // Use address of structure as argument.
  46. //
  47. #define SCCA_CONTEXT_INIT(c) { memset((LPVOID)c, 0, sizeof(SCCA_CONTEXT)); }
  48. //
  49. // To call this function, create a SCCA_CONTEXT variable, initialize
  50. // it with SCCA_CONTEXT_INIT( ) and pass it's address in the "context"
  51. // argument. The context structure maintains information that must
  52. // persist between successive calls while processing an Explorer
  53. // selection set. The structure is also used to collect performance
  54. // data such as error counts and completion status that may be queried
  55. // once the function returns.
  56. //
  57. BOOL ShellChangeCompressionAttribute(HWND hActiveWnd, LPTSTR szNameSpec,
  58. LPSCCA_CONTEXT context, BOOL bCompress, BOOL bShowUI);
  59. #define SZ_SHCOMPUI_DLLNAME __TEXT("SHCOMPUI.DLL")
  60. //
  61. // Note: This must be an ANSI string for GetProcAddress( ).
  62. //
  63. #define SZ_COMPRESS_PROCNAME "ShellChangeCompressionAttribute"
  64. #endif // ifdef WINNT
  65. #endif // ifdef __SHCOMPUI_H
  66.