Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c#
  • excel
  • interop
  • office
  • visual-studio

Check excel 2010 bitness

Oct 19, 2012 See the question and my original answer on StackOverflow

What I would do is

1) open the following registry key:

HKEY_CLASSES_ROOT\CLSID\{00024500-0000-0000-C000-000000000046}\LocalServer

(the guid means "Excel Application")

2) extract Excel's .EXE path from the key's default value (you want to remove all command line arguments)

3) use GetBinaryType on the path.

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms