Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than comdlg32, prefix the name with the module name and a period.
QueryPathOfRegTypeLib (comdlg32)
.
C# Signature:
[DllImport("oleaut32.dll", CharSet=CharSet.Unicode, ExactSpelling=true, PreserveSig=false)]
[return: MarshalAs(UnmanagedType.BStr)]
static extern string QueryPathOfRegTypeLib(
[MarshalAs(UnmanagedType.LPStruct)]
Guid guid,
[MarshalAs(UnmanagedType.U2)]
short wVerMajor,
[MarshalAs(UnmanagedType.U2)]
short wVerMinor,
[MarshalAs(UnmanagedType.U4)]
int lcid);
VB Signature:
<DllImport("oleaut32.dll", CharSet:=CharSet.Unicode, ExactSpelling:=True, PreserveSig:=False)> _
Private Shared Function QueryPathOfRegTypeLib(
<MarshalAs(UnmanagedType.LPStruct)> ByVal guid As Guid,
<MarshalAs(UnmanagedType.U2)> ByVal wVerMajor As Short,
<MarshalAs(UnmanagedType.U2)> ByVal wVerMinor As Short,
<MarshalAs(UnmanagedType.U4)> ByVal lcid As Integer) _
As <MarshalAs(UnmanagedType.BStr)> String
End Function
User-Defined Types:
None.
Notes:
None.
VB Signature:
<DllImport("oleaut32.dll", CharSet:=CharSet.Unicode, ExactSpelling:=True, PreserveSig:=False)> _
Private Shared Function QueryPathOfRegTypeLib(
<MarshalAs(UnmanagedType.LPStruct)> ByVal guid As Guid,
<MarshalAs(UnmanagedType.U2)> ByVal wVerMajor As Short,
<MarshalAs(UnmanagedType.U2)> ByVal wVerMinor As Short,
<MarshalAs(UnmanagedType.U4)> ByVal lcid As Integer) _
As <MarshalAs(UnmanagedType.BStr)> String
End Function
Tips & Tricks:
Please add some!
User-Defined Types:
None.
Sample Code:
Please add some!
Notes:
None.
Alternative Managed API:
Do you know one? Please contribute it!
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).