Ole32CreateFileMoniker Method

Creates a file moniker based on the specified path.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Ole32.dll", ExactSpelling = true)]
public static HResult CreateFileMoniker(
	string pathName,
	out IMoniker refMoniker
)

Parameters

pathName  String
The path on which this moniker is to be based.

This parameter can specify a relative path, a UNC path, or a drive-letter-based path.

If based on a relative path, the resulting moniker must be composed onto another file moniker before it can be bound.

refMoniker  IMoniker
The address of an IMoniker* pointer variable that receives the interface pointer to the new file moniker.

When successful, the function has called AddRef on the file moniker and the caller is responsible for calling Release.

When an error occurs, the value of the interface pointer is NULL.

Return Value

HResult
This function can return the standard return values E_UNEXPECTED and S_OK or MK_E_SYNTAX.

Remarks

See Also