NativeFileIONtOpenEvent Method |
Calls NT API NtOpenEvent() function to open an event object using NT path and encapsulates returned handle in a SafeWaitHandle object.
Namespace:
Arsenal.ImageMounter.IO
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static SafeWaitHandle NtOpenEvent(
string EventName,
NativeFileIONtObjectAttributes ObjectAttributes,
uint DesiredAccess,
SafeFileHandle RootDirectory
)
Public Shared Function NtOpenEvent (
EventName As String,
ObjectAttributes As NativeFileIONtObjectAttributes,
DesiredAccess As UInteger,
RootDirectory As SafeFileHandle
) As SafeWaitHandle
public:
static SafeWaitHandle^ NtOpenEvent(
String^ EventName,
NativeFileIONtObjectAttributes ObjectAttributes,
unsigned int DesiredAccess,
SafeFileHandle^ RootDirectory
)
static member NtOpenEvent :
EventName : string *
ObjectAttributes : NativeFileIONtObjectAttributes *
DesiredAccess : uint32 *
RootDirectory : SafeFileHandle -> SafeWaitHandle
Parameters
- EventName
- Type: SystemString
Name of event to open. - ObjectAttributes
- Type: Arsenal.ImageMounter.IONativeFileIONtObjectAttributes
Object attributes. - DesiredAccess
- Type: SystemUInt32
Access to request. - RootDirectory
- Type: Microsoft.Win32.SafeHandlesSafeFileHandle
Root directory to start path parsing from, or null for rooted path.
Return Value
Type:
SafeWaitHandleNTSTATUS value indicating result of the operation.
See Also