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.

57 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. process.h
  5. Abstract:
  6. This module contains declarations of functions and globals
  7. for process file object implemetation in ws2ifsl.sys driver.
  8. Author:
  9. Vadim Eydelman (VadimE) Dec-1996
  10. Revision History:
  11. Vadim Eydelman (VadimE) Oct-1997, rewrite to properly handle IRP
  12. cancellation
  13. --*/
  14. // Process file device IO control function pointer
  15. typedef
  16. VOID // Result is returned via IoStatus
  17. (*PPROCESS_DEVICE_CONTROL) (
  18. IN PFILE_OBJECT ProcessFile, // Process file on which to operate
  19. IN KPROCESSOR_MODE RequestorMode, // Mode of the caller
  20. IN PVOID InputBuffer, // Input buffer pointer
  21. IN ULONG InputBufferLength, // Size of the input buffer
  22. OUT PVOID OutputBuffer, // Output buffer pointer
  23. IN ULONG OutputBufferLength, // Size of output buffer
  24. OUT PIO_STATUS_BLOCK IoStatus // IO status information block
  25. );
  26. PPROCESS_DEVICE_CONTROL ProcessIoControlMap[3];
  27. ULONG ProcessIoctlCodeMap[3];
  28. NTSTATUS
  29. CreateProcessFile (
  30. IN PFILE_OBJECT ProcessFile,
  31. IN KPROCESSOR_MODE RequestorMode,
  32. IN PFILE_FULL_EA_INFORMATION eaInfo
  33. );
  34. NTSTATUS
  35. CleanupProcessFile (
  36. IN PFILE_OBJECT ProcessFile,
  37. IN PIRP Irp
  38. );
  39. VOID
  40. CloseProcessFile (
  41. IN PFILE_OBJECT ProcessFile
  42. );