Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2870 connectés 

 


Dernière réponse
Sujet : [Deplhi 4] Comment recuperer le Handle d'une application ?
Slide Mc BCP :)
ma enfin pouvoir etre tranquille au nivo du handle
car jutiliser un otre logiciel FreeWare pour les lire, et je l'ecriver dans une entrer text pour que le soft l'utilise.
 
Maintenant, ca va etre AUTO :)
 
Dit, tu peux regarde mon autre poste :) stp

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Slide Mc BCP :)
ma enfin pouvoir etre tranquille au nivo du handle
car jutiliser un otre logiciel FreeWare pour les lire, et je l'ecriver dans une entrer text pour que le soft l'utilise.
 
Maintenant, ca va etre AUTO :)
 
Dit, tu peux regarde mon autre poste :) stp
JWhy :sarcastic:

Code :
  1. - - -
  2. var
  3.   hHandle : HWND;
  4. begin
  5.   hHandle := FindWindow(nil, 'Untitled - Notepad');
  6. end;
  7. - - -

 

[jfdsdjhfuetppo]--Message édité par JWhy--[/jfdsdjhfuetppo]

Slide :bounce:
Slide

JWhy a écrit a écrit :

FindWindow + F1
 

Citation :


HWND FindWindow(
 
    LPCTSTR lpClassName, // pointer to class name
    LPCTSTR lpWindowName  // pointer to window name
   );

 




 
Je peux avoir un exemple ? svp

JWhy FindWindow + F1
 

Citation :

The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows.  
 
HWND FindWindow(
 
    LPCTSTR lpClassName, // pointer to class name
    LPCTSTR lpWindowName  // pointer to window name
   );  
 
 
Parameters
 
lpClassName
 
Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero.  
 
lpWindowName
 
Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match.  
 
 
 
Return Values
 
If the function succeeds, the return value is the handle to the window that has the specified class name and window name.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.  
 
See Also
 
EnumWindows, FindWindowEx, GetClassName, GlobalAddAtom

Slide Salut :)
Ma question est simple :)
Comment recuperer le Handle d'une application à partir du nom ???
:)
Mc d'avance.

Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR