diff options
Diffstat (limited to 'base/win/win_util.h')
-rw-r--r-- | base/win/win_util.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/base/win/win_util.h b/base/win/win_util.h index 847c434..136a1ff 100644 --- a/base/win/win_util.h +++ b/base/win/win_util.h @@ -27,7 +27,7 @@ #include <string> -#include "base/base_api.h" +#include "base/base_export.h" #include "base/string16.h" struct IPropertyStore; @@ -37,19 +37,19 @@ typedef _tagpropertykey PROPERTYKEY; namespace base { namespace win { -BASE_API void GetNonClientMetrics(NONCLIENTMETRICS* metrics); +BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); // Returns the string representing the current user sid. -BASE_API bool GetUserSidString(std::wstring* user_sid); +BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); // Returns true if the shift key is currently pressed. -BASE_API bool IsShiftPressed(); +BASE_EXPORT bool IsShiftPressed(); // Returns true if the ctrl key is currently pressed. -BASE_API bool IsCtrlPressed(); +BASE_EXPORT bool IsCtrlPressed(); // Returns true if the alt key is currently pressed. -BASE_API bool IsAltPressed(); +BASE_EXPORT 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. @@ -57,27 +57,28 @@ BASE_API bool IsAltPressed(); // 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 or later. -BASE_API bool UserAccountControlIsEnabled(); +BASE_EXPORT 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. -BASE_API bool SetAppIdForPropertyStore(IPropertyStore* property_store, - const wchar_t* app_id); +BASE_EXPORT 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. -BASE_API bool AddCommandToAutoRun(HKEY root_key, const string16& name, - const string16& command); +BASE_EXPORT 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. -BASE_API bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name); +BASE_EXPORT bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name); // Reads the command specified by |name| from the AutoRun key. |root_key| // could be HKCU or HKLM or the root of any user hive. Used for unit-tests. -BASE_API bool ReadCommandFromAutoRun(HKEY root_key, - const string16& name, - string16* command); +BASE_EXPORT bool ReadCommandFromAutoRun(HKEY root_key, + const string16& name, + string16* command); + } // namespace win } // namespace base |