Reformatting

pull/250/head
dahall 2021-10-07 15:19:18 -06:00
parent cc495e80f5
commit 2157b5feaf
1 changed files with 5 additions and 10 deletions

View File

@ -214,10 +214,8 @@ namespace Vanara.PInvoke
internal static extern IntPtr InternalGetSidIdentifierAuthority(PSID pSid); internal static extern IntPtr InternalGetSidIdentifierAuthority(PSID pSid);
/// <summary> /// <summary>
/// <para> /// The <c>GetSidIdentifierAuthority</c> function returns a pointer to the SID_IDENTIFIER_AUTHORITY structure in a specified
/// The <c>GetSidIdentifierAuthority</c> function returns a pointer to the SID_IDENTIFIER_AUTHORITY structure in a specified security /// security identifier (SID).
/// identifier (SID).
/// </para>
/// </summary> /// </summary>
/// <param name="pSid"> /// <param name="pSid">
/// <para>A pointer to the SID structure for which a pointer to the SID_IDENTIFIER_AUTHORITY structure is returned.</para> /// <para>A pointer to the SID structure for which a pointer to the SID_IDENTIFIER_AUTHORITY structure is returned.</para>
@ -231,20 +229,17 @@ namespace Vanara.PInvoke
/// If the function succeeds, the return value is a pointer to the SID_IDENTIFIER_AUTHORITY structure for the specified SID structure. /// If the function succeeds, the return value is a pointer to the SID_IDENTIFIER_AUTHORITY structure for the specified SID structure.
/// </para> /// </para>
/// <para> /// <para>
/// If the function fails, the return value is undefined. The function fails if the SID structure pointed to by the pSid parameter is /// If the function fails, the return value is undefined. The function fails if the SID structure pointed to by the pSid parameter
/// not valid. To get extended error information, call GetLastError. /// is not valid. To get extended error information, call GetLastError.
/// </para> /// </para>
/// </returns> /// </returns>
/// <remarks> /// <remarks>
/// <para>
/// This function uses a 32-bit RID value. For applications that require a larger RID value, use CreateWellKnownSid and related functions. /// This function uses a 32-bit RID value. For applications that require a larger RID value, use CreateWellKnownSid and related functions.
/// </para>
/// </remarks> /// </remarks>
// https://docs.microsoft.com/en-us/windows/desktop/api/securitybaseapi/nf-securitybaseapi-getsididentifierauthority // https://docs.microsoft.com/en-us/windows/desktop/api/securitybaseapi/nf-securitybaseapi-getsididentifierauthority
// PSID_IDENTIFIER_AUTHORITY GetSidIdentifierAuthority( PSID pSid ); // PSID_IDENTIFIER_AUTHORITY GetSidIdentifierAuthority( PSID pSid );
[PInvokeData("securitybaseapi.h", MSDNShortId = "67a06e7b-775f-424c-ab36-0fc9b93b801a")] [PInvokeData("securitybaseapi.h", MSDNShortId = "67a06e7b-775f-424c-ab36-0fc9b93b801a")]
public static PSID_IDENTIFIER_AUTHORITY GetSidIdentifierAuthority(PSID pSid) => public static PSID_IDENTIFIER_AUTHORITY GetSidIdentifierAuthority(PSID pSid) => new(InternalGetSidIdentifierAuthority(pSid));
new PSID_IDENTIFIER_AUTHORITY(InternalGetSidIdentifierAuthority(pSid));
/// <summary> /// <summary>
/// <para> /// <para>