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 "SECURITY_ATTRIBUTES" in [All]

Structures

.
Summary
The SECURITY_ATTRIBUTES structure contains the security descriptor for an object and specifies whether the handle retrieved by specifying this structure is inheritable. This structure provides security settings for objects created by various functions, such as CreateFile, CreatePipe, CreateProcess, or RegCreateKeyEx.
.

public struct SECURITY_ATTRIBUTES

.

public struct SECURITY_ATTRIBUTES

.

Structure SECURITY_ATTRIBUTES

.

    public struct SECURITY_ATTRIBUTES

.

        static extern bool CreateDirectory(string lpPathName, SECURITY_ATTRIBUTES lpSecurityAttributes);        

.

            SECURITY_ATTRIBUTES lpSecurityAttributes = new SECURITY_ATTRIBUTES();

.
Documentation
[SECURITY_ATTRIBUTES] on MSDN
.

        /// WLAN_SECURITY_ATTRIBUTES->_WLAN_SECURITY_ATTRIBUTES

.

        public WLAN_SECURITY_ATTRIBUTES wlanSecurityAttributes;

.

     ''' WLAN_SECURITY_ATTRIBUTES->_WLAN_SECURITY_ATTRIBUTES

.

     Public wlanSecurityAttributes As WLAN_SECURITY_ATTRIBUTES

.

WLAN_SECURITY_ATTRIBUTES

.

        public struct WLAN_SECURITY_ATTRIBUTES

.

     Public Structure WLAN_SECURITY_ATTRIBUTES

.
Documentation
[WLAN_SECURITY_ATTRIBUTES] on MSDN

advapi32

.

    ref SECURITY_ATTRIBUTES lpProcessAttributes,

.

    ref SECURITY_ATTRIBUTES lpThreadAttributes,

.

    ByRef lpProcessAttributes as SECURITY_ATTRIBUTES, _

.

    ByRef lpThreadAttributes as SECURITY_ATTRIBUTES, _

.

SECURITY_ATTRIBUTES

.

     SECURITY_ATTRIBUTES saProcessAttributes = new SECURITY_ATTRIBUTES();

.

     SECURITY_ATTRIBUTES saThreadAttributes = new SECURITY_ATTRIBUTES();    

.

     Dim saProcessAttributes as SECURITY_ATTRIBUTES = new SECURITY_ATTRIBUTES

.

     Dim saThreadAttributes as SECURITY_ATTRIBUTES = new SECURITY_ATTRIBUTES  

.

    ref SECURITY_ATTRIBUTES lpTokenAttributes,

.

    ByRef lpThreadAttributes As SECURITY_ATTRIBUTES, _

.

SECURITY_ATTRIBUTES

.

            ref SECURITY_ATTRIBUTES lpSecurityAttributes,

.

        ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, _

Interfaces

.

    public struct SECURITY_ATTRIBUTES

.

        public SECURITY_ATTRIBUTES securityAttributes;

rapi

.

public struct SECURITY_ATTRIBUTES

user32

.

                    [MarshalAs(UnmanagedType.LPStruct)] SECURITY_ATTRIBUTES attributes);

.

                           ByVal accessMask As ACCESS_MASK, ByVal attributes As SECURITY_ATTRIBUTES) As IntPtr

.

SECURITY_ATTRIBUTES

.

    static extern IntPtr CreateDesktop(..., [In] ref SECURITY_ATTRIBUTES lpsa);

.

    [MarshalAs(UnmanagedType.LPStruct)] SECURITY_ATTRIBUTES attributes);

.

static extern TODO CreateDesktopA(string lpszDesktop, string lpszDevice, DEVMODEA *pDevmode, int dwFlags, ACCESS_MASK dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa);

kernel32

.

//If the value of SECURITY_ATTRIBUTES is NULL, the object is assigned the default security descriptor associated with the access token of the calling process

.

internal static extern bool CreateDirectory(String path, SECURITY_ATTRIBUTES lpSecurityAttributes);

.

SECURITY_ATTRIBUTES C#:

.

    public class SECURITY_ATTRIBUTES

.

    var lpSecurityAttributes = new SECURITY_ATTRIBUTES();

.

     IntPtr securityAttributes, // optional SECURITY_ATTRIBUTES struct or IntPtr.Zero

.

   /// and flags with FILE_ATTRIBUTE_ARCHIVE, but does not set the security descriptor that the SECURITY_ATTRIBUTES structure specifies.

.

        IntPtr securityAttributes, // optional SECURITY_ATTRIBUTES structure can be passed

.

static extern IntPtr CreateJobObject([In] ref SECURITY_ATTRIBUTES

.

Private Shared Function CreateJobObject(lpJobAttributes As SECURITY_ATTRIBUTES, lpName As String) As IntPtr

.

SECURITY_ATTRIBUTES

.

        public struct SECURITY_ATTRIBUTES

.

                    Native.SECURITY_ATTRIBUTES secAttribs = new Native.SECURITY_ATTRIBUTES();

.

http://codemortem.blogspot.com/2006/01/creating-null-dacl-in-managed-code.html - Blog post on how to populate the SECURITY_ATTRIBUTES structure from managed code.

.

   ref SECURITY_ATTRIBUTES lpPipeAttributes, uint nSize);

.

   ref SECURITY_ATTRIBUTES lpProcessAttributes,

.

   ref SECURITY_ATTRIBUTES lpThreadAttributes,

.

    ByRef lpProcessAttributes As SECURITY_ATTRIBUTES, _

.

    ByRef lpThreadAttributes As SECURITY_ATTRIBUTES, _

.

    ref lpProcessAttributes as SECURITY_ATTRIBUTES,

.

    ref lpThreadAttributes as SECURITY_ATTRIBUTES,

.

struct SECURITY_ATTRIBUTES:

.

     SECURITY_ATTRIBUTES pSec = new SECURITY_ATTRIBUTES();

.

     SECURITY_ATTRIBUTES tSec = new SECURITY_ATTRIBUTES();

.

     Dim pSec As SECURITY_ATTRIBUTES  = New SECURITY_ATTRIBUTES()

.

     Dim tSec As SECURITY_ATTRIBUTES = New SECURITY_ATTRIBUTES()

.

static extern IntPtr CreateThread([In] ref SECURITY_ATTRIBUTES

.

SECURITY_ATTRIBUTES

.

    //IntPtr.Zero - According to MSDN - "bInheritHandle member of the SECURITY_ATTRIBUTES structure must


 
Access PInvoke.net directly from VS: