Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

How to activate 'Hardware Update wizard' programmatically

Is there a way to bring this wizard up on demand?
0
yossikally
Asked:
yossikally
  • 2
1 Solution
 
jkrCommented:
Yes, you can just use
TCHAR* pCmd = _T("rundll32.exe shell32.dll,Control_RunDLL hdwwiz.cpl");
 
ShellExecute(NULL,_T("open"),pCmd,NULL,NULL,SW_SHOW);

Open in new window

0
 
yossikallyAuthor Commented:
Thanks.  Is there a way to have it pre-select an INF file so that I won't have to browse for it?
0
 
jkrCommented:
No, sorry, not that I am aware of - that "interface" is very sparse and not officially documented.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now