Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetTypeFromProgID()

static Type System.Runtime.InteropServices.Marshal.GetTypeFromProgID ( string progID,
string server,
bool throwOnError )
inlinestaticpackage

Definition at line 1758 of file Marshal.cs.

1759 {
1760 if (progID == null)
1761 {
1762 throw new ArgumentNullException("progID");
1763 }
1764 Guid lpclsid;
1765 int num = Interop.Ole32.CLSIDFromProgID(progID, out lpclsid);
1766 if (num < 0)
1767 {
1768 if (throwOnError)
1769 {
1770 throw GetExceptionForHR(num, new IntPtr(-1));
1771 }
1772 return null;
1773 }
1774 return GetTypeFromCLSID(lpclsid, server, throwOnError);
1775 }
static int CLSIDFromProgID(string lpszProgID, out Guid lpclsid)
static ? Exception GetExceptionForHR(int errorCode)
Definition Marshal.cs:1218
static Type GetTypeFromCLSID(Guid clsid, string server, bool throwOnError)
Definition Marshal.cs:216

References Interop.Ole32.CLSIDFromProgID(), System.Runtime.InteropServices.Marshal.GetExceptionForHR(), and System.Runtime.InteropServices.Marshal.GetTypeFromCLSID().

Referenced by System.Type.GetTypeFromProgID().