Desktop Functions: Smart Device Functions:
|
Search Results for "LsaOpenPolicy" in [All]advapi32
' setup the parameters for the LsaOpenPolicy API
ret = LsaOpenPolicy(SystemName, ObjectAttr, Access, Policy) See LsaOpenPolicy 2: LsaClose See LsaOpenPolicy
internal static extern uint LsaOpenPolicy(
uint ret = Win32Sec.LsaOpenPolicy(system, ref lsaAttr,
' setup the parameters for the LsaOpenPolicy API
ret = LsaOpenPolicy(SystemName, ObjectAttr, Access, Policy)
internal static extern uint LsaOpenPolicy(
uint ret = Win32Sec.LsaOpenPolicy(system, ref lsaAttr, (int)Access.POLICY_ALL_ACCESS, out lsaHandle); See LsaOpenPolicy
static extern uint LsaOpenPolicy(
Declare Unicode Function LsaOpenPolicy Lib "advapi32.dll" ( _ From the SDK: The LsaOpenPolicy function opens a handle to the Policy object on a local or remote system. To administer the local security policy of a local or remote system, you must call the LsaOpenPolicy function to establish a session with that system's LSA subsystem. LsaOpenPolicy connects to the LSA of the target system and returns a handle to the Policy object of that system. You can use this handle in subsequent LSA function calls to administer the local security policy information of the target system.
//these attributes are not used, but LsaOpenPolicy wants them to exists
uint aOpenPolicyResult = LsaOpenPolicy(ref aSystemName, ref aObjectAttributes, aAccess, out aPolicyHandle);
//these attributes are not used, but LsaOpenPolicy wants them to exist
UInt32 resultPolicy = LsaOpenPolicy(ref systemName, ref ObjectAttributes, (int)access, out policy);
private static extern UInt32 LsaOpenPolicy(
' setup the parameters for the LsaOpenPolicy API
ret = LsaOpenPolicy(SystemName, ObjectAttr, Access, Policy)
' setup the parameters for the LsaOpenPolicy API
ret = LsaOpenPolicy(SystemName, ObjectAttr, Access, Policy) See LsaOpenPolicy for the custom marshaler and some more info on it.
private static extern uint LsaOpenPolicy(
uint ntsResult = LsaOpenPolicy(ref this.localsystem, ref this.objectAttributes, (uint)access, out LsaPolicyHandle);
throw new Exception("LsaOpenPolicy failed: " + winErrorCode); StructuresSee LsaOpenPolicy for usage. netapi32
uint aOpenPolicyResult = LsaOpenPolicy(ref aSystemName, ref aObjectAttributes, aAccess, out aPolicyHandle); |