6

I recently discovered our ink-enabled-application didn't run. It was a Windows (vista or 7) Netbook. The inking functionality was ether not installed or missing by design.

So my question is:

How can I detect (possible with c#) that windows is missing the inking functionality ?

ralf.w.
  • 1,676
  • 1
  • 24
  • 34
  • This question (http://stackoverflow.com/questions/5673556/is-it-possible-to-let-my-c-sharp-wpf-program-know-if-the-user-has-a-touchscreen) suggests that there is a solution to be found using the `Tablet.TabletDevices` property (available in .NET 3.5). – Dan Puzey Aug 02 '12 at 14:26

1 Answers1

0

The last two Q. in the Table PC SDK FAQ seem to answer your question though.

zeFrenchy
  • 6,541
  • 1
  • 27
  • 36
  • can you or anyone confirm, that System.UI.Input.Inking is missing on some Netbooks ? – ralf.w. Aug 01 '12 at 10:11
  • This assembly is on none of my machines. Not surprising considering MS documentation specifies the minimum required client as 'Windows 8 Release Preview' and I only have win7 systems. – zeFrenchy Aug 01 '12 at 13:52
  • sorry to say, but I was looking for a solution for win7/vista. I have added the according tags – ralf.w. Aug 02 '12 at 09:55
  • The solution provided to detect its presence will work on any .Net system. Are you looking at detecting it, or installing it? These are 2 different things. – zeFrenchy Aug 02 '12 at 10:03
  • Why should I detect this dll as missing if it is ALWAYS missing on vista/win7 ? And I am not able to install it there either... – ralf.w. Aug 02 '12 at 13:13
  • I guess I misunderstood what your question is. Is your application based on COM components provided by the [Tablet PC SDK](http://msdn.microsoft.com/en-us/library/ms840463.aspx)? Installing said SDK would likely solve your issue. – zeFrenchy Aug 02 '12 at 14:08
  • @DominiqueJacquel: the question explicitly states Windows 7; your answer is specific to Windows 8 preview. The question also explicitly asks for how to *detect* the presence of the component, not how to install it. – Dan Puzey Aug 02 '12 at 14:21
  • unfortunately GetSystemMetrics with SM_TABLETPC does not work. I'll accept your answer though. – ralf.w. Aug 16 '12 at 06:04