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

hhctrl

.

    struct RECT

.

        public RECT(int left, int top, int right, int bottom)

.

        public RECT(Rectangle r)

.

        public static RECT FromXYWH(int x, int y, int width, int height)

.

            return new RECT(x, y, x + width, y + height);

.

        internal RECT rcMargins = RECT.FromXYWH(-1, -1, -1, -1);

winscard

.

SCARD_SHARE_DIRECT = 0x00000003 - Direct control of the reader, even without a card

Interfaces

.

Add StaThread attribute to main application, for correct functionality

4: IADs
.
Summary
The IADsContainer interface enables an ADSI container object to create, delete, and manage contained ADSI objects. Container objects represent hierarchical directory trees, such as in a file system, and to organize the directory hierarchy.
.

    /// 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;

.

    IEnumFORMATETC EnumFormatEtc(DATADIR direction);

.

        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())

.

        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())

.

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.

.

// Added missing definitions of tagRECT/tagPOINT

.

public struct tagRECT

.

     void ResizeBorder(ref tagRECT prcBorder, int pUIWindow, int fFrameWindow);

.

    Sub ResizeBorder(ByRef prcBorder As tagRECT, ByVal pUIWindow As Integer, ByVal fRameWindow As Integer)

.

    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>

.

    /// Often, an object needs to communicate directly with a container site that is managing the

.

- Various sites declare OLECMD.cmdf as UInt64. For me this crashes IE7 just after my QueryStatus() method is called, but declaring it as uint works fine. This seems correct given the MSDN definition as a DWORD - http://msdn.microsoft.com/en-us/library/ms690534%28VS.85%29.aspx

.

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

.

     void DoVerb(uint iVerb, uint lpmsg, object pActiveSite, uint lindex, uint hwndParent, uint lprcPosRect);

.

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.

.

    /// <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)

.

    /// <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( _

.

        void CreateViewWindow([In,MarshalAs(UnmanagedType.Interface)] IShellView previousShellView , [In] ref FolderSettings folderSetting,[In] IShellBrowser shellBrowser,[In] ref RECT bounds,[In,Out] ref IntPtr handleOfCreatedWindow);

.

      Sub CreateViewWindow(<In, MarshalAs(UnmanagedType.Interface)> ByVal previousShellView As IShellView, <In> ByRef folderSetting As FolderSettings, <In> ByVal shellBrowser As IShellBrowser, <In> ByRef bounds As RECT, <In, Out> ByRef handleOfCreatedWindow As IntPtr)

.

        [In, Out] ref RECT prcView,

.

Guid {E6442437-6C68-4f52-94DD-2CFED267EFB9} leads to the correct TrayDeskband object.

.

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.

.

    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)

.

    void GetWorkingDirectory([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszDir, int cchMaxPath);

.

    void SetWorkingDirectory([MarshalAs(UnmanagedType.LPWStr)] string pszDir);

.

    Sub GetWorkingDirectory(<Out, MarshalAs(UnmanagedType.LPWStr)> ByVal pszDir As StringBuilder, ByVal cchMaxPath As Integer)

.

    Sub SetWorkingDirectory(<MarshalAs(UnmanagedType.LPWStr)> ByVal pszDir As String)

faultrep

.

?i{AwWm—aßñ‚8?ûAJÏõ-á<L}¶ð†ŽÜøêo³;Ǟ‹G-¥ïý1ãÂð({÷ÞÖ»^%¹€Ÿý»$#ُõû”^×    "Р   'mHÍFq›þ%rect|ž_¹…>ºôF`ˆh‰C 9Àcš‚ü¤b oœ¡X{˜•²uC¯VnÆë t?±µ1er(!&o¬¸ï%éþFP¶ÙÃÍ|¸OKmôÇä^‰Ð2~I\Þ

.

Enables an application to "manually" report faults to Microsoft. Although you can use this function to report application crashes, Microsoft recommends that applications not handle fatal errors directly but instead rely on the crash reporting capability provided by the operating system.

httpapi

.

If your use of this API is focused around a single value of ConfigId, you may want to change the IntPtr (pConfigInformation) to point directly to a managed version of the correct underlying structure and let the default marshaller take care of the interop layer marshaling for you (and your memory management).

.

If your use of this API is focused around a single value of ConfigId, you may want to change the IntPtr (pConfigInformation) to point directly to a managed version of the correct underlying structure and let the default marshaller take care of the interop layer marshaling for you (and your memory management).

.

If your use of this API is focused around a single value of ConfigId, you may want to change the IntPtr (pConfigInformation) to point directly to a managed version of the correct underlying structure and let the default marshaller take care of the interop layer marshaling for you (and your memory management).

cards

.

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

.

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

shell32

.
Summary
Structure for using SHAppBarMessage. Also needs the RECT structure.
.

    //        RECT rc;

.

    public RECT rc;

.
Summary
.

    public RECT rc;

.

    Public rc As RECT

.

    public RECT rc;

.

    // The previous examples on this page used incorrect

37: CSIDL
.

            CSIDL_DESKTOPDIRECTORY      = 0x0010,    // <user name>\Desktop

.

            CSIDL_COMMON_DESKTOPDIRECTORY   = 0x0019,    // All Users\Desktop

.

            CSIDL_WINDOWS           = 0x0024,    // GetWindowsDirectory()

.

            CSIDL_SYSTEM            = 0x0025,    // GetSystemDirectory()

.

            CSIDL_SYSTEMX86         = 0x0029,    // x86 system directory on RISC

38: CSIDL
.

        /// Version 5.0. The file system directory that is used to store administrative tools for an individual user.

.

        /// The Microsoft Management Console (MMC) will save customized consoles to this directory, and it will roam with the user.

.

        /// The file system directory that corresponds to the user's nonlocalized Startup program group.

.

        /// Version 4.71. The file system directory that serves as a common repository for application-specific data.

.

        /// Version 6.0. The file system directory acting as a staging area for files waiting to be written to CD.

.

        /// Version 5.0. The file system directory containing administrative tools for all users of the computer.

.

        /// The file system directory that corresponds to the nonlocalized Startup program group for all users.

.

        /// Version 5.0. The file system directory containing application data for all users. A typical path is

.

        /// The file system directory that contains files and folders that appear on the desktop for all users.

.

        CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019,

.

        /// The file system directory that contains documents that are common to all users. A typical paths is

.

        /// The file system directory that serves as a common repository for favorite items common to all users.

.

        /// Version 6.0. The file system directory that serves as a repository for music files common to all users.

.

        /// Version 6.0. The file system directory that serves as a repository for image files common to all users.

.

        /// The file system directory that contains the directories for the common program groups that appear on the

.

        /// The file system directory that contains the programs and folders that appear on the Start menu for all users.

.

        /// The file system directory that contains the programs that appear in the Startup folder for all users.

.

        /// The file system directory that contains the templates that are available to all users. A typical path is

.

        /// Version 6.0. The file system directory that serves as a repository for video files common to all users.

.

        /// The file system directory that serves as a common repository for Internet cookies. A typical path is

.

        /// The file system directory used to physically store file objects on the desktop (not to be confused with

.

        CSIDL_DESKTOPDIRECTORY = 0x0010,

.

        /// The file system directory that serves as a common repository for the user's favorite items. A typical path is

.

        CSIDL_HISTORY = 0x0022, // The file system directory that serves as a common repository for Internet history items.

.

        /// Version 4.72. The file system directory that serves as a common repository for temporary Internet files.

.

        /// Version 5.0. The file system directory that serves as a data repository for local (nonroaming) applications.

.

        /// The file system directory that serves as a common repository for music files. A typical path is

.

        /// Version 5.0. The file system directory that serves as a common repository for image files.

.

        /// Version 6.0. The file system directory that serves as a common repository for video files.

.

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

.

        /// Previous to Version 6.0. The file system directory used to physically store a user's common repository of documents.

.

        /// The file system directory that contains the link objects that can exist in the Printers virtual folder.

.

        /// Version 6.0. The file system directory containing user profile folders. A typical path is C:\Documents and Settings.

.

        /// The file system directory that contains the user's program groups (which are themselves file system directories).

.

        /// The file system directory that contains shortcuts to the user's most recently used documents. A typical path is

.

        /// The file system directory that contains Send To menu items. A typical path is C:\Documents and Settings\username\SendTo.

.

        /// The file system directory containing Start menu items. A typical path is C:\Documents and Settings\username\Start Menu.

.

        /// The file system directory that corresponds to the user's Startup program group. The system starts these programs

.

        /// The file system directory that serves as a common repository for document templates. A typical path is

.

        /// Version 5.0. The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables.

.

this.fileSystemWatcher.IncludeSubdirectories = true;

.

static extern IntPtr FindExecutable(string lpFile, string lpDirectory, [Out] StringBuilder lpResult);

.

Private Shared Function FindExecutable(ByVal lpFile As String, ByVal lpDirectory As String, ByRef lpResult As StringBuilder) As IntPtr

.

"FindExecutableA" (ByVal lpFile As String, ByVal lpDirectory _

.

            string lpFile, string lpDirectory, StringBuilder lpResult);

.

/// It is recommended to call that function directly to determine Administrator group status rather than calling IsUserAnAdmin.

.

''' It is recommended to call that function directly to determine Administrator group status rather than calling IsUserAnAdmin.

.

    /// <param name="prcClip">A pointer to a RECT structure that specifies a selection within the window's

.

struct RECT{

.
Summary
Removes illegal characters from a file or directory name. Enforces the 8.3 filename format on drives that do not support long file names.
44: Run
.

public static extern string Shell(IntPtr HWND, string operation, string file, string parameters, string directory, int showcmd);

.

    Public Structure RECT

.

    Public rc As RECT

.

    Public T_SIZE As RECT

.

        // Browsing for directory.

.

You need to be in an STA thread for the BIF_NEWDIALOGSTYLE to work correctly. Use the STAThread attribute on your Main function, or create a new thread and call SetApartmentState before it is started. The default apartment state is MTA so if this isn't working for you, that could be why.

. .
Summary
.

static extern int SHCreateDirectoryEx(IntPtr hwnd, string pszPath, IntPtr psa);

.

SHCreateDirectoryEx(IntPtr.Zero, @"D:\test\", IntPtr.Zero);

.
Documentation
[SHCreateDirectoryEx] on MSDN
.

static extern IntPtr ShellExecute(IntPtr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);

.

Public Shared Function ShellExecute(hwnd as IntPtr, lpOperation as String, lpFile as String, pParameters as String, lpDirectory as String, nShowCmd as Integer) As IntPtr

.

    <MarshalAs(UnmanagedType.LPTStr)> Public lpDirectory As String

.

        public string lpDirectory;

.

"explore"    - Opens the Windows Explorer in the folder specified in lpDirectory.

.

Retrieves the Notifyicon bounding rectangle.

.

    static extern int Shell_NotifyIconGetRect([In]ref NOTIFYICONIDENTIFIER identifier, [Out]out RECT iconLocation);

.

RECT

.

    public struct RECT

.

    private static extern int Shell_NotifyIconGetRect([In]ref NOTIFYICONIDENTIFIER identifier, [Out]out RECT iconLocation);

.

    public static RECT GetNotifyIconRect(IntPtr windowHandle, uint taskbarIconId)

.

        var rect = new RECT();

.

        var hresult = Shell_NotifyIconGetRect(ref notifyIcon, out rect);

.

        return rect;

.
Documentation
[Shell_NotifyIconGetRect] on MSDN
.

        // Version 5.0. The file system directory that is used

.

        // consoles to this directory, and it will roam with the user.

.

        // Version 5.0. The file system directory containing

.

        // Version 4.71. The file system directory that serves as

.

        // Version 5.0. The file system directory containing

.

        // The file system directory that contains documents

.

        // The file system directory that serves as a common repository

.

        // The file system directory that serves as a common repository

.

        // Version 4.72. The file system directory that serves as

.

        // Version 5.0. The file system directory that serves as a data

.

        // Version 5.0. The file system directory that serves as

.

        // Previous to Version 6.0. The file system directory used to

.

        // Version 5.0. The Windows directory or SYSROOT.

.

        // Fonts directory. A typical path is c:\Windows\Fonts.

.

        CSIDL_DESKTOPDIRECTORY    = 0x0010,    // <user name>\Desktop

.

        CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019,    // All Users\Desktop

.

        CSIDL_WINDOWS         = 0x0024,    // GetWindowsDirectory()

.

        CSIDL_SYSTEM          = 0x0025,    // GetSystemDirectory()

.

        CSIDL_SYSTEMX86           = 0x0029,    // x86 system directory on RISC

.

        Throw New ApplicationException("Can't get window's directory")

.

    /// Gets the system fonts directory path.

.

    /// <returns>The fonts directory path</returns>

.

    private static String GetFontsDirectory()

.

    struct RECT

.

    public RECT rcImage;

.

        int GetImageRect(

.

        ref RECT prc);

.

SHGetImageList is not exported correctly in XP. See http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q316931

.
.

    COMMON_DESKTOPDIRECTORY = &H19

.

    DESKTOPDIRECTORY = &H10

.

/// <param name="pidl">Address of an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop).</param>

.

''' <param name="pidl">Address of an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop).</param>

.

    public int  iSortDirection;

.

    Public iSortDirection As Integer

.
.

    fileP = My.Computer.FileSystem.SpecialDirectories.MyDocuments

.

    MessageBox.Show(c.FileSystem.SpecialDirectories.MyDocuments);

.
.

        CSIDL_DESKTOPDIRECTORY      = 0x0010,    // <user name>\Desktop

.

        CSIDL_COMMON_DESKTOPDIRECTORY   = 0x0019,    // All Users\Desktop

.

        CSIDL_WINDOWS       = 0x0024,    // GetWindowsDirectory()

.

        CSIDL_SYSTEM        = 0x0025,    // GetSystemDirectory()

.

        CSIDL_SYSTEMX86     = 0x0029,    // x86 system directory on RISC

.

System.Drawing.SystemIcons, although note that not all icons are included and at least the Shield icon is incorrect on Win 7 / Win 2008.

.

(not 100% certain this is correct, need to test)

.

    ''' Sets the parent directory containing the files that will be selected.

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


 
Access PInvoke.net directly from VS: