@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: TODO - a short description !!!!C# Signature: enum SetupUOInfFlags : uint { NONE = 0x0000, SUOI_FORCEDELETE = 0x0001 }; [DllImport("setupapi.dll", SetLastError = true)] static extern bool SetupUninstallOEMInf( string InfFileName, SetupUOInfFlags Flags, IntPtr Reserved ); !!!!VB Signature: Declare Function SetupUninstallOEMInf Lib "setupapi.dll" (TODO) As TODO !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: public bool UninstallInfByText(string text) { StringBuilder winDir = new StringBuilder(256); if (0 == GetWindowsDirectory(winDir, winDir.Capacity)) return (false); string infDir = winDir.ToString() + "\\inf"; string[] infFiles = Directory.GetFiles(infDir, "*.inf"); bool retval = true; foreach (string infFile in infFiles) { string inf = File.ReadAllText(infFile); if (inf.Contains(textBox1.Text)) { string infFileName = infFile.Remove(0, infFile.LastIndexOf('\\') + 1); retval = retval&& (SetupUninstallOEMInf(infFileName, SetupUOInfFlags.SUOI_FORCEDELETE, IntPtr.Zero)); } } return (retval); } Find the full demo application as part of the WinUSB component: http://AsyncOp.com Documentation: SetupUninstallOEMInf@msdn on MSDN
Edit setupapi.SetupUni...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.