Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > API > [VB6] - about Hook windows api procedure


Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2012, 05:41 AM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,177
Default [VB6] - about Hook windows api procedure


i have 1 question about hook windows api procedure: is like a loop procedure or just activated with controls\user actions?
Reply With Quote
  #2  
Old 09-13-2012, 12:14 AM
wakjah's Avatar
wakjah wakjah is offline
Senior Contributor
 
Join Date: Jan 2004
Location: Home
Posts: 1,170
Default

Your question is unclear, but it appears that you're asking how message loops work in Windows. See http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
__________________
wakjah

<wittySentence/>
Reply With Quote
  #3  
Old 09-13-2012, 12:50 PM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,177
Default

Quote:
Originally Posted by wakjah View Post
Your question is unclear, but it appears that you're asking how message loops work in Windows. See http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
i don't like the msdn tutorials.... they are hard to understand sometimes.
my question is simple: can i use the hook windows api procedure like a normal loop(do...while) or it's just for catch windows messages?
Reply With Quote
  #4  
Old 09-14-2012, 11:59 AM
PlausiblyDamp's Avatar
PlausiblyDamp PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Wigan, UK
Posts: 1,676
Default

It might help if you explained what you are trying to do as your original question is a little vague to say the least.

Are you interested in handling windows messages or actually hooking into and redirecting a windows API call?
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #5  
Old 09-14-2012, 12:19 PM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,177
Default

Quote:
Originally Posted by PlausiblyDamp View Post
It might help if you explained what you are trying to do as your original question is a little vague to say the least.

Are you interested in handling windows messages or actually hooking into and redirecting a windows API call?
sorry... ok... i understand that windows api hook is, only, activated for windows messages... then i can't do what i need with windows api hook
(may be i know 1 safety way for use multithread on VB6)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->