michael@0: // Copyright (c) 2011 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef SANDBOX_SRC_INTERCEPTORS_H_ michael@0: #define SANDBOX_SRC_INTERCEPTORS_H_ michael@0: michael@0: #if defined(_WIN64) michael@0: #include "sandbox/win/src/interceptors_64.h" michael@0: #endif michael@0: michael@0: namespace sandbox { michael@0: michael@0: enum InterceptorId { michael@0: // Internal use: michael@0: MAP_VIEW_OF_SECTION_ID = 0, michael@0: UNMAP_VIEW_OF_SECTION_ID, michael@0: // Policy broker: michael@0: SET_INFORMATION_THREAD_ID, michael@0: OPEN_THREAD_TOKEN_ID, michael@0: OPEN_THREAD_TOKEN_EX_ID, michael@0: OPEN_TREAD_ID, michael@0: OPEN_PROCESS_ID, michael@0: OPEN_PROCESS_TOKEN_ID, michael@0: OPEN_PROCESS_TOKEN_EX_ID, michael@0: // Filesystem dispatcher: michael@0: CREATE_FILE_ID, michael@0: OPEN_FILE_ID, michael@0: QUERY_ATTRIB_FILE_ID, michael@0: QUERY_FULL_ATTRIB_FILE_ID, michael@0: SET_INFO_FILE_ID, michael@0: // Named pipe dispatcher: michael@0: CREATE_NAMED_PIPE_ID, michael@0: // Process-thread dispatcher: michael@0: CREATE_PROCESSW_ID, michael@0: CREATE_PROCESSA_ID, michael@0: // Registry dispatcher: michael@0: CREATE_KEY_ID, michael@0: OPEN_KEY_ID, michael@0: OPEN_KEY_EX_ID, michael@0: // Sync dispatcher: michael@0: CREATE_EVENT_ID, michael@0: OPEN_EVENT_ID, michael@0: // CSRSS bypasses for HandleCloser: michael@0: CREATE_THREAD_ID, michael@0: GET_USER_DEFAULT_LCID_ID, michael@0: INTERCEPTOR_MAX_ID michael@0: }; michael@0: michael@0: typedef void* OriginalFunctions[INTERCEPTOR_MAX_ID]; michael@0: michael@0: } // namespace sandbox michael@0: michael@0: #endif // SANDBOX_SRC_INTERCEPTORS_H_