-
-
Notifications
You must be signed in to change notification settings - Fork 224
Conversation
using System; | ||
|
||
/// <content> | ||
/// Contains the <see cref="ServiceDescription"/> nested type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here should be TokenAccessRights
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed.
Signaled by jmelosegui in dotnet#65
@vbfox it is not clear to me whether should we decorate a boolean return value with |
@jmelosegui It isn't mandatory as it is the default value for PInvoke but it's what one of the FxCop rules (CA1414) mandate, we started to discuss it on #50. It's still unknown if we will apply it but i'm for enabling all the rules that make sense. The reason for this rule is that the default value is the Win32 vision of what a boolean is (32-bits value with 0 meaning false and anything else meaning true) but not all platforms (or even libraries under windows) conform to that so it's clearer to specify what is meant by "bool" (Even if the enum member name isn't clear it's documentation summary is really clear on what it is) |
Clear now, thanks!!! |
public enum TOKEN_INFORMATION_CLASS | ||
{ | ||
TokenUser = 1, | ||
TokenGroups, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double-checking that naturally occurring +1's for each of these values coincide with their native equivalents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For once it's actually defined as a real enum in native code : https://msdn.microsoft.com/en-us/library/windows/desktop/aa379626(v=vs.85).aspx with the same value generation
LGTM, after comments |
…mpilers.Toolset-3.7.0 Bump Microsoft.Net.Compilers.Toolset from 3.6.0 to 3.7.0
Added :
AdvApi32.OpenProcessToken
AdvApi32.GetTokenInformation
AdvApi32.QueryServiceObjectSecurity
AdvApi32.SetServiceObjectSecurity
Kernel32.GetConsoleWindow
Kernel32.LoadLibrary
Kernel32.FreeLibrary