mmioRename function (mmiscapi.h)

The mmioRename function renames the specified file.

Syntax

MMRESULT mmioRename(
  LPCSTR         pszFileName,
  LPCSTR         pszNewFileName,
  const MMIOINFO *pmmioinfo,
  DWORD          fdwRename
);

Parameters

pszFileName

Pointer to a string containing the file name of the file to rename.

pszNewFileName

Pointer to a string containing the new file name.

pmmioinfo

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.

fdwRename

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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mmiscapi.h (include Mmiscapi.h, Windows.h)
Library Winmm.lib
DLL Winmm.dll