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.

64 lines
1.2 KiB

  1. #define ALLOCATION_UNIT 512
  2. #define DMF_ALLOCATION_UNIT 1024
  3. #define CD_SIZE 300000000
  4. #define PRINT1(X) { printf(X); fprintf(logFile,X); }
  5. #define PRINT2(X,Y) { printf(X,Y); fprintf(logFile,X,Y); }
  6. #define PRINT3(X,Y,Z) { printf(X,Y,Z); fprintf(logFile,X,Y,Z); }
  7. #define PRINT4(X,Y,Z,Q) { printf(X,Y,Z,Q); fprintf(logFile,X,Y,Z,Q); }
  8. typedef struct _Entry
  9. {
  10. char *name;
  11. char *source;
  12. char *path;
  13. char *flopmedia;
  14. char *comment;
  15. char *product;
  16. char *sdk;
  17. char *platform;
  18. char *cdpath;
  19. char *inf;
  20. char *section;
  21. char *infline;
  22. int size;
  23. int csize;
  24. char *nocompress;
  25. int priority;
  26. char *lmacl;
  27. char *ntacl;
  28. char *aclpath;
  29. char *medianame;
  30. int disk;
  31. } Entry;
  32. void EntryPrint(Entry* entry,
  33. FILE* readFile);
  34. void EntryRead(Entry* entry,
  35. char* bomLine);
  36. int EntryMatchProduct(Entry* entry,
  37. char* product);
  38. int MyOpenFile(FILE** f,
  39. char* fileName,
  40. char* mode);
  41. void LoadFile(char* name,
  42. char** buf,
  43. Entry** e,
  44. int* records,
  45. char* product);
  46. void convertName(char *oldName,
  47. char *newName);