ITrackFile::CreateFromPath

[This is preliminary documentation and subject to change.]

Creates a link source from the specified path.

HRESULT CreateFromPath(
  const OLECHAR poszPath[ ]    //Identifies the link-source path
);
 

Parameters

poszPath
[in] Specifies the path of a directory or file to which a link is created. This directory or file is called the link source.

Remarks

Once a link has been created, you can use the ITrackFile::Resolve method to find the original link source again if it has been moved. After calling the CreateFromPath method, the track file object holds a state which must be stored persistently using an IPersist interface. The ITrackFile interface implemented by the Windows NT link tracking service implements IPersistStream and IPersistMemory.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in trkcom.h.

See Also

ITrackFile::Resolve, IPersistStream, IPersistMemory