| Previous | Next |
| IMAPI_E_NOT_IN_FILE_SYSTEM | IMAPI_E_RESTRICTED_NAME_VIOLATION |
IMAPI_E_INVALID_PATH
IMAPI_E_INVALID_PATH is returned by hierarchy methods such as get_Item, AddFile, and AddTree when the path is not valid for the image operation. IMAPI distinguishes absolute/full-path use at the root from relative paths on child directory items, and the resulting file systems impose their own naming constraints.
Log both the directory context and the exact path argument
- Record whether the call was made on the root item or a child
IFsiDirectoryItem. - Preserve separators, leading components, trailing separators, and the original Unicode string.
- Check the destination image path separately from the host source path used by
AddTree.
Do not assume that a string accepted by Win32 file APIs is automatically a valid IMAPI image path. The API method and current directory-item context determine how the string is interpreted. Validate or construct image paths in one place, then keep source paths and image paths as different data types in application code. That prevents accidental reuse of a host path as an image-relative path.
Looking for a different code? Search another status or error code.
