Ole32CreateFileMoniker Method
Creates a file moniker based on the specified path.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Ole32.dll", ExactSpelling := true>]
Public Shared Function CreateFileMoniker (
pathName As String,
<OutAttribute> ByRef refMoniker As IMoniker
) As HResult
Dim pathName As String
Dim refMoniker As IMoniker
Dim returnValue As HResult
returnValue = Ole32.CreateFileMoniker(pathName,
refMoniker)
public:
[DllImportAttribute(L"Ole32.dll", ExactSpelling = true)]
static HResult CreateFileMoniker(
String^ pathName,
[OutAttribute] IMoniker^% refMoniker
)
[<DllImportAttribute("Ole32.dll", ExactSpelling = true)>]
static member CreateFileMoniker :
pathName : string *
refMoniker : IMoniker byref -> HResult
No code example is currently available or this language may not be supported.
- 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.
HResult
This function can return the standard return values
E_UNEXPECTED
and
S_OK or
MK_E_SYNTAX.