![]() |
(SST) ShlWAPI.pas Version 1.08 |
---|---|
Developer Reference |
Compares a file's registered content type to the specified content type. |
Information |
![]() |
||||||
---|---|---|---|---|---|---|---|
![]() |
|||||||
|
Scope |
---|
Global (i.e. this function can be called/accessed from code in any unit that includes/uses (SST)ShlWAPI.pas). |
Parameters | |
---|---|
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. |
Remarks |
---|
The comparison of the content type strings is case-insensitive. |
Remark 2. |
Example |
---|
Sample code |
Requirements | |
---|---|
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 |
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: webmaster@stoelzelsoftwaretech.com |