Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: base/win/win_util.h

Issue 10617002: Use a better registration suffix that will always be unique while respecting the MSDN rules. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/win/win_util.cc » ('j') | base/win/win_util.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ============================================================================= 5 // =============================================================================
6 // PLEASE READ 6 // PLEASE READ
7 // 7 //
8 // In general, you should not be adding stuff to this file. 8 // In general, you should not be adding stuff to this file.
9 // 9 //
10 // - If your thing is only used in one place, just put it in a reasonable 10 // - If your thing is only used in one place, just put it in a reasonable
(...skipping 29 matching lines...) Expand all
40 // A Windows message reflected from other windows. This message is sent 40 // A Windows message reflected from other windows. This message is sent
41 // with the following arguments: 41 // with the following arguments:
42 // hWnd - Target window 42 // hWnd - Target window
43 // uMsg - kReflectedMessage 43 // uMsg - kReflectedMessage
44 // wParam - Should be 0 44 // wParam - Should be 0
45 // lParam - Pointer to MSG struct containing the original message. 45 // lParam - Pointer to MSG struct containing the original message.
46 const int kReflectedMessage = WM_APP + 3; 46 const int kReflectedMessage = WM_APP + 3;
47 47
48 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics); 48 BASE_EXPORT void GetNonClientMetrics(NONCLIENTMETRICS* metrics);
49 49
50 // Returns the string representing the current user sid. 50 // Sets |user_sid| to the current user's sid.
51 // Returns true on success.
51 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid); 52 BASE_EXPORT bool GetUserSidString(std::wstring* user_sid);
52 53
54 // Sets |user_sid| to a base 16 encoding (using A-N range) of the current user's
55 // sid. This will fit in exactly 24 characters.
56 // Returns true on success.
57 BASE_EXPORT bool GetUserSidBase16Encoded(string16* user_sid);
gab 2012/06/21 05:55:41 Maybe this doesn't belong here idk...
58
53 // Returns true if the shift key is currently pressed. 59 // Returns true if the shift key is currently pressed.
54 BASE_EXPORT bool IsShiftPressed(); 60 BASE_EXPORT bool IsShiftPressed();
55 61
56 // Returns true if the ctrl key is currently pressed. 62 // Returns true if the ctrl key is currently pressed.
57 BASE_EXPORT bool IsCtrlPressed(); 63 BASE_EXPORT bool IsCtrlPressed();
58 64
59 // Returns true if the alt key is currently pressed. 65 // Returns true if the alt key is currently pressed.
60 BASE_EXPORT bool IsAltPressed(); 66 BASE_EXPORT bool IsAltPressed();
61 67
62 // Returns false if user account control (UAC) has been disabled with the 68 // Returns false if user account control (UAC) has been disabled with the
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // This is necessary to set compatible struct sizes for different versions 115 // This is necessary to set compatible struct sizes for different versions
110 // of certain Windows APIs (e.g. SystemParametersInfo). 116 // of certain Windows APIs (e.g. SystemParametersInfo).
111 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \ 117 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(struct_name, member) \
112 offsetof(struct_name, member) + \ 118 offsetof(struct_name, member) + \
113 (sizeof static_cast<struct_name*>(NULL)->member) 119 (sizeof static_cast<struct_name*>(NULL)->member)
114 120
115 } // namespace win 121 } // namespace win
116 } // namespace base 122 } // namespace base
117 123
118 #endif // BASE_WIN_WIN_UTIL_H_ 124 #endif // BASE_WIN_WIN_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/win/win_util.cc » ('j') | base/win/win_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698