@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Retrieves a file's perceived type based on its extension. !!!!C# Signature: /// <summary> /// Retrieves a file's perceived type based on its extension. /// </summary> /// <exception cref="System.IO.FileNotFoundException">Unknown files extension</exception> [DllImport("Shlwapi.dll", ExactSpelling = true, PreserveSig = false)] static extern void AssocGetPerceivedType( [MarshalAs(UnmanagedType.LPWStr)] string extension, out PerceivedType perceivedType, out PerceivedFlags perceivedFlags, IntPtr ptrType ); !!!!VB Signature: ''' <summary> ''' Retrieves a file's perceived type based on its extension. ''' </summary> ''' <exception cref="System.IO.FileNotFoundException">Unknown files extension</exception> <DllImport("Shlwapi.dll", ExactSpelling := True, PreserveSig := False)> _ Shared Sub AssocGetPerceivedType( _ <MarshalAs(UnmanagedType.LPWStr)> extension As String, _ <Out> ByRef perceivedType As PerceivedType, _ <Out> ByRef perceivedFlags As PerceivedFlags, _ ptrType As IntPtr _ ) End Sub !!!!User-Defined Types: See [Perceived] and [PerceivedFlag] enumerations !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: C# example PerceivedType type; PerceivedFlag flags; AssocGetPerceivedType(".wav", out type, out flags, IntPtr.Zero); VB.NET example Dim type As PerceivedType Dim flags As PerceivedFlags AssocGetPerceivedType(".wav", type, flags, IntPtr.Zero) Documentation: AssocGetPerceivedType@msdn on MSDN
Edit shlwapi.AssocGetP...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.