Parameters
pPath
[in] Pointer to a null-terminated string of maximum length MAX_PATH that
contains the path that contains the extension for which to search.
Return Values
Returns the address of the "." preceding the extension within pPath
if an extension is found, or the address of the trailing NULL character otherwise.
Requirements
Version 4.71 and later of Shlwapi.dll
Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later).
Windows 95/98/Me: Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later).
Header: Declared in Shlwapi.h. //masm32中用include Shlwapi.inc
Import Library: Shlwapi.lib.
------------------------------------
功能实现如下:
.data
stOpenFileName OPENFILENAME <?>
szTitleSave db "Open MUSIC file...",0
szExt db '*.*',0
szMp3 db '.mp3',0
szFilter db 'MUSIC Files(*.mp3,*.flac)',0,'*.*',0,0