Access the Windows 7 Boot Configuration Data using C#

前端 未结 2 2074
臣服心动
臣服心动 2021-01-07 05:42

I need to be able to access the identifier GUID of the current running installation of Windows from the Boot Configuration Data Store using c#. It can be returned from the c

2条回答
  •  死守一世寂寞
    2021-01-07 06:16

    Note that there is only a 64-bit bcdedit.exe in %systemroot%\system32. If your app is 32-bit, it will not be able to launch the 64-bit bcdedit because the WOW64 layer remaps the system32\ directory to syswow64. It's definitely best to use the WMI interface.

提交回复
热议问题