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.

67 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. csc_bmpd.h
  5. Abstract:
  6. Interface to the user mode utility functions of bitmaps associated
  7. with CSC files written specifically for the db program. The 'd' in
  8. the file name means "db."
  9. Author:
  10. Nigel Choi [t-nigelc] Sept 3, 1999
  11. --*/
  12. #ifndef _CSC_BITMAP_H_
  13. #define _CSC_BITMAP_H_
  14. #include <windows.h>
  15. #include <stdio.h>
  16. #include "csc_bmpc.h"
  17. // The _DB is used to distinguish this from the kernel mode CSC_BITMAP
  18. // or the usermode _U
  19. typedef struct _CSC_BITMAP_DB {
  20. DWORD bitmapsize; // size in bits. How many bits effective in the bitmap
  21. DWORD numDWORD; // how many DWORDs to accomodate the bitmap */
  22. LPDWORD bitmap; // The bitmap itself
  23. } CSC_BITMAP_DB, *LPCSC_BITMAP_DB, *PCSC_BITMAP_DB;
  24. extern LPSTR CscBmpAltStrmName;
  25. LPCSC_BITMAP_DB
  26. DBCSC_BitmapCreate(
  27. DWORD filesize);
  28. VOID
  29. DBCSC_BitmapDelete(
  30. LPCSC_BITMAP_DB *lplpbitmap);
  31. int
  32. DBCSC_BitmapIsMarked(
  33. LPCSC_BITMAP_DB lpbitmap,
  34. DWORD bitoffset);
  35. int
  36. DBCSC_BitmapAppendStreamName(
  37. LPSTR fname,
  38. DWORD bufsize);
  39. int
  40. DBCSC_BitmapRead(
  41. LPCSC_BITMAP_DB *lplpbitmap,
  42. LPCTSTR filename);
  43. VOID
  44. DBCSC_BitmapOutput(
  45. FILE *outStrm,
  46. LPCSC_BITMAP_DB lpbitmap);
  47. #endif //#define _CSC_BITMAP_H_