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.

42 lines
656 B

  1. //
  2. // Initialize or allocate any global resources here
  3. //
  4. void ProgramInit(void)
  5. {
  6. int ti;
  7. nTotalDrives = BuildDriveTable(VolInfo);
  8. for (ti = 0; ti < IRP_MJ_MAXIMUM_FUNCTION+1; ti++)
  9. {
  10. //
  11. // Enabled by default
  12. //
  13. IRPFilter[ti] = 1;
  14. }
  15. for (ti = 0; ti < FASTIO_MAX_OPERATION; ti++)
  16. {
  17. //
  18. // Enabled by default
  19. //
  20. FASTIOFilter[ti] = 1;
  21. }
  22. //
  23. // Disabled by default
  24. //
  25. nSuppressPagingIO = 0;
  26. }
  27. //
  28. // Release any global resources here
  29. //
  30. void ProgramExit(void)
  31. {
  32. //
  33. // !?!
  34. // Before we get here MFC terminates this thread!!!
  35. //
  36. TerminateThread(hPollThread, 1);
  37. ShutdownFileSpy();
  38. }