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.

84 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1989 - 1999 Microsoft Corporation
  3. Module Name:
  4. devctrl.c
  5. Abstract:
  6. This module implements DeviceIoControl operations.
  7. --*/
  8. #include "precomp.h"
  9. #pragma hdrstop
  10. //
  11. // The local debug trace level
  12. //
  13. RXDT_DefineCategory(DEVCTRL);
  14. #define Dbg (DEBUG_TRACE_DEVCTRL)
  15. //
  16. // forwards & code allocation pragmas
  17. //
  18. #ifdef ALLOC_PRAGMA
  19. #pragma alloc_text(PAGE, NulMRxIoCtl)
  20. #endif
  21. NTSTATUS
  22. NulMRxIoCtl(
  23. IN OUT PRX_CONTEXT RxContext)
  24. /*++
  25. Routine Description:
  26. This routine performs an IOCTL operation.
  27. Arguments:
  28. RxContext - the RDBSS context
  29. Return Value:
  30. RXSTATUS - The return status for the operation
  31. Notes:
  32. --*/
  33. {
  34. NTSTATUS Status = STATUS_INVALID_DEVICE_REQUEST;
  35. RxCaptureFcb;
  36. RxCaptureFobx;
  37. PMRX_SRV_OPEN pSrvOpen = capFobx->pSrvOpen;
  38. NulMRxGetFcbExtension(capFcb,pFcbExtension);
  39. PMRX_NET_ROOT pNetRoot = capFcb->pNetRoot;
  40. PMRX_SRV_CALL pSrvCall = pNetRoot->pSrvCall;
  41. UNICODE_STRING RootName;
  42. NulMRxGetDeviceExtension(RxContext,pDeviceExtension);
  43. PLOWIO_CONTEXT LowIoContext = &RxContext->LowIoContext;
  44. ULONG IoControlCode = LowIoContext->ParamsFor.FsCtl.FsControlCode;
  45. PUNICODE_STRING RemainingName = pSrvOpen->pAlreadyPrefixedName;
  46. UNICODE_STRING StatsFile;
  47. NulMRxGetNetRootExtension(pNetRoot,pNetRootExtension);
  48. RxTraceEnter("NulMRxIoCtl");
  49. PAGED_CODE();
  50. switch (IoControlCode) {
  51. default:
  52. //ASSERT(!"unimplemented major function");
  53. break;
  54. }
  55. RxTraceLeave(Status);
  56. return Status;
  57. }