CreateFileMoniker (ole32)
Last changed: -65.116.197.97

.
Summary

C# Signature:

[DllImport("ole32.dll")]
static extern int CreateFileMoniker([MarshalAs(UnmanagedType.LPWStr)] string
   lpszPathName, out IMoniker ppmk);

VB.NET Signature:

Private Declare Function CreateFileMoniker Lib "ole32.dll" (ByVal lpszPathName As String, ByRef ppmk As IMoniker) As Integer

User-Defined Types:

None.

Notes:

As of .NET 2.0, UCOMIMoniker is obsolete and has been replaced with System.Runtime.InteropServices.ComTypes.IMoniker. This extends to all interfaces of the System.Runtime.InteropServices namespace starting with "UCOM...". Each of them are replaced in the System.Runtime.InteropServices.ComTypes namespace, with same name, except for the "UCOM" at the beginning.

The signature has therefor been changed to IMoniker.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation