mmioRename function
The mmioRename function renames the specified file.
Syntax
MMRESULT mmioRename(
LPCTSTR szFilename,
LPCTSTR szNewFilename,
const LPMMIOINFO lpmmioinfo,
DWORD dwRenameFlags
);
Parameters
szFilename
Pointer to a string containing the file name of the file to rename.szNewFilename
Pointer to a string containing the new file name.lpmmioinfo
Pointer to an MMIOINFO structure containing extra parameters used by mmioRename. If this parameter is not NULL, all unused members of the MMIOINFO structure it references must be set to zero, including the reserved members.dwRenameFlags
Flags for the rename operation. This parameter should be set to zero.
Return value
Returns zero if the file was renamed. Otherwise, returns an error code returned from mmioRename or from the I/O procedure.
Requirements
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
Mmsystem.h (include Windows.h) |
Library |
Winmm.lib |
DLL |
Winmm.dll |
Unicode and ANSI names |
mmioRenameW (Unicode) and mmioRenameA (ANSI) |