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.

82 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. handle.c
  5. Abstract:
  6. This module implements handle checking code.
  7. Author:
  8. Silviu Calinoiu (SilviuC) 1-Mar-2001
  9. Revision History:
  10. --*/
  11. #include "pch.h"
  12. #include "verifier.h"
  13. #include "support.h"
  14. //NTSYSCALLAPI
  15. NTSTATUS
  16. NTAPI
  17. AVrfpNtClose(
  18. IN HANDLE Handle
  19. )
  20. {
  21. NTSTATUS Status;
  22. PAVRF_HANDLE Hndl;
  23. #if 0 // silviuc:temp
  24. Hndl = HandleFind (Handle);
  25. if (Hndl) {
  26. DbgPrint ("AVRF: CloseHandle (hndl: %X) type: %X\n\tname: %ws\n",
  27. Handle,
  28. Hndl->Type,
  29. HandleName (Hndl));
  30. HandleDelete (Handle, Hndl);
  31. }
  32. #endif
  33. Status = NtClose (Handle);
  34. return Status;
  35. }
  36. //NTSYSCALLAPI
  37. NTSTATUS
  38. NTAPI
  39. AVrfpNtCreateEvent (
  40. OUT PHANDLE EventHandle,
  41. IN ACCESS_MASK DesiredAccess,
  42. IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
  43. IN EVENT_TYPE EventType,
  44. IN BOOLEAN InitialState
  45. )
  46. {
  47. NTSTATUS Status;
  48. Status = NtCreateEvent (EventHandle,
  49. DesiredAccess,
  50. ObjectAttributes,
  51. EventType,
  52. InitialState);
  53. if (NT_SUCCESS(Status)) {
  54. // CheckObjectAttributes (ObjectAttributes);
  55. }
  56. return Status;
  57. }