Expand Minimize

SHNAMEMAPPING structure

Contains the old and new path names for each file that was moved, copied, or renamed by the SHFileOperation function.

Syntax


typedef struct _SHNAMEMAPPING {
  LPTSTR pszOldPath;
  LPTSTR pszNewPath;
  int    cchOldPath;
  int    cchNewPath;
} SHNAMEMAPPING, *LPSHNAMEMAPPING;

Members

pszOldPath

Type: LPTSTR

The address of a character buffer that contains the old path name.

pszNewPath

Type: LPTSTR

The address of a character buffer that contains the new path name.

cchOldPath

Type: int

The number of characters in pszOldPath.

cchNewPath

Type: int

The number of characters in pszNewPath.

Remarks

There are two versions of this structure, an ANSI version (SHFILEOPSTRUCTA) and a Unicode version (SHFILEOPSTRUCTW). The Unicode version is identical to the ANSI version, except that wide character strings (LPCWSTR) are used in place of ANSI character strings (LPCSTR). On Windows 98 and earlier, only the ANSI version is supported. On Microsoft Windows NT 4.0 and later, both the ANSI and Unicode versions of this structure are supported. SHNAMEMAPPINGA and SHNAMEMAPPINGW should never be used directly; the appropriate structure is redefined as SHNAMEMAPPING by the precompiler depending on whether the application is compiled for ANSI or Unicode.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shellapi.h

See also

SHFILEOPSTRUCT

 

 

Community Additions

ADD
Show:
© 2014 Microsoft