(SST) ShlWAPI.pas Version 1.08

Developer Reference
(SST)ShlWAPI PathIsContentType Function
Compares a file's registered content type to the specified content type.
Information X
Sorry, this page has not been completed yet!
Although it already contains some of the envisaged elements and text, its contents are preliminary and/or incomplete.
However, this does not apply to many other pages. For a list of pages that have been completed or are still in various stages prior to completion, please refer to the Title Index page.
Global (i.e. this function can be called/accessed from code in any unit that includes/uses (SST)ShlWAPI.pas).
function PathIsContentType(pszPath : LPCSTR; pszContentType : LPCSTR) : BOOL;
pszPath [in] A pointer to the zero terminated string of the full path and name, of the file of which the content type is to be retrieved and compared to. This string, including the terminating null char, may not exceed MAX_PATH (= 260) single byte (ANSI version) or double byte (Unicode) characters in length.
pszContentType [in] A pointer to the zero terminated content type string, to compare the file's registered content type to.
Return Values
Returns TRUE if the content types are identical, FALSE (= 0), if not.
The comparison of the content type strings is case-insensitive.
Remark 2.
Sample code
Unit: Declared and imported in (SST)ShlWAPI.pas
Library: (SST)ShlWAPI.dcu/(SST)ShlWAPI.obj
Unicode: Implemented as ANSI (PathIsContentType and PathIsContentTypeA) and Unicode (PathIsContentTypeW) functions.
Min. ShlWAPI.dll version according to MS SDK doc.: 4.71
Min. ShlWAPI.dll version based on SST research: 4.71
Min. OS version(s) according to Microsoft SDK doc.: Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
Min. OS version(s) according to SST research.: Windows NT 4.0 with IE 4.0, Windows 95 with IE 4.0, Windows 98, Windows 2000 and later
See Also
AssocCreate, AssocGetPerceivedType, AssocQueryKey, AssocQueryString, AssocQueryStringByKey
Windows APIs: AssocCreate, AssocGetPerceivedType, AssocQueryKey, AssocQueryString, AssocQueryStringByKey

Document/Contents version 1.00
Page/URI last updated on May 04, 2022
Copyright © Stoelzel Software Technologie (SST) 2010 - 2015
Suggestions and comments mail to: