Desktop Functions: Smart Device Functions:
|
Search Results for "RECT" in [All]ntdll1: NtCreateFile
public IntPtr RootDirectory;
objAttributes.RootDirectory = _RootHandle;
public static extern int NtOpenDirectoryObject(
out SafeFileHandle DirectoryHandle,
var st = Win32.NtOpenDirectoryObject(
st = Win32.NtQueryDirectoryObject(h, buf, bufsz,
var odi = (OBJECT_DIRECTORY_INFORMATION)
Marshal.PtrToStructure(buf, typeof(OBJECT_DIRECTORY_INFORMATION));
FileDirectoryInformation = 1
FileFullDirectoryInformation
FileBothDirectoryInformation
FileIdBothDirectoryInformation
FileIdFullDirectoryInformation
FileDirectoryInformation = 1, // 1
FileFullDirectoryInformation, // 2
FileBothDirectoryInformation, // 3
FileIdBothDirectoryInformation, // 37
FileIdFullDirectoryInformation, // 38
FileDirectoryInformation = 1, // 1
FileFullDirectoryInformation, // 2
FileBothDirectoryInformation, // 3
FileIdBothDirectoryInformation, // 37
FileIdFullDirectoryInformation, // 38
FileAttributes.Directory,
// make the call, passing the correct SubAuthority count ntdsapi7: DsCrackNames The success of the name conversion request depends on where the client is bound. Clients bind to specific instances of the directory service using some variant of DsBind. If bound to a global catalog, the scope of the name mapping is the entire forest. If not bound to a global catalog, the scope of the name mapping is the domain not covered by a global catalog for that domain controller. If not bound to a global catalog and a name is not found, but the input name unambiguously identifies its domain and this domain is in the forest, then the return data identifies the DNS domain name for the domain of interest. Clients are expected to use this data to bind to the correct domain controller or global catalog and call DsCrackNames again with the new bind handle. System.DirectoryServices.ActiveDirectory. 9: DsUnBind Interfaces10: IActiveDesktop Add StaThread attribute to main application, for correct functionality 11: IADs 12: IAutoComplete2
/// direction as the text in its parent window. If
/// direction from the text in the parent window.</summary>
// hence the read goes directly to e.g. socket
,BINDF_DIRECT_READ = 0x00020000
,BINDSTATUS_REDIRECTING
,BINDSTATUS_DIRECTBIND
INET_E_REDIRECT_FAILED = 0x800C0014,//INET_E_REDIRECTING
INET_E_REDIRECT_TO_DIR = 0x800C0015,
string destdir=Path.GetDirectoryName(this.LocalPath);
if(!Directory.Exists(destdir))
Directory.CreateDirectory(destdir);
case HRESULTS.INET_E_REDIRECT_FAILED:
Description = "Redirect Failed.";break;
case HRESULTS.INET_E_REDIRECT_TO_DIR:
Description = "Redirect To Dir.";break; 14: IDataObject
IEnumFORMATETC EnumFormatEtc(DATADIR direction); 15: IDeskBand
int ResizeBorderDW(ref RECT rcBorder, [In, MarshalAs(UnmanagedType.IUnknown)] ref object punkToolbarSite, [MarshalAs(UnmanagedType.Bool)] bool fReserved);
BandObjectSite = DirectCast(pUnkSite, IInputObjectSite)
Explorer = DirectCast(Marshal.CreateWrapperOfType(TryCast(w, IWebBrowser), GetType(WebBrowserClass)), WebBrowserClass)
Dim boa As BandObjectAttribute() = DirectCast(t.GetCustomAttributes(GetType(BandObjectAttribute), False), BandObjectAttribute())
Dim boa As BandObjectAttribute() = DirectCast(t.GetCustomAttributes(GetType(BandObjectAttribute), False), BandObjectAttribute()) 16: IDeskBand2
int ResizeBorderDW(ref RECT rcBorder, [In, MarshalAs(UnmanagedType.IUnknown)] ref object punkToolbarSite, [MarshalAs(UnmanagedType.Bool)] bool fReserved);
BandObjectSite = DirectCast(pUnkSite, IInputObjectSite)
Explorer = DirectCast(Marshal.CreateWrapperOfType(TryCast(w, IWebBrowser), GetType(WebBrowserClass)), WebBrowserClass)
Dim boa As BandObjectAttribute() = DirectCast(t.GetCustomAttributes(GetType(BandObjectAttribute), False), BandObjectAttribute())
Dim boa As BandObjectAttribute() = DirectCast(t.GetCustomAttributes(GetType(BandObjectAttribute), False), BandObjectAttribute()) 17: IDocHostShowUI The original definition on this page marshalled the strings as UnmanagedType.BStr which I think was incorrect since the underlying type is LPOLESTR. I experienced heap corruption and instability. ShowMessage also did not appear to be called reliably. 18: IKnownFolder
void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags,
void Redirect ( [In] ref Guid rfid, [In] IntPtr hwnd, [In] uint Flags,
/// <param name="szAppBase">[in] The root directory in which to search for the given assembly. If this value is set to null, <c>FindAssembliesByName</c> will look only in the global assembly cache for the assembly.</param>
/// <param name="szPrivateBin">[in] A list of semicolon-delimited subdirectories (for example, "bin;bin2"), under the root directory, in which to search for the assembly. These directories are probed in addition to those specified in the default probing rules.</param> 21: IObjectWithSite
/// Often, an object needs to communicate directly with a container site that is managing the
/// Defines the directions a table can have
public struct TableDirectionValues
public const string NODIRECTION = "none";
//set initial directory the my documents folder
openDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);
openDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);
openDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);
saveFileDialog.InitialDirectory = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);
/// Sets/Gets the search direction
public int FindReplaceOptionSearchDirection
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetFindReplaceOptionSearchDirection),typeof(int)),CultureInfo.CurrentCulture
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetFindReplaceOptionSearchDirection, value));
#region Table Direction
/// Sets/Gets the direction of the table
/// <return type=string>value of direction ("LTR" (Left To Right) or "RTL" (Right To Left))</return>
public string TableDirection
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetTableDirection),typeof(string)),CultureInfo.CurrentCulture
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTableDirection, value));
/// Gets the number of suggested corrections
/// Corrects the misspelled word
/// <param name="correct">correction of the misspelled word</param>
public void CorrectMisspelledWord(string misspelled, string correct)
if (!String.IsNullOrEmpty(misspelled) && !String.IsNullOrEmpty(correct))
object[] vaIn = { misspelled, correct };
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.CorrectMisspelledWord, vaIn));
throw new InvalidDataException("The misspelled word and the corrected word cannot be null or empty");
/// Corrects all the occurences of this misspelled word
/// <param name="misspelled">the word to correct</param>
/// <param name="correct">correction of the misspelled word</param>
public void CorrectAllOfMisspelledWord(string misspelled, string correct)
if (!String.IsNullOrEmpty(misspelled) && !String.IsNullOrEmpty(correct))
object[] vaIn = { misspelled, correct };
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.CorrectAllOfMisspelledWord, vaIn));
throw new InvalidDataException("The misspelled word and the corrected word cannot be null or empty");
#region Form Direction
/// Checks if the current direction of the form is left to right
public bool IsFormDirectionLeftToRight
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IsFormDirectionLeftToRight),typeof(uint)),CultureInfo.CurrentCulture
/// Checks if the current direction of the form is right to left
public bool IsFormDirectionRightToLeft
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.IsFormDirectionRightToLeft),typeof(uint)),CultureInfo.CurrentCulture
#region Text Direction
/// Sets the direction of the text to be the default direction
public void SetTextDirectionDefault()
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTextDirectionDefault));
/// Sets the direction of the text to be left to right
public void SetTextDirectionLeftToRight()
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTextDirectionLeftToRight));
/// Sets the direction of the text to be right to left
public void SetTextDirectionRightToLeft()
ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetTextDirectionRightToLeft)); 23: IOleObject
void DoVerb(uint iVerb, uint lpmsg, object pActiveSite, uint lindex, uint hwndParent, uint lprcPosRect); 24: IServiceProvider The IServiceProvider defined here is different with "System.IServiceProvider". To remove name collisition, rename "IServiceProvider" to other name such as "UCOMIServiceProvider". Otherwise, you should use fully qualified namespace to the interface since you will normally use "using System" directive. 25: IShellLinkA
/// <summary>Retrieves the name of the working directory for a Shell link object</summary>
void GetWorkingDirectory([Out(), MarshalAs(UnmanagedType.LPStr)] StringBuilder pszDir, int cchMaxPath);
/// <summary>Sets the name of the working directory for a Shell link object</summary>
void SetWorkingDirectory([MarshalAs(UnmanagedType.LPStr)] string pszDir);
'[helpstring("Retrieves the name of the shell link working directory")]
Sub GetWorkingDirectory(<Out(), MarshalAs(UnmanagedType.LPStr)> ByVal pszDir As StringBuilder, ByVal cchMaxPath As Integer)
'[helpstring("Sets the name of the shell link working directory")]
Sub SetWorkingDirectory(<MarshalAs(UnmanagedType.LPStr)> ByVal pszDir As String) 26: IShellLinkW
/// <summary>Retrieves the name of the working directory for a Shell link object</summary>
void GetWorkingDirectory([Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszDir, int cchMaxPath);
/// <summary>Sets the name of the working directory for a Shell link object</summary>
void SetWorkingDirectory([MarshalAs(UnmanagedType.LPWStr)] string pszDir);
''' <summary>Retrieves the name of the working directory for a Shell link object</summary>
<PreserveSig()> Function GetWorkingDirectory( _
''' <summary>Sets the name of the working directory for a Shell link object</summary>
<PreserveSig()> Function SetWorkingDirectory( _ 27: IShellView
[In, Out] ref RECT prcView,
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix"), Flags] 28: IShellView3
[In, Out] ref RECT prcView, 29: ITrayDeskband Guid {E6442437-6C68-4f52-94DD-2CFED267EFB9} leads to the correct TrayDeskband object. 30: IUnknown It is usually not necessary to call IUnknown's methods directly in your .NET code. The interop runtime code will insert the appropriate method calls for reference counting when the managed proxy objects are created and freed, and will translate typecast, "is", and "as" operators into calls to QueryInterface. 31: IViewObject
void Draw([MarshalAs(UnmanagedType.U4)] int dwDrawAspect, int lindex, IntPtr pvAspect, DVTARGETDEVICE ptd, IntPtr hdcTargetDev, IntPtr hdcDraw, COMRECT lprcBounds, COMRECT lprcWBounds, IntPtr pfnContinue, int dwContinue);
Sub Draw(<MarshalAs(UnmanagedType.U4)> ByVal dwDrawAspect As UInt32, ByVal lindex As Integer, ByVal pvAspect As IntPtr, <[In]()> ByVal ptd As IntPtr, ByVal hdcTargetDev As IntPtr, ByVal hdcDraw As IntPtr, <MarshalAs(UnmanagedType.Struct)> ByRef lprcBounds As _RECTL, <[In]()> ByVal lprcWBounds As IntPtr, ByVal pfnContinue As IntPtr, <MarshalAs(UnmanagedType.U4)> ByVal dwContinue As UInt32) cards32: CardsWrappe
Dim cardValue As Integer = DirectCast(suit, Integer) + faceValue * 4
Dim cardValue As Integer = DirectCast(suit, Integer) + faceValue * 4
cdtDrawExt(hDc, x, y, width, height, DirectCast(deck, Integer), 1, 0)
cdtDraw(hDc, x, y, DirectCast(deck, Integer), 1, 0)
cdtDrawExt(hDc, x, y, width, height, DirectCast(CardDeck.CrossHatch, Integer), 1, Card.ConvertColor(backgroundColor))
cdtDraw(hDc, x, y, DirectCast(CardDeck.CrossHatch, Integer), 1, Card.ConvertColor(backgroundColor)) 33: CardsWrapper
Dim cardValue As Integer = DirectCast(suit, Integer) + faceValue * 4
Dim cardValue As Integer = DirectCast(suit, Integer) + faceValue * 4
cdtDrawExt(hDc, x, y, width, height, DirectCast(deck, Integer), 1, 0)
cdtDraw(hDc, x, y, DirectCast(deck, Integer), 1, 0)
cdtDrawExt(hDc, x, y, width, height, DirectCast(CardDeck.CrossHatch, Integer), 1, Card.ConvertColor(backgroundColor))
cdtDraw(hDc, x, y, DirectCast(CardDeck.CrossHatch, Integer), 1, Card.ConvertColor(backgroundColor)) uxtheme
static extern IntPtr BeginBufferedPaint(IntPtr hdcTarget, [In] ref RECT prcTarget, BP_BUFFERFORMAT dwFormat, [In] ref BP_PAINTPARAMS pPaintParams, out IntPtr phdc);
static extern int BufferedPaintSetAlpha(IntPtr hBufferedPaint, [In] ref RECT prc, byte alpha);
public extern static Int32 DrawThemeBackgroundEx(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pRect, ref DTBGOPTS poptions);
Public Shared Function DrawThemeBackgroundEx(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, ByRef pRect As RECT, ByRef poptions As DTBGOPTS) As Int32
public extern static Int32 DrawThemeBackgroundEx(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pRect, ref DTBGOPTS poptions); Public Shared Function DrawThemeBackgroundEx(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, ByRef pRect As RECT, ByRef poptions As DTBGOPTS) As Int32 39: DrawThemeEdge
public extern static Int32 DrawThemeEdge(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pDestRect, uint egde, uint flags, out RECT pRect);
public extern static Int32 DrawThemeEdge(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pDestRect, uint egde, uint flags, int pRect);
Public Shared Function DrawThemeEdge(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, ByRef pDestRect As RECT, egde As UInteger, _
flags As UInteger, ByRef pRect As RECT) As Int32
Public Shared Function DrawThemeEdge(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, ByRef pDestRect As RECT, egde As UInteger, _
flags As UInteger, pRect As Integer) As Int32 40: DrawThemeIcon
public extern static Int32 DrawThemeIcon(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pRect, IntPtr himl, int iImageIndex);
Public Shared Function DrawThemeIcon(ByVal hTheme As IntPtr, ByVal hdc As IntPtr, ByVal iPartId As Integer, ByVal iStateId As Integer, ByRef pRect As RECT, ByVal himl As IntPtr, _
public extern static Int32 DrawThemeParentBackground(IntPtr hWnd, IntPtr hdc, ref RECT pRect);
public extern static Int32 DrawThemeParentBackground(IntPtr hWnd, IntPtr hdc, int pRect);
Function DrawThemeParentBackground(ByVal hwnd As IntPtr, ByVal hdc As IntPtr, ByRef prc As RECT) As Integer 42: DrawThemeText
static extern int DrawThemeTextEx(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, string text, int length, DT flags, ref RECT rect, ref DTTOPTS poptions);
Public Shared Function DrawThemeTextEx(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, text As [String], length As Integer, flags As DT, ByRef rect As RECT, ByRef poptions As DTTOPTS) As Int32 43: DrawThemeTextEx
static extern int DrawThemeTextEx(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, string text, int length, DT flags, ref RECT rect, ref DTBGOPTS poptions);
Public Shared Function DrawThemeTextEx(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, text As [String], length As Integer, flags As UInt32, ByRef rect As RECT, ByRef poptions As DTBGOPTS) As Int32
public extern static Int32 GetThemeBackgroundContentRect(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pBoundingRect, out RECT pContentRect);
Declare Function GetThemeBackgroundContentRect Lib "uxtheme.dll" (TODO) As TODO
Public Shared Function GetThemeBackgroundContentRect(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, ByRef pBoundingRect As RECT, ByRef pContentRect As RECT) As Int32
public extern static Int32 GetThemeBackgroundExtent(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pRect, ref RECT pClipRect);
Public Shared Function GetThemeBackgroundExtent(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, ByRef pRect As RECT, ByRef pClipRect As RECT) As Int32
public extern static Int32 GetThemeBackgroundRegion(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECT pRect, out IntPtr pRegion);
Public Shared Function GetThemeBackgroundRegion(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, ByRef pRect As RECT, ByRef pRegion As IntPtr) As Int32 47: GetThemePartSize
public extern static Int32 GetThemePartSize(IntPtr hTheme, IntPtr hdc, WindowPart part, WindowPartState state, ref RECT pRect, ThemeSize eSize, out SIZE size);
public extern static Int32 GetThemePartSize(IntPtr hTheme, IntPtr hdc,WindowPart part, WindowPartState state, int pRect, ThemeSize eSize, out SIZE size);
Public Declare Function GetThemePartSize Lib "uxtheme.dll" (ByVal hTheme As IntPtr, ByVal hdc As IntPtr, ByVal iPartId As Integer, ByVal iStateId As Integer, ByRef prc As Rectangle, ByVal eSize As THEMESIZE, ByRef psz As Size) As Integer 48: GetThemeRect
public extern static Int32 GetThemeRect(IntPtr hTheme, int iPartId, int iStateId, int iPropId, out RECT pRect);
Declare Function GetThemeRect Lib "uxtheme.dll" (TODO) As TODO
Public Shared Function GetThemeRect(hTheme As IntPtr, iPartId As Integer, iStateId As Integer, iPropId As Integer, ByRef pRect As RECT) As Int32
public extern static Int32 GetThemeTextExtent(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, String text, int textLength, UInt32 textFlags, ref RECT boundingRect, out RECT extentRect);
public extern static Int32 GetThemeTextExtent(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, String text, int textLength, UInt32 textFlags, int boundingRect, out RECT extentRect);
ByVal textFlags As Integer, ByVal boundingRect As RECT, ByRef extentRect As RECT) As Integer
public extern static Int32 HitTestThemeBackground(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, UInt32 dwOptions, ref RECT pRect, IntPtr hrgn, POINT ptTest, out HitTestThemeBackgroundCode code);
Public Shared Function HitTestThemeBackground(hTheme As IntPtr, hdc As IntPtr, iPartId As Integer, iStateId As Integer, dwOptions As UInt32, ByRef pRect As RECT, _ dwmapiA more reliable approach to get the colorization parameters would be to implement your own method that tries to lookup each parameter directly from the Windows registry, with proper exception handling in the case a value cannot be obtained. The colorization parameters can be found under the key "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM". Please note that these are also undocumented and as such can also be changed or removed in the future.
static extern int DwmGetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, out RECT pvAttribute, int cbAttribute); You cannot call this function directly. This is how to use it (VB.NET): A more reliable approach to set the colorization parameters would be to implement your own method that tries to set each parameter directly in the Windows registry and sends the WM_DWMCOLORIZATIONCOLORCHANGED message to notify all top-level windows about the change, with proper exception handling in the case a value cannot be set. The colorization parameters can be found under the key "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM". Please note that these are also undocumented and as such can also be changed or removed in the future.
public struct RECT
public RECT rcDestination;
public RECT rcSource; iphlpapi
TUNNEL_TYPE_DIRECT = 2, 57: GetAdaptersInfo
' Buffer was too small, reallocate the correct size for the buffer.
// Buffer was too small, reallocate the correct size for the buffer. 58: GetIpNetTable
table(index) = DirectCast(Marshal.PtrToStructure(New IntPtr(currentBuffer.ToInt64() + (index * Marshal.SizeOf(GetType(MIB_IPNETROW)))), GetType(MIB_IPNETROW)), MIB_IPNETROW) wtsapi3259: WTS_INFO_CLASS
WTSWorkingDirectory = 2,
WTSClientDirectory = 11,
WTSWorkingDirectory = 2
WTSClientDirectory = 11 coredll60: CeRunAppAtTime
Dim AppPathOnly As String = System.IO.Path.GetDirectoryName(FullAppName) Cut off search results after 60. Please refine your search. |