NtDllNtOpenEvent(IntPtr, EventAccessRights, ObjectAttributes) Method
Opens a handle to an existing named event object with the specified desired access.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
<DllImportAttribute("NtDll.dll">]
Public Shared Function NtOpenEvent (
<OutAttribute> ByRef refEventHandle As IntPtr,
desiredAccess As EventAccessRights,
ByRef refObjectAttributes As ObjectAttributes
) As NTStatus
Dim refEventHandle As IntPtr
Dim desiredAccess As EventAccessRights
Dim refObjectAttributes As ObjectAttributes
Dim returnValue As NTStatus
returnValue = NtDll.NtOpenEvent(refEventHandle,
desiredAccess, refObjectAttributes)
public:
[DllImportAttribute(L"NtDll.dll")]
static NTStatus NtOpenEvent(
[OutAttribute] IntPtr% refEventHandle,
[InAttribute] EventAccessRights desiredAccess,
[InAttribute] ObjectAttributes% refObjectAttributes
)
No code example is currently available or this language may not be supported.
- refEventHandle IntPtr
-
A pointer to a variable that will receive the event object handle.
The handle includes bookkeeping information, such as a reference count and security context.
- desiredAccess EventAccessRights
-
The access mask value that represents the desired types of access for the event object.
- refObjectAttributes ObjectAttributes
-
A pointer to the ObjectAttributes structure that the caller supplied to be used for the specified object.
These attributes would include the ObjectName and the handle attributes, for example.
This parameter is initialized by calling the InitializeObjectAttributes macro.
NTStatus
Returns
SUCCESS on success, or the appropriate
NTStatus error code on failure.