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.

91 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. csc_bmpu.h
  5. Abstract:
  6. Interface to the user mode utility functions of bitmaps
  7. associated with CSC files. The 'u' in the file name means "usermode"
  8. Author:
  9. Nigel Choi [t-nigelc] Sept 3, 1999
  10. --*/
  11. #ifndef _CSC_BITMAP_H_
  12. #define _CSC_BITMAP_H_
  13. #include "csc_bmpc.h"
  14. // The _U is used to distinguish this from the kernel mode CSC_BITMAP
  15. typedef struct _CSC_BITMAP_U {
  16. DWORD bitmapsize; // size in bits. How many bits effective in the bitmap
  17. DWORD numDWORD; // how many DWORDs to accomodate the bitmap
  18. DWORD reintProgress; // last fileoffset Reint copies + 1, initially 0
  19. LPDWORD bitmap; // The bitmap itself
  20. } CSC_BITMAP_U, *LPCSC_BITMAP_U, *PCSC_BITMAP_U;
  21. extern LPTSTR CscBmpAltStrmName;
  22. LPCSC_BITMAP_U
  23. CSC_BitmapCreate(
  24. DWORD filesize);
  25. VOID
  26. CSC_BitmapDelete(
  27. LPCSC_BITMAP_U *lplpbitmap);
  28. int
  29. CSC_BitmapIsMarked(
  30. LPCSC_BITMAP_U lpbitmap,
  31. DWORD bitoffset);
  32. DWORD
  33. CSC_BitmapGetBlockSize();
  34. int
  35. CSC_BitmapGetSize(
  36. LPCSC_BITMAP_U lpbitmap);
  37. int
  38. CSC_BitmapStreamNameLen();
  39. int
  40. CSC_BitmapAppendStreamName(
  41. LPTSTR fname,
  42. DWORD bufsize);
  43. int
  44. CSC_BitmapRead(
  45. LPCSC_BITMAP_U *lplpbitmap,
  46. LPCTSTR filename);
  47. #define CSC_BITMAPReintInvalid 0
  48. #define CSC_BITMAPReintError 1
  49. #define CSC_BITMAPReintCont 2
  50. #define CSC_BITMAPReintDone 3
  51. int
  52. CSC_BitmapReint(
  53. LPCSC_BITMAP_U lpbitmap,
  54. HANDLE srcH,
  55. HANDLE dstH,
  56. LPVOID buff,
  57. DWORD buffSize,
  58. DWORD * bytesRead);
  59. #ifdef DEBUG
  60. VOID
  61. CSC_BitmapOutput(
  62. LPCSC_BITMAP_U lpbitmap);
  63. #else
  64. #define CSC_BitmapOutput(x) NOTHING;
  65. #endif
  66. #endif //#define _CSC_BITMAP_H_