DllImport from wintab32.dll

  • Thread starter Thread starter Paul Schabl
  • Start date Start date
P

Paul Schabl

Hi,

i'm trying to access my Summasketch tablet via wintab32.dll.
I can successfully call WTOpen() and WTMgrOpen().

I want to catch packets sent from the tablet.
First i tried with WTPacketsGet() but the packet count it returns is always
zero.
Then i thought maybe i should use the following function and provide a
callback:
HWTHOOK WTMgrPacketHookEx(hMgr, nType, lpszModule, lpszHookProc)

Howerver i have no idea how to implement it, maybe somebody fo you has.
Does anybody of you have experience with calling wintab32.dll, or can you
point me
to some resources?

If you want i can ofcourse provide the source of my WinTablet class.

Thanks and regards,
Paul
 
Ok , i can receive packets now with WTPacketsGet() - the problem was just
inproper use of marshalling.

A struct in the header has a member: TCHAR lcName[40]
which i had to marshal this way:
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]

public string Name;


Regards,
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top