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

SHAutoComplete (shlwapi)
 
.
Summary
Instructs system edit controls to use AutoComplete to help complete URLs or file system paths.

C# Signature:

[DllImport("shlwapi.dll")]
public static extern Int32 SHAutoComplete(
    IntPtr hwndEdit,
    AutoCompleteFlags dwFlags
);

VB .NET Signature:

Declare Function SHAutoComplete Lib "shlwapi.dll" (TODO) As TODO

User-Defined Types:

[Flags]
public enum AutoCompleteFlags : uint {
    SHACF_DEFAULT           = 0x00000000,  // Currently (SHACF_FILESYSTEM | SHACF_URLALL)
    SHACF_FILESYSTEM        = 0x00000001,  // This includes the File System as well as the rest of the shell (Desktop\My Computer\Control Panel\)
    SHACF_URLALL            (SHACF_URLHISTORY | SHACF_URLMRU),
    SHACF_URLHISTORY        = 0x00000002,  // URLs in the User's History
    SHACF_URLMRU            = 0x00000004,  // URLs in the User's Recently Used list.
    SHACF_USETAB            = 0x00000008,  // Use the tab to move thru the autocomplete possibilities instead of to the next dialog/window control.
    SHACF_FILESYS_ONLY          = 0x00000010,  // This includes the File System
    SHACF_FILESYS_DIRS          = 0x00000020,  // Same as SHACF_FILESYS_ONLY except it only includes directories, UNC servers, and UNC server shares.
    SHACF_AUTOSUGGEST_FORCE_ON      = 0x10000000,  // Ignore the registry default and force the feature on.
    SHACF_AUTOSUGGEST_FORCE_OFF     = 0x20000000,  // Ignore the registry default and force the feature off.
    SHACF_AUTOAPPEND_FORCE_ON       = 0x40000000,  // Ignore the registry default and force the feature on. (Also know as AutoComplete)
    SHACF_AUTOAPPEND_FORCE_OFF      = 0x80000000,  // Ignore the registry default and force the feature off. (Also know as AutoComplete)
}

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

TODO

Documentation

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions