Search found 23 matches: getmodulehandle

Return to advanced search

Re: fivewin/Harbour encrypt decrypt function in c#

We could replace:

GetModuleFileName( NULL, ... )

with:

GetModuleFileName( GetModuleHandle( "tutor01.exe" ), ... )

and that should solve the problem :-)
by Antonio Linares
Sat Nov 07, 2015 12:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: fivewin/Harbour encrypt decrypt function in c#
Replies: 17
Views: 5058

Re: "Snap" for Clipper

...        (function  in ?)    WINDOW.PRG     1496  1504  1722  1725  1729  1803  1805 GETMINMAXINFO()        (function  in ?)    WINDOW.PRG      616 GETMODULEHANDLE()      (function  in ?)    WINDOW.PRG      934 GETNMHDRCODE()         (function  in ?)    WINDOW.PRG     1837 GETNMHDRHWNDFROM()     ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6690

Re: rc/res to source

... @x,y ... ? and how ? I see only for a sample // Generated by ResEdit 1.5.5 // Copyright (C) 2006-2010 // http://www.resedit.net HINSTANCE hInst = GetModuleHandle(0); WNDCLASSEX wcex; ZeroMemory(&wcex, sizeof wcex); wcex.cbSize = sizeof wcex; wcex.hbrBackground = (HBRUSH)(COLOR_3DFACE + 1); ...
by MdaSolution
Tue Aug 02, 2011 8:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: rc/res to source
Replies: 4
Views: 996

Program in execution

How i can know if a especific program are in execution?

if GetModuleHandle( "UNI.EXE" ) != 0
MsgInfo( "UNI.EXE is running" )
endif

Always return 0

Thanks in advance.
by Wanderson
Tue Apr 12, 2011 2:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Program in execution
Replies: 4
Views: 651

Re: need tcrw.prg for 32 bit

... lError VAR cReport VAR oJobInfo VAR oTabLocation VAR oWinOptions MESSAGE New METHOD NEW_ CONSTRUCTOR MESSAGE FreeLibrary METHOD FREECRPE_ MESSAGE GetModuleHandle METHOD GETMOD_ MESSAGE PEOpenEngine METHOD PEOPEN_ MESSAGE PEErrorText METHOD ERRORT_ MESSAGE PEGetErrorCode METHOD ERRORN_ MESSAGE ...
by jll-fwh
Sun Feb 14, 2010 3:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: need tcrw.prg for 32 bit
Replies: 1
Views: 1316

Re: Problem linking with Xharbour commercial

... LPSCROLLINFO si, BOOL lRedraw) { #ifndef __HARBOUR__ typedef BOOL ( WINAPI * FN )( HWND, int, LPSCROLLINFO, BOOL ) ; FN p = ( FN ) GetProcAddress( GetModuleHandle( "USER" ), "SetScrollInfo" ) ; if( p ) return ( p( ( HWND ) hWnd, nScrollBar, si, lRedraw ) ) ; else return ( FALSE ...
by Massimo Linossi
Thu Nov 12, 2009 9:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem linking with Xharbour commercial
Replies: 11
Views: 2413

Re: Getting starting. (I needbit of help :)

Andrej, Welcome back :-) > errors when compile What errors are them ? > Can I check in any way that UdlTags.exe is already run You may use GetModuleHandle(): http://msdn.microsoft.com/en-us/library/ms683199(VS.85).aspx > or can I kill running UdlTags.exe ? Once you ...
by Antonio Linares
Wed Feb 04, 2009 9:57 am
 
Forum: FiveWin for Pocket PC
Topic: Getting starting. (I needbit of help :)
Replies: 15
Views: 2658

Al crear lib SBrowseX marca error Scroll.c

... LPSCROLLINFO si, BOOL lRedraw) { #ifndef __HARBOUR__ typedef BOOL ( WINAPI * FN )( HWND, int, LPSCROLLINFO, BOOL ) ; FN p = ( FN ) GetProcAddress( GetModuleHandle( "USER" ), "SetScrollInfo" ) ; if( p ) return ( p( ( HWND ) hWnd, nScrollBar, si, lRedraw ) ) ; else return ( FALSE ) ; #else return ...
by noe aburto
Wed Dec 17, 2008 2:52 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Al crear lib SBrowseX marca error Scroll.c
Replies: 0
Views: 675

Re:

Muy buenas, es ese el problema que tenía al principio con GetModuleHandle( cNombreAplicacion ) solo me devuelve le handle de los procesos con ventana pero los procesos sin ventana no me devuelve el handle, entonces pense en recoger el handle de todos ...
by softruz
Mon Jul 07, 2008 10:19 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Terminar proceso sin Ventana
Replies: 13
Views: 1767

Si solo tienes el nombre del ejecutable, entonces la función GetModuleHandle( cNombreAplicacion ) te devuelve el handle de la aplicación.

Con ese handle llamas a TerminateProcess( nHandle, 0 ) y así podrías terminar la aplicación.
by Antonio Linares
Mon Jul 07, 2008 10:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Terminar proceso sin Ventana
Replies: 13
Views: 1767

Terminar proceso sin Ventana

Muy buenas, estoy intentando para la ejecucion de un proceso con la funcion GetModuleHandle pero solo me devuelve el handle de los procesos que tienen window, entonces ¿Hay alguna funcion que me devuelve el handle de un proceso sin window¿d

Un Saludo
by softruz
Fri Jul 04, 2008 2:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Terminar proceso sin Ventana
Replies: 13
Views: 1767

Ayuda con la clase TCRW

... lError VAR cReport VAR oJobInfo VAR oTabLocation VAR oWinOptions MESSAGE New METHOD NEW_ CONSTRUCTOR MESSAGE FreeLibrary METHOD FREECRPE_ MESSAGE GetModuleHandle METHOD GETMOD_ MESSAGE PEOpenEngine METHOD PEOPEN_ MESSAGE PEErrorText METHOD ERRORT_ MESSAGE PEGetErrorCode METHOD ERRORN_ MESSAGE ...
by Ramón J.
Sat May 31, 2008 9:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con la clase TCRW
Replies: 3
Views: 2520

... memory Is there a way to change the error handling for fwppc to automatically terminate the process even if gpf ? something like TerminateProcess( GetModuleHandle( 0 ), 0 ) ??? That could be very handy Hth Richard
by Richard Chidiak
Fri Aug 24, 2007 2:41 pm
 
Forum: FiveWin for Pocket PC
Topic: How to replace aborted exe ?
Replies: 7
Views: 1936

... ,0,0,LR_LOADFROMFILE | LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT ); if (himage==NULL) { // himage = (HWND)LoadImage(GetModuleHandle(NULL),hb_parc(4),IMAGE_BITMAP ,0,0, LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT ); himage = (HBITMAP)LoadImage(GetModuleHandle(NULL),hb_parc(4),IMAGE_BITMAP ...
by saviotti
Fri May 18, 2007 2:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error ao atualizar para FWH 7.04
Replies: 29
Views: 9796

Antonio fiz assim e não matou o processo, o que pode estar acontecendo ? TerminateApp( GetModuleHandle( 'AcroRd32.exe' ) ) Tive o cuidado de dar um CTRL+ALT+DEL e ver o nome correto do processo, que neste caso é o ADOBE ACROBAT. No meu PRG principal coloquei: #pragma ...
by AOKISANTOS
Mon May 14, 2007 2:46 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Antonio, como fazer isso ?
Replies: 7
Views: 1908
Next

Return to advanced search