// Copyright (c) 2012 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__ #include #include "base/strings/string16.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, DWORD access_mask); // 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 base::string16& path); // Tries to open path for write access. Returns a SboxTestResult. int TestOpenWriteFile(const base::string16& path); // Tries to open a registry key. int TestOpenKey(HKEY base_key, base::string16 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(); // Tries to open the alternate desktop. Returns a SboxTestResult. int TestOpenAlternateDesktop(wchar_t *desktop_name); // Tries to enumerate desktops on the alternate windowstation. // Returns a SboxTestResult. int TestEnumAlternateWinsta(); } // namespace sandbox #endif // SANDBOX_TESTS_VALIDATION_TESTS_COMMANDS_H__