Search found 29 matches: closehandle

Return to advanced search

Re: App Termination and Relaunch.

... }; PROCESS_INFORMATION pi; if (CreateProcess(NULL, L"your_app.exe", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { CloseHandle(pi.hProcess); CloseHandle(pi.hThread); } return 0; } ``` Again, replace `"your_app.exe"` with the path to your application's executable. ...
by Antonio Linares
Fri Oct 06, 2023 6:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: App Termination and Relaunch.
Replies: 5
Views: 378

Idea got from " Mouse w/o Borders"

... from the mailslot: ReadFile(hMailslot, lpBuffer, dwBytesToRead, &dwBytesRead, NULL); 5. Close the mailslot handles on both workstations: CloseHandle(hMailslot); can you tell me how Sent or Get other Workstation Clipboard To send or get other workstation clipboard, you can use a clipboard ...
by Jimmy
Fri Feb 03, 2023 10:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Idea got from " Mouse w/o Borders"
Replies: 2
Views: 209

Re: Preview of a file

AntoninoP wrote:The CloseHandle( hFile ); in HB_FUNC( ADDPREVIEWC ) does not allow to pdf previewer to read the file.
It is because you don't view the pdf preview.

In case of pdf, the preview is created from the stream not the file. In that case, why would the previewer require the file to be open?
by nageswaragunupudi
Mon Jul 20, 2015 8:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Preview of a file
Replies: 43
Views: 19903

Re: Preview of a file

The CloseHandle( hFile ); in HB_FUNC( ADDPREVIEWC ) does not allow to pdf previewer to read the file.
It is because you don't view the pdf preview.
by AntoninoP
Mon Jul 20, 2015 7:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Preview of a file
Replies: 43
Views: 19903

Re: Ayuda Funciones a Bajo Nivel

... pero pudiera ser que ese flag FILE_SHARE_WRITE sea el culpable de dañar el disco duro. Ante la duda, lo quitamos y ademas faltaba la llamada a CloseHandle(). En la última versión que acabo de poner incluye estos cambios. No puedes probar en XP en maquina virtual ? Asi te evitas el peligro de ...
by Antonio Linares
Tue Jun 10, 2014 1:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda Funciones a Bajo Nivel
Replies: 34
Views: 7859

Printing via Blooth

... ELSE FOR i = 1 TO Len( cText ) //WriteByte( hOut, Asc(SubStr( cText, i, 1 ) ) ) WriteByte( hOut, SubStr( cText, i, 1 ) ) SysRefresh() NEXT CloseHandle( hOut ) MsgStop("Port send successfully") endif
by cllow208
Fri May 04, 2012 10:04 am
 
Forum: FiveWin for Pocket PC
Topic: Printing via Blooth
Replies: 2
Views: 1300

CreateFile WriteByte CloseHandle

Saludos ; Uso en FWPPC las funciones CreateFile WriteByte CloseHandle , estas se encuentran en fivecec.lib en FWPPC. para imprimir sobre impresoras bluetooh y todo marcha bien. ahora quiero hacer imprimir una impresora bluetooh sobre una aplicación FWH ...
by mag071
Thu Mar 22, 2012 1:48 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: CreateFile WriteByte CloseHandle
Replies: 0
Views: 301

Communication with ARM9

... ReadComm( nHdlCom, @cBuffIn, nChars ) RETURN if( nBytes >0, Left( cBuffIn, nBytes ),"" ) FUNCTION ComClose( hComm ) RAWIROFF( hComm ) CloseHandle( hComm ) RETURN .t. #pragma BEGINDUMP #include <windows.h> #include <winbase.h> #include <hbapi.h> #include <aygshell.h> ...
by Surasak
Thu Jun 30, 2011 9:36 am
 
Forum: FiveWin for Pocket PC
Topic: Communication with ARM9
Replies: 6
Views: 1863

La funcion "CREATEFILE()" a que libreria pertenece.

... IF hOut==-1 Mensaje("can not open port of printer") ELSE FOR i = 1 TO Len( cText ) WriteByte( hOut, Asc( SubStr( cText, i, 1 ) ) ) NEXT CloseHandle( hOut ) ENDIF RETURN NIL *** Estos son los errores que me da: lecturas.o:lecturas.c:(.data+0x66c): undefined reference to `HB_FUN_CREATEFILE' ...
by byrpa
Fri Apr 23, 2010 6:19 pm
 
Forum: FiveWin para Pocket PC
Topic: La funcion "CREATEFILE()" a que libreria pertenece.
Replies: 2
Views: 670

Imprimir en BlueTooth mas rapido

... nLineas cLinea := strtran( strtran( memoline( cText, ,lnPos ), chr(10), '' ), chr(13), '') fwrite( hCom, rtrim(cLinea) + chr(13)+chr(10)) endfor CloseHandle( hCom ) Recuerden que en los ejemplos se escribia byte a byte, y bueno, a mi me funciono de maravillas, pruebenlo a ver...
by smorandin
Sat Nov 21, 2009 10:09 pm
 
Forum: FiveWin para Pocket PC
Topic: Imprimir en BlueTooth mas rapido
Replies: 1
Views: 611

MicroSoft Flight Simulator and FSUIPC

... 0; m_msg = 0; if (m_atom) { GlobalDeleteAtom(m_atom); m_atom = 0; } if (m_pView) { UnmapViewOfFile((LPVOID)m_pView); m_pView = 0; } if (m_hMap) { CloseHandle(m_hMap); m_hMap = 0; } } /****************************************************************************** FSUIPC_Open ******************************************************************************/ ...
by alvaro533
Wed Dec 17, 2008 11:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MicroSoft Flight Simulator and FSUIPC
Replies: 1
Views: 1138

MicroSoft Flight Simulator y FSUIPC

... 0; m_msg = 0; if (m_atom) { GlobalDeleteAtom(m_atom); m_atom = 0; } if (m_pView) { UnmapViewOfFile((LPVOID)m_pView); m_pView = 0; } if (m_hMap) { CloseHandle(m_hMap); m_hMap = 0; } } /****************************************************************************** FSUIPC_Open ******************************************************************************/ ...
by alvaro533
Wed Dec 17, 2008 9:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: MicroSoft Flight Simulator y FSUIPC
Replies: 1
Views: 1427

WriteByte muy lento enviando por bluetooth

... ) IF hOut==-1 MsgStop("Port Not Found") return nil endif FOR i = 1 TO Len( cText ) WriteByte( hOut, Asc(SubStr( cText, i, 1 ) ) ) NEXT USE CloseHandle( hOut )
by Arturo Lopesoria
Thu Apr 03, 2008 2:02 am
 
Forum: FiveWin para Pocket PC
Topic: WriteByte muy lento enviando por bluetooth
Replies: 6
Views: 1599

nageswaragunupudi wrote:Is it possible to destroy the mutex in the application and continue application? I did not find DestroyMutex function in msdn.


CloseHandle( hMutex ).

EMG
by Enrico Maria Giordano
Sun Nov 25, 2007 9:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Set Multiple
Replies: 25
Views: 5639

... impresora',vTitulo) else WriteByte( cConexion,Chr(27)+"C*") for n = 1 to Len( cTexto ) WriteByte( cConexion, Asc( SubStr( cTexto, n, 1 ) ) ) next CloseHandle( cConexion ) ¿Está bien?¿Debería funcionar? Gracias Un Saludo.
by softruz
Fri Mar 02, 2007 5:44 pm
 
Forum: FiveWin para Pocket PC
Topic: Caracteres de escape para la impresora
Replies: 12
Views: 3463
Next

Return to advanced search