// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__ #define SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__ namespace sandbox { // Checks if window is a real window. Returns a SboxTestResult. int TestValidWindow(HWND window); // Tries to open the process_id. Returns a SboxTestResult. int TestOpenProcess(DWORD process_id); // Tries to open thread_id. Returns a SboxTestResult. int TestOpenThread(DWORD thread_id); // Tries to open path for read access. Returns a SboxTestResult. int TestOpenReadFile(const std::wstring& path); // Tries to open path for write access. Returns a SboxTestResult. int TestOpenWriteFile(const std::wstring& path); // Tries to open a registry key. int TestOpenKey(HKEY base_key, std::wstring subkey); // Tries to open the workstation's input desktop as long as the // current desktop is not the interactive one. Returns a SboxTestResult. int TestOpenInputDesktop(); // Tries to switch the interactive desktop. Returns a SboxTestResult. int TestSwitchDesktop(); } // namespace sandbox #endif // SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__