Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Who sent the message? Posted by sziszi81 on 15 Oct 2006 at 11:58 PM
i have 2 applications communicating between each other.
one will send a password/username/etc. to the other.

and i want that only specific application may request these data from the second application.

i send the request with:
  h:=FindWindow('TLoader',nil)
  if h <> 0 then SendMessage(h,WM_ACCESSREQUEST,0,1);




how can the receiver identify the sender application?
the msg argument doesn't have such a property.

  procedure OnAccessRequest(var msg: TMessage); message WM_ACCESSREQUEST;







Report
Re: Who sent the message? Posted by zibadian on 16 Oct 2006 at 4:03 AM
: i have 2 applications communicating between each other.
: one will send a password/username/etc. to the other.
:
: and i want that only specific application may request these data from the second application.
:
: i send the request with:
:
:   h:=FindWindow('TLoader',nil)
:   if h <> 0 then SendMessage(h,WM_ACCESSREQUEST,0,1);
: 

:
:
:
: how can the receiver identify the sender application?
: the msg argument doesn't have such a property.
:
:
:   procedure OnAccessRequest(var msg: TMessage); message WM_ACCESSREQUEST;
: 

:
:
:
:
:
:
:
You could use the lParam or wParam for that.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.