# QueryPathOfRegTypeLib

```csharp
[DllImport("Comdlg32.dll", SetLastError = true)]
public static extern HRESULT QueryPathOfRegTypeLib(
   [in] ref Guid guid,
   ushort wMaj,
   ushort wMin,
   ushort lcid,
   out IntPtr lpbstrPath
);
```

Microsoft documentation: [Link](https://learn.microsoft.com/en-us/windows/win32/api/oleauto/nf-oleauto-querypathofregtypelib)
