Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "LsaOpenPolicy" in [All]

advapi32

.

    ' setup the parameters for the LsaOpenPolicy API

.

    ret = LsaOpenPolicy(SystemName, ObjectAttr, Access, Policy)

.

See LsaOpenPolicy

.

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

.
Summary
The LsaOpenPolicy function opens a handle to the Policy object on a local or remote system.
.

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)

.
Documentation
[LsaOpenPolicy] on MSDN
.

    ' 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);

netapi32

.

        uint aOpenPolicyResult = LsaOpenPolicy(ref aSystemName, ref aObjectAttributes, aAccess, out aPolicyHandle);

Structures

.

See LsaOpenPolicy for usage.


 
Access PInvoke.net directly from VS: