PC Review


Reply
Thread Tools Rate Thread

How do I get hWnd in a .NET service with no UI?

 
 
Dave Hall
Guest
Posts: n/a
 
      16th Feb 2005
I have a 3rd party library that requires a non zero hWnd parameter as a
parameter to one of it's functions. I need to ue this library in a Windows
Service with no UI. What .NET class should I use to create a simple
invisible window so I can pass it's hWnd to the 3rd party API? In the .NET
Compact Framework, I would use an instance of the the MessageWindow class,
but that class is not available except in the CF version. Do I have to call
the Win32 APIs directly to create a hidden window in a service? Has anyone
already wrapped this functionality and published it? Any suggestions?

Thanks,
Dave


 
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
valid HWND in a Service Kolja Märtens Microsoft VC .NET 11 29th Jul 2008 10:27 PM
hwnd Allen Browne Microsoft Access Forms 2 13th Jan 2008 06:03 PM
Getting the hWnd of an IE window from an NT service MrBewsher@gmail.com Microsoft VB .NET 5 3rd Mar 2006 09:12 PM
Getting an HWND quat Microsoft VC .NET 4 18th Feb 2006 12:56 AM
How To get an hWnd? Mike Hartsough Microsoft Outlook VBA Programming 0 30th Apr 2004 07:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:20 PM.