PC Review


Reply
Thread Tools Rate Thread

DllImport from wintab32.dll

 
 
Paul Schabl
Guest
Posts: n/a
 
      14th Jun 2006
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


 
Reply With Quote
 
 
 
 
Paul Schabl
Guest
Posts: n/a
 
      16th Jun 2006
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

"Paul Schabl" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net and dllimport Larry Microsoft C# .NET 1 7th Oct 2008 08:51 AM
What's the difference of [DllImport ....] with _declspec(dllimport) Ed Microsoft VC .NET 2 31st Jul 2007 02:31 AM
DllImport Zoltan Microsoft C# .NET 4 20th Nov 2006 07:52 AM
wintab32.exe What is it?? Trumpy Windows XP Help 3 20th May 2004 05:15 AM
DllImport in C# Mr.Tickle Microsoft C# .NET 2 16th Sep 2003 09:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 PM.