SHARD_PATH constant

Is there a way to get .NET to recognize the SHARD_PATH constant used in SHAddToRecentDocs, or if not, anyone know what the value of constant is

Answer this question

SHARD_PATH constant

  • kostasT

    You are P/Invoking to Win32 (specifically shell32.dll). There is no way to automatically read in any enums or constants that are used in P/Invoke signatures. You can find the enum definition here:
    http://www.pinvoke.net/default.aspx/shell32/SHAddToRecentDocs.html

    According to the page, the value for SHARD_PATH is 0x2.

    BTW - Adam Nathan's pinvoke.net is a fabulous reference if you're P/Invoking into Win32 directly!!!

  • SHARD_PATH constant