| 
            
              WindowsApiLsaAddAccountRights Method
             | 
          
        
        
            Win32 LsaAddAccountRights function.
            
        
        Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax[DllImportAttribute("advapi32.dll", SetLastError = true)]
public static uint LsaAddAccountRights(
	IntPtr PolicyHandle,
	IntPtr AccountSid,
	WindowsApiLSA_UNICODE_STRING[] UserRights,
	uint CountOfRights
)<DllImportAttribute("advapi32.dll", SetLastError := true>]
Public Shared Function LsaAddAccountRights ( 
	PolicyHandle As IntPtr,
	AccountSid As IntPtr,
	UserRights As WindowsApiLSA_UNICODE_STRING(),
	CountOfRights As UInteger
) As UIntegerpublic:
[DllImportAttribute(L"advapi32.dll", SetLastError = true)]
static unsigned int LsaAddAccountRights(
	IntPtr PolicyHandle, 
	IntPtr AccountSid, 
	array<WindowsApiLSA_UNICODE_STRING>^ UserRights, 
	unsigned int CountOfRights
)
[<DllImportAttribute("advapi32.dll", SetLastError = true)>]
static member LsaAddAccountRights : 
        PolicyHandle : IntPtr * 
        AccountSid : IntPtr * 
        UserRights : WindowsApiLSA_UNICODE_STRING[] * 
        CountOfRights : uint32 -> uint32 GSF.Interop.WindowsApi.LsaAddAccountRights = function(PolicyHandle, AccountSid, UserRights, CountOfRights);
 View SourceParameters
- PolicyHandle  IntPtr
 -  
 - AccountSid  IntPtr
 -  
 - UserRights  WindowsApiLSA_UNICODE_STRING
 -  
 - CountOfRights  UInt32
 -  
 
Return Value
UInt32
See Also