summaryrefslogtreecommitdiffstats
path: root/base/win_util.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-31 17:18:50 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-31 17:18:50 +0000
commita8e2058011129cbef38bf89834ee01715556b392 (patch)
tree00cb892894c52145a66d23048acf2a81f0eed61d /base/win_util.h
parenta1fa87c8042ed2a3f9edd74ad2f313c84b1e407a (diff)
downloadchromium_src-a8e2058011129cbef38bf89834ee01715556b392.zip
chromium_src-a8e2058011129cbef38bf89834ee01715556b392.tar.gz
chromium_src-a8e2058011129cbef38bf89834ee01715556b392.tar.bz2
Move base/win_util to the base/win directory and use the base::win namespace.
Fix up includes, many files including base/win_util don't actually need it. TEST=it compiles BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/win_util.h')
-rw-r--r--base/win_util.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/base/win_util.h b/base/win_util.h
deleted file mode 100644
index c06e9c7..0000000
--- a/base/win_util.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2010 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 BASE_WIN_UTIL_H_
-#define BASE_WIN_UTIL_H_
-#pragma once
-
-#include <windows.h>
-
-#include <string>
-
-#include "base/string16.h"
-
-struct IPropertyStore;
-struct _tagpropertykey;
-typedef _tagpropertykey PROPERTYKEY;
-
-namespace win_util {
-
-void GetNonClientMetrics(NONCLIENTMETRICS* metrics);
-
-// Returns the string representing the current user sid.
-bool GetUserSidString(std::wstring* user_sid);
-
-// Returns true if the shift key is currently pressed.
-bool IsShiftPressed();
-
-// Returns true if the ctrl key is currently pressed.
-bool IsCtrlPressed();
-
-// Returns true if the alt key is currently pressed.
-bool IsAltPressed();
-
-// Returns false if user account control (UAC) has been disabled with the
-// EnableLUA registry flag. Returns true if user account control is enabled.
-// NOTE: The EnableLUA registry flag, which is ignored on Windows XP
-// machines, might still exist and be set to 0 (UAC disabled), in which case
-// this function will return false. You should therefore check this flag only
-// if the OS is Vista.
-bool UserAccountControlIsEnabled();
-
-// Sets the application id in given IPropertyStore. The function is intended
-// for tagging application/chromium shortcut, browser window and jump list for
-// Win7.
-bool SetAppIdForPropertyStore(IPropertyStore* property_store,
- const wchar_t* app_id);
-
-// Adds the specified |command| using the specified |name| to the AutoRun key.
-// |root_key| could be HKCU or HKLM or the root of any user hive.
-bool AddCommandToAutoRun(HKEY root_key, const string16& name,
- const string16& command);
-// Removes the command specified by |name| from the AutoRun key. |root_key|
-// could be HKCU or HKLM or the root of any user hive.
-bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name);
-
-} // namespace win_util
-
-#endif // BASE_WIN_UTIL_H_