| Index: sandbox/win/src/sync_interception.h
|
| ===================================================================
|
| --- sandbox/win/src/sync_interception.h (revision 230780)
|
| +++ sandbox/win/src/sync_interception.h (working copy)
|
| @@ -12,56 +12,33 @@
|
|
|
| extern "C" {
|
|
|
| -typedef HANDLE (WINAPI *CreateEventWFunction) (
|
| - LPSECURITY_ATTRIBUTES lpEventAttributes,
|
| - BOOL bManualReset,
|
| - BOOL bInitialState,
|
| - LPCWSTR lpName);
|
| +typedef NTSTATUS (WINAPI* NtCreateEventFunction) (
|
| + PHANDLE EventHandle,
|
| + ACCESS_MASK DesiredAccess,
|
| + POBJECT_ATTRIBUTES ObjectAttributes,
|
| + EVENT_TYPE EventType,
|
| + BOOLEAN InitialState);
|
|
|
| -typedef HANDLE (WINAPI *CreateEventAFunction) (
|
| - LPSECURITY_ATTRIBUTES lpEventAttributes,
|
| - BOOL bManualReset,
|
| - BOOL bInitialState,
|
| - LPCSTR lpName);
|
| +typedef NTSTATUS (WINAPI *NtOpenEventFunction) (
|
| + PHANDLE EventHandle,
|
| + ACCESS_MASK DesiredAccess,
|
| + POBJECT_ATTRIBUTES ObjectAttributes);
|
|
|
| -typedef HANDLE (WINAPI *OpenEventWFunction) (
|
| - DWORD dwDesiredAccess,
|
| - BOOL bInitialState,
|
| - LPCWSTR lpName);
|
| +// Interceptors for NtCreateEvent/NtOpenEvent
|
| +SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateEvent(
|
| + NtCreateEventFunction orig_CreateEvent,
|
| + PHANDLE event_handle,
|
| + ACCESS_MASK desired_access,
|
| + POBJECT_ATTRIBUTES object_attributes,
|
| + EVENT_TYPE event_type,
|
| + BOOLEAN initial_state);
|
|
|
| -typedef HANDLE (WINAPI *OpenEventAFunction) (
|
| - DWORD dwDesiredAccess,
|
| - BOOL bInheritHandle,
|
| - LPCSTR lpName);
|
| +SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent(
|
| + NtOpenEventFunction orig_OpenEvent,
|
| + PHANDLE event_handle,
|
| + ACCESS_MASK desired_access,
|
| + POBJECT_ATTRIBUTES object_attributes);
|
|
|
| -// Interceptors for CreateEventW/A
|
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventW(
|
| - CreateEventWFunction orig_CreateEvent,
|
| - LPSECURITY_ATTRIBUTES security_attributes,
|
| - BOOL manual_reset,
|
| - BOOL initial_state,
|
| - LPCWSTR name);
|
| -
|
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventA(
|
| - CreateEventAFunction orig_CreateEvent,
|
| - LPSECURITY_ATTRIBUTES security_attributes,
|
| - BOOL manual_reset,
|
| - BOOL initial_state,
|
| - LPCSTR name);
|
| -
|
| -// Interceptors for OpenEventW/A
|
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW(
|
| - OpenEventWFunction orig_OpenEvent,
|
| - DWORD desired_access,
|
| - BOOL inherit_handle,
|
| - LPCWSTR name);
|
| -
|
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventA(
|
| - OpenEventAFunction orig_OpenEvent,
|
| - DWORD desired_access,
|
| - BOOL inherit_handle,
|
| - LPCSTR name);
|
| -
|
| } // extern "C"
|
|
|
| } // namespace sandbox
|
|
|