Desktop Functions: Smart Device Functions:
|
Search Results for "ACEs" in [All]odbccp32When 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. winmmuserenvhttpapimproleaut32winhttpshlwapi
/// 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" _ 10: PathRemoveBlanks
/// 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>
/// 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.
[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" _ 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 shell3216: 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) dtlfwpuclntrapihlinkuser32
Dim i, numberOfInterfaces as Integer
numberOfInterfaces = i
For i = 0 to numberOfInterfaces - 1 26: GetWindowLong
//note that for this to work you will need to change the signature from 'int nIndex' to 'GWL nIndex' in all three places 27: GetWindowLongPtr
//note that for this to work you will need to change the signature from 'int nIndex' to 'GWL nIndex' in all three places 28: IsCharAlpha ' Purpose: stript the string from non-letter characters and replace by spaces 29: SetParent
// Runs notepad and places it's window into form. 30: SetProp
/// 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. 31: SetWindowPos
/// 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)] Constantsconst 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 37: PROPERTYKEY
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 38: WINBASE
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. 39: WINERROR
/// 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
icmpntdllwerxolehlppowrprofadvapi3247: AddAce 48: GetAce
public short AceSize;
' Get an array of ACEs 50: InitializeAcl Set dwAclRevision to ACL_REVISION_DS if the access control list supports object-specific ACEs, otherwise use ACL_REVISION. dhcpsapiiphlpapi53: GetBestInterface
// 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() 54: GetIfTable System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces() 55: PfTestPacket
/// <param name="pbPacket">[in] Pointer to a network packet to test with the specified interface (or interfaces).</param> ntdsapihhctrlnetapi32
''' For more information, see Security Requirements for the Network Management Functions. For more information on ACLs and ACEs, see Access Control Model. Cut off search results after 60. Please refine your search. |