CreateFileMoniker

HRESULT CreateFileMoniker(lpszPathName, ppmk)

Creates a moniker from the given path name. This path may be an absolute path or a relative path. In the latter case, the resulting moniker will need to be composed onto another File Moniker before it can be bound. In either case, it will often be the case that other monikers are composed onto the end of this moniker in order to access sub-pieces of the document stored in the file.

Argument

Type

Description

lpszPathName

LPSTR

The path name of the desired file.

ppmk

IMoniker*

The newly created moniker.

return value

HRESULT

S_OK, MK_E_SYNTAX, E_OUTOFMEMORY