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
Download Visual Studio Add-In

Search Results for "ACEs" in [All]

odbccp32

.

When constructing the attrubute strings be sure to put quotes around the file name. Otherwise, if there are spaces in the file name the function call will fail.

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,gdiplus,Constants,Delegates,Enums,Interfaces,Structures

winmm

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,Constants,Delegates,Enums,Interfaces,Structures

userenv

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,comctl32,cfgmgr32,hlink,ipaqutil,quickusb,Constants,Delegates,Enums,Interfaces,Structures

httpapi

.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,avifil32,crypt32,winscard,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,Constants,Delegates,Enums,Interfaces,Structures

mpr

.
Import
advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,credui,netapi32,uxtheme,Constants,Delegates,Enums,Interfaces,Structures

oleaut32

.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,avifil32,crypt32,winscard,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,Constants,Delegates,Enums,Interfaces,Structures

winhttp

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,Constants,Delegates,Enums,Interfaces,Structures

shlwapi

.
Summary
PathQuoteSpaces - Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks.
.

/// Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks.

.

/// <returns>TRUE if spaces were found; otherwise, FALSE.</returns>

.

[DllImport("shlwapi.dll", EntryPoint = "PathQuoteSpacesW",  SetLastError = True, CharSet = CharSet.Unicode)]

.

static extern bool PathQuoteSpaces([MarshalAs(UnmanagedType.LPTStr)]System.Text.StringBuilder lpsz);

.

''' Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks.

.

''' <returns>TRUE if spaces were found; otherwise, FALSE.</returns>

.

<DllImport("shlwapi.dll", EntryPoint:="PathQuoteSpacesW",  SetLastError:=True, CharSet:=CharSet.Unicode)> _

.

Public Function PathQuoteSpaces(<MarshalAs(UnmanagedType.LPTStr)>lpsz As System.Text.StringBuilder) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Public Declare Sub PathQuoteSpaces Lib "shlwapi" Alias "PathQuoteSpacesA" _

.
Documentation
[PathQuoteSpaces] on MSDN
.

/// Removes all leading and trailing spaces from a string.

.

/// <param name="pszPath">A pointer to a null-terminated string of length MAX_PATH from which to strip all leading and trailing spaces.</param>

.

''' Removes all leading and trailing spaces from a string.

.

''' <param name="pszPath">A pointer to a null-terminated string of length MAX_PATH from which to strip all leading and trailing spaces.</param>

.
Summary
PathRenameExtension - Replaces the extension of a file name with a new extension. If the file name does not contain an extension, the extension will be attached to the end of the string.
.

/// Replaces the extension of a file name with a new extension. If the file name does not contain an extension, the extension will be attached to the end of the string.

.

''' Replaces the extension of a file name with a new extension. If the file name does not contain an extension, the extension will be attached to the end of the string.

.
Summary
Takes a fully qualified path, and replaces folder names with their associated environment strings.
.
Summary
PathUnQuoteSpaces - Removes quotes from the beginning and end of a path
.

[DllImport("shlwapi.dll", EntryPoint = "PathUnQuoteSpacesW",  SetLastError = True, CharSet= CharSet.Unicode)]

.

static extern void PathUnQuoteSpaces([MarshalAs(UnmanagedType.LPTStr)]System.Text.StringBuilder lpsz);

.

<DllImport("shlwapi.dll", EntryPoint:="PathUnQuoteSpacesW",  SetLastError:=True, CharSet:=CharSet.Unicode)> _

.

Public Sub PathUnQuoteSpaces(<MarshalAs(UnmanagedType.LPTStr)>lpsz As System.Text.StringBuilder)

.

Public Declare Sub PathUnquoteSpaces Lib "shlwapi" Alias "PathUnquoteSpacesA" _

.
Documentation
[PathUnQuoteSpaces] on MSDN
.

Raymond Chen, a popular Microsoft blogger, recommends that you not worry about leaving keys because it's per-user data anyway and in many environments it's preferable to leave it behind. Definitely do not try to enumerate all user profiles to remove the keys for the other users because in the case of roaming profiles you'll likely corrupt a lot of stuff. If you want to remove all traces of your program, one alternative is to write your own SHMessageBoxCheck dialog and store the preference wherever you want. Source: http://blogs.msdn.com/oldnewthing/archive/2007/09/17/4948130.aspx

.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,avifil32,crypt32,winscard,secur32,wtsapi32,winspool,oleacc,rapi,Constants,Delegates,Enums,Interfaces,Structures

shell32

16: CSIDL
.

            CSIDL_NETWORK           = 0x0012,    // Network Neighborhood (My Network Places)

17: CSIDL
.

        /// A file system directory containing the link objects that may exist in the My Network Places virtual folder.

.

        CSIDL_NETWORK       = 0x0012,    // Network Neighborhood (My Network Places)

.
Import
credui,advapi32,gdi32,kernel32,ole32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,Constants,Delegates,Enums,Interfaces,Structures

dtl

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,Constants,Delegates,Enums,Interfaces,Structures

fwpuclnt

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,Constants,Delegates,Enums,Interfaces,Structures

rapi

.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,avifil32,crypt32,winscard,secur32,wtsapi32,shlwapi,winspool,oleacc,Constants,Delegates,Enums,Interfaces,Structures

hlink

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,comctl32,cfgmgr32,Constants,Delegates,Enums,Interfaces,Structures

user32

.
Summary
Places the given window in the system-maintained clipboard format listener list.
.

    Dim i, numberOfInterfaces as Integer

.

    numberOfInterfaces = i

.

    For i = 0 to numberOfInterfaces - 1

.

//note that for this to work you will need to change the signature from 'int nIndex' to 'GWL nIndex' in all three places

.

//note that for this to work you will need to change the signature from 'int nIndex' to 'GWL nIndex' in all three places

.

' Purpose: stript the string from non-letter characters and replace by spaces

.

// Runs notepad and places it's window into form.

.

/// The SetProp function adds a new entry or changes an existing entry in the property list of the specified window. The function adds a new entry to the list if the specified character string does not exist already in the list. The new entry contains the string and the handle. Otherwise, the function replaces the string's current handle with the specified handle.

.

    ///         Places the window at the bottom of the Z order. If the hWnd parameter identifies a topmost

.

    ///         Places the window above all non-topmost windows (that is, behind all topmost windows). This

.

    ///         <term>HWND_TOP ((HWND)0)</term><description>Places the window at the top of the Z order.</description>

.

    ///         Places the window above all non-topmost windows. The window maintains its topmost position

.

        ///     Places the window at the top of the Z order.

.

        ///     Places the window at the bottom of the Z order. If the hWnd parameter identifies a topmost window, the window loses its topmost status and is placed at the bottom of all other windows.

.

        ///     Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated.

.

        ///     Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window.

.

    private const int LF_FACESIZE = 32;

.

        /// than <see cref="LF_FACESIZE"/> including the terminating '\0'.

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst=LF_FACESIZE)]

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,Constants,Delegates,Enums,Interfaces,Structures

Constants

.

const int INTERFACESAFE_FOR_UNTRUSTED_CALLER = 0x00000001;

.

const int INTERFACESAFE_FOR_UNTRUSTED_DATA = 0x00000002;

36: LR_
.

    /// Retrieves the color value of the first pixel in the image and replaces the corresponding entry in the color table

.

    /// Searches the color table for the image and replaces the following shades of gray with the corresponding 3-D color: Color Replaced with

.

    ''' Retrieves the color value of the first pixel in the image and replaces the corresponding entry in the color table

.

    ''' Searches the color table for the image and replaces the following shades of gray with the corresponding 3-D color: Color Replaced with

.

    public static PropertyKey WPD_COMMAND_CLASS_EXTENSION_REGISTER_SERVICE_INTERFACES = new PropertyKey(0x7F0779B5, 0xFA2B, 0x4766, 0x9C, 0xB2, 0xF7, 0x3B, 0xA3, 0x0B, 0x67, 0x58, 2);

.

    public static PropertyKey WPD_COMMAND_CLASS_EXTENSION_UNREGISTER_SERVICE_INTERFACES = new PropertyKey(0x7F0779B5, 0xFA2B, 0x4766, 0x9C, 0xB2, 0xF7, 0x3B, 0xA3, 0x0B, 0x67, 0x58, 3);

.

    public static PropertyKey WPD_PROPERTY_CLASS_EXTENSION_SERVICE_INTERFACES = new PropertyKey(0x7F0779B5, 0xFA2B, 0x4766, 0x9C, 0xB2, 0xF7, 0x3B, 0xA3, 0x0B, 0x67, 0x58, 1002);

.

    public enum ColorSpaces

.

FSCTL constants are found in WinIoCtl.h, using CTL_CODE()function to Logical OR together FILE_DEVICE_FILE_SYSTEM (9) shifted left 16 places;

.

a given function number shifted left 2 places;

.

along with FILE_ANY_ACCESS or FILE_SPECIAL_ACCESS (both are 0) or FILE_READ_ACCESS (1), FILE_WRITE_ACCESS (2) (both are also defined in ntioapi.h as FILE_READ_DATA and FILE_WRITE_DATA), or the pair Logically ORed with one another shifted left 14 places.

.

        /// No interfaces have been exported.

.

        /// No interfaces have been registered.

.

        public const int RPC_S_NO_INTERFACES = 1817;

.

        /// Not all the requested interfaces were available

.

        public const int CO_S_NOTALLINTERFACES = 0x00080012;

.

        /// A call control interfaces was called with invalid data.

.

        /// Security must be initialized before any interfaces are marshalled or unmarshalled. It cannot be changed once initialized.

.

        /// The number of ACEs in an ACL exceeds the system limit.

.

        /// Not all the DENY_ACCESS ACEs are arranged in front of the GRANT_ACCESS ACEs in the stream.

.

        public const int CO_E_ACESINWRONGORDER = (int)(0x8001013A - 0x100000000);

.

        public const int COMQC_E_NO_QUEUEABLE_INTERFACES = (int)(0x80110601 - 0x100000000);

40: WM
.
WM_MDIMAXIMIZE 0x225 An application sends the WM_MDIMAXIMIZE message to a multiple-document interface (MDI) client window to maximize an MDI child window. The system resizes the child window to make its client area fill the client window. The system places the child window's window menu icon in the rightmost position of the frame window's menu bar, and places the child window's restore icon in the leftmost position. The system also appends the title bar text of the child window to that of the frame window.
.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,avifil32,crypt32,winscard,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,gdiplus,msdrm,odbccp32,gsapi,ws2_32,Delegates,Enums,Interfaces,Structures

icmp

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

ntdll

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

wer

.
Import
advapi32,credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,aygshell,avifil32,crypt32,winscard,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,Constants,Delegates,Enums,Interfaces,Structures

xolehlp

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,Constants,Delegates,Enums,Interfaces,Structures

powrprof

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,Constants,Delegates,Enums,Interfaces,Structures

advapi32

47: AddAce
.
Summary
The AddAce function adds one or more access control entries (ACEs) to a specified access control list (ACL).
48: GetAce
.

        public short AceSize;

.

    ' Get an array of ACEs

.

Set dwAclRevision to ACL_REVISION_DS if the access control list supports object-specific ACEs, otherwise use ACL_REVISION.

.
Import
credui,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,Constants,Delegates,Enums,Interfaces,Structures

dhcpsapi

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,Constants,Delegates,Enums,Interfaces,Structures

iphlpapi

.

        // Search in all network interfaces that support IPv4.

.

        NetworkInterface ipv4Interface = (from thisInterface in NetworkInterface.GetAllNetworkInterfaces()

.

        // Search in all network interfaces that support IPv6.

.

        NetworkInterface ipv6Interface = (from thisInterface in NetworkInterface.GetAllNetworkInterfaces()

.

System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()

.

    /// <param name="pbPacket">[in] Pointer to a network packet to test with the specified interface (or interfaces).</param>

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,glu32,mapi32,Constants,Delegates,Enums,Interfaces,Structures

ntdsapi

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,Constants,Delegates,Enums,Interfaces,Structures

hhctrl

.
Import
credui,advapi32,gdi32,kernel32,ole32,shell32,user32,glossary,coredll,rasapi32,mpr,netapi32,uxtheme,avifil32,aygshell,winscard,crypt32,secur32,wtsapi32,shlwapi,winspool,oleacc,rapi,oleaut32,winfax,odbc32,msi,cards,powrprof,urlmon,xolehlp,twain_32,winmm,wininet,comdlg32,imm32,ntdsapi,odbccp32,iprop,Constants,Delegates,Enums,Interfaces,Structures

netapi32

.

    ''' For more information, see Security Requirements for the Network Management Functions. For more information on ACLs and ACEs, see Access Control Model.

.
Summary
The NetQueryDisplayInformation function returns user account, computer, or group account information. Call this function to quickly enumerate account information for display in user interfaces.

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: