Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 03-23-2009, 06:10 AM
chueh8
Newsgroup Contributor
 
Posts: n/a
CoCreateInstance(CLSID_InkCollector, in a service failed ?

Hi,

I would like to understand how to initiate wispits.exe service correctly

I have Win XP Pro/ Win 2000 OS and have Tablet PC runtime installed by
Office 2003 + OneNote.

After OS boots wispits.exe is not running be default, therefore pen input is
not enabled until some application will launch wispits.exe.

My application has NT service runs under LocalSystem account with auto start
and it runs before any user is logged in (Session 0). Service is ATL /C++ ,
no .NET.

My task is to launch wispits.exe pen service from my service. First I'm
checking if Tablet PC components are installed :

IInkCollector* pIInkCollector = NULL;

HRESULT hr = CoCreateInstance(CLSID_InkCollector,

NULL, CLSCTX_INPROC_SERVER,

IID_IInkCollector,

(void **)&pIInkCollector);



if (SUCCEEDED(hr))

{

/* InkCollector is usable. */

blRet = true;

InkCollectionMode colMode = ICM_InkAndGesture;





pIInkCollector->put_CollectionMode(ICM_InkAndGesture);

pIInkCollector->put_Enabled(VARIANT_TRUE);

pIInkCollector->Release();



// other code

}



This code indicates that Tablet PC is present.

However I do not understand how to launch wispits.exe correctly, as far as I
understand I should not launch this process directly, but OS will do this as
response to some kind of Tablet PC API call.



Also may be it is not possible to have wispits running without interactive
user session?

Can anybody help me with this?

Thanks a lot.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 03-23-2009, 06:10 AM
Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
'User Profile Service service failed the logon george1dful Windows Vista 11 11-10-2009 12:39 PM
User Profile Service: Service Failed Logon Kinhaven Windows Vista 1 03-24-2009 03:53 AM
HELP: Can't log in: "User Profile Service service failed the logon" void.no.spam.com@gmail.com Windows Vista 2 05-24-2008 12:30 PM
CoCreateInstance Error weishi Windows XP 3 11-22-2007 03:30 AM
PDIHWCTL service failed, EventID: 7000, Source: Service Control Manager Eventlog Provider ls [sb] Windows Vista 0 06-20-2007 08:30 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 12:36 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0