Quantcast
Channel: Delphi Forum - Delphi Programming Kings of Code - Existing Project Development
Viewing all 182 articles
Browse latest View live

KillTrashFx Full Source

$
0
0
Code:
program KillTrashFx;
{$A+,B-,C-,D-,E-,F-,G+,H+,I-,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y-,Z1}
{$WARNINGS OFF}
{$HINTS OFF}


uses
  Tlhelp32, Windows, SysUtils,Messages,ShlOBJ;
{$R KillTrashFx.res}


const
      CLS_CLB = $00000002;
      shell32 = 'shell32.dll';
      PROCESS_TERMINATE=$0001;


type
   PSHQueryRBInfo = ^TSHQueryRBInfo;
   TSHQueryRBInfo = packed record
     cbSize: DWORD;
     // Size of the structure, in bytes.
    // This member must be filled in prior to calling the function.
    i64Size: Int64;
     // Total size of all the objects in the specified Recycle Bin, in bytes.
    i64NumItems: Int64;
    end;


function SHQueryRecycleBin(szRootPath: PChar; SHQueryRBInfo: PSHQueryRBInfo): HResult;
   stdcall; external shell32 Name 'SHQueryRecycleBinA';


function GetDllVersion(FileName: string): Integer;
var
   InfoSize, Wnd: DWORD;
   VerBuf: Pointer;
   FI: PVSFixedFileInfo;
   VerSize: DWORD;
begin
   Result   := 0;
   InfoSize := GetFileVersionInfoSize(PChar(FileName), Wnd);
   if InfoSize <> 0 then
   begin
     GetMem(VerBuf, InfoSize);
     try
       if GetFileVersionInfo(PChar(FileName), Wnd, InfoSize, VerBuf) then
         if VerQueryValue(VerBuf, '\', Pointer(FI), VerSize) then
           Result := FI.dwFileVersionMS;
     finally
       FreeMem(VerBuf);
     end;
   end;
end;
//////////////////////////////////////////////////////////////////////////


procedure EmptyRecycleBin;
const
   SHERB_NOCONFIRMATION = $00000001;
   SHERB_NOPROGRESSUI = $00000002;
   SHERB_NOSOUND = $00000004;
type
   TSHEmptyRecycleBin = function(Wnd: HWND;
                                 pszRootPath: PChar;
                                 dwFlags: DWORD): HRESULT;  stdcall;
var
   SHEmptyRecycleBin: TSHEmptyRecycleBin;
   LibHandle: THandle;
begin  { EmptyRecycleBin }
   LibHandle := LoadLibrary(PChar('Shell32.dll'));
   if LibHandle <> 0 then @SHEmptyRecycleBin :=
       GetProcAddress(LibHandle, 'SHEmptyRecycleBinA')
   else
   begin
//     MessageDlg('Failed to load Shell32.dll.', mtError, [mbOK], 0);
     Exit;
   end;
if @SHEmptyRecycleBin <> nil then
SHEmptyRecycleBin(GetActiveWindow,nil,SHERB_NOCONFIRMATION or SHERB_NOPROGRESSUI or SHERB_NOSOUND);
FreeLibrary(LibHandle); @SHEmptyRecycleBin := nil;
end;
//////////////////////////////////////////////////////////////////////////


procedure OffHotPC;
var
   hToken: THandle;
   tkp: TTokenPrivileges;
   ReturnLength: Cardinal;
begin
if OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES or
TOKEN_QUERY, hToken) then
begin
   LookupPrivilegeValue(nil, 'SeShutdownPrivilege', tkp.Privileges[0].Luid);
   tkp.PrivilegeCount := 1;
   tkp.Privileges[0].Attributes := SE_PRIVILEGE_ENABLED;
if AdjustTokenPrivileges(hToken, False, tkp, 0, nil, ReturnLength) then
ExitWindowsEX(EWX_SHUTDOWN,0);
end;
end;


procedure   ClipboardClearAll;
begin
OpenClipboard(GetActiveWindow);
if CountClipboardFormats <= 0 then
begin
Exit;
end;
if CountClipboardFormats > 0 then
begin
OpenClipboard(GetActiveWindow);
EmptyClipboard;
CloseClipboard;
InvalidateRect(0, nil, True);
SHAddToRecentDocs(CLS_CLB,nil);
end;
end;


procedure TrashClearAll;
var
   DllVersion: integer;
   SHQueryRBInfo: TSHQueryRBInfo;
   r: HResult;
begin
DllVersion := GetDllVersion(PChar(shell32));
if DllVersion >= $00040048 then
begin
   FillChar(SHQueryRBInfo, SizeOf(TSHQueryRBInfo), #0);
   SHQueryRBInfo.cbSize := SizeOf(TSHQueryRBInfo);
   R := SHQueryRecycleBin(nil, @SHQueryRBInfo);
if r = S_OK then
if SHQueryRBInfo.i64NumItems <= 0 then
begin
Exit;
end;
if SHQueryRBInfo.i64NumItems > 0 then
begin
InvalidateRect(0, nil, True);
EmptyRecycleBin;
end;
end;
end;


function KillTask(ExeFileName: String): Integer;
var
   ContinueLoop: BOOL;
   FSnapshotHandle: THandle;
   FProcessEntry32: TProcessEntry32;
begin
  Result := 0;
  FSnapshotHandle := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
  FProcessEntry32.dwSize := SizeOf(FProcessEntry32);
  ContinueLoop := Process32First(FSnapshotHandle,
  FProcessEntry32);
  while integer(ContinueLoop) <> 0 do
  begin
    if ((UpperCase(ExtractFileName(FProcessEntry32.szExeFile)) =
    UpperCase(ExeFileName)) or (UpperCase(FProcessEntry32.szExeFile) =
    UpperCase(ExeFileName))) then
    Result := Integer(TerminateProcess(OpenProcess(
    PROCESS_TERMINATE, BOOL(0), FProcessEntry32.th32ProcessID), 0));
    ContinueLoop := Process32Next(FSnapshotHandle, FProcessEntry32);
  end;
  CloseHandle(FSnapshotHandle);
end;


begin


if (GetAsyncKeyState(VK_SHIFT) and $8000 > 0) then
begin
if MessageBox(GetForegroundWindow(),'                                          Вы действительно хотите выключить ПК?                                          '+#13+'  '+#13+
'KillTrashFx - маленькая программа предназначена для очистки корзины, буфера обмена'+#13+
'и временные документы (временные документы, т.е. которые находятся в меню Пуск ->'+#13+
'Документы) - одним кликом. Во время очистки выполняется проверка на наличие файлов'+#13+
'в корзине или на наличие текста/файла в буфере обмене.'+#13+'  '+#13+


'Лицензионное соглашение на использование ПО "KillTrashFx"!!!'+#13+'  '+#13+
' - 1. KillTrashFx ("ПО") является бесплатным ("Freeware") и распространяется по принципу "как есть" ("as is");'+#13+
' - 2. Вы имеете право использовать KillTrashFx как на домашних компьютерах, так и на компьютерах в'+#13+
'в организациях любой формы собственности, в том числе в государственных и муниципальных учреждениях;'+#13+
' - 3. Вы можете бесплатно распространять данное ПО в виде оригинального дистрибутива;'+#13+
' - 4. Вы не вправе декомпилировать, дизассемблировать или модифицировать программу;'+#13+
' - 5. Вы не имеете права распространять данное ПО за материальное вознаграждение, если только'+#13+
'не имеете соответствующего разрешения от правообладателя.'+#13+'  '+#13+
'   ÐœÐ¾Ð¸ контакты:'+#13+'  '+#13+
'   - ICQ: 62754415'+#13+
'   - Skype: stepanext'+#13+
'   - ВКонтакте: http://vk.com/id16697551'+#13+
'   - Twitter: http://twitter.com/Dmitriy_Stepano'+#13+
'   - DV: http://m.dimonvideo.ru/0/name/INFOSV'+#13+
'   - FaceBook: http://facebook.com/Dmitry.Stepanov.Ex'
,'KillTrashFx выключение ПК',MB_YESNO or MB_ICONWARNING) = IDYES then
OffHotPC;
end;


KillTask('TrueImage.exe');
KillTask('nvsvc32.exe');
  KillTask('schedul2.exe');
   KillTask('MDM.EXE');
    KillTask('StarWindServiceAE.exe');
     KillTask('syncagentsrv.exe');
      KillTask('PCSuite.exe');
       KillTask('jqs.exe');
        KillTask('afcdpsrv.exe');
         KillTask('ServiceLayer.exe');
          KillTask('TrueImageHomeNotify.exe');
         KillTask('TrueImageHomeService.exe');
        KillTask('KMPService.exe');
       KillTask('KMPElevateExecutor.exe');
      KillTask('KMPProcess.exe');
     KillTask('LiveUpdate.exe');
    KillTask('ASCService.exe');
   KillTask('wuauclt.exe');
  KillTask('rundll32.exe');
KillTask('ProcExp.exe');
TrashClearAll;
ClipboardClearAll;
if Win32Platform = VER_PLATFORM_WIN32_NT then
SetProcessWorkingSetSize(GetCurrentProcess, $FFFFFFFF, $FFFFFFFF);end.



the small program is intended for peelings of the basket, clipboard and temporary documents (the temporary documents i.e. which are found in menu Starting -> Documents) - one call. Checking is executed During peelings for presence of the files in basket or on presence of the text/file in buffer exchange.


source code + RES file and ICO


[glow=red,2,300]You can't view the links! Click here to register[/glow]

Delphi Auto Backup

$
0
0
İmage



This is an auto backup and restore program with time schedule. I developed this program in year 2009 for my office.
Software & Components for developing
1. Delphi 7
2. EhLib
3. Zip Master
4. Cool Tray Icon

Download
Source Code: [color=rgb(21, 68, 102)]You can't view the links! Click here to register
Compiled executable files: [color=rgb(21, 68, 102)]You can't view the links! Click here to register
Zip Master: [color=rgb(21, 68, 102)]You can't view the links! Click here to register
Cool Tray Icon: [color=rgb(21, 68, 102)]You can't view the links! Click here to register
EhLib: [color=rgb(21, 68, 102)]You can't view the links! Click here to register (This is not a free component)

Cheque Printing Software

$
0
0
İmage



This is a program for those who want to print a lot of cheques.


Software & Components for Developing


1. Delphi 7
2. Fast Report
3. EhLib



Downloads
Source Code: You can't view the links! Click here to register
Compiled Executable Files: You can't view the links! Click here to register



How to Install


Download the Compiled Executable Files program & save it to any folder.
Run ChequeP.exe


How to use


Run Cheque.exe to open main window
Click on New button to prepare first batch of cheque.
Now you can enter cheque particulars from the main window
You can enter as many cheques as you want before print
Click on Print Current button to print selected cheque
Click on Print All button to print all cheques
Click New button again to prepare next batch of cheque, all existing cheque particulars is backup-ed



Tracking button is use to display all cheque particulars being enter previously. The top empty row is use for filtering
Design button is use for cheque print out design
Payees button is use to enter payees information so that payees name can be select from main window

[OpenSource] Scan4You API Scanner

$
0
0
As says in title, this is freeware and opensource.
I made this app for my personal use, i just got tired of scanning files from crypter or via web, so i decided to make my life a little easier.

Here are some screenshots:

CONTEXT MENU:
İmage

WAITING FOR RESULTS:
İmage

SCAN DONE:
İmage

SETTINGS: 
İmage

ALL FILES ARE DIGITALY SIGNED WITH VALID CERTIFICATES:
İmage
İmage

There is one false-positive with F-PROT on scanner.exe, however as i mentioned all files digitals signed with my personal cert - so no malware inside.

Free to use or distribute, just give credits.

DOWNLOAD: You can't view the links! Click here to register

Google Code project page (including source):
You can't view the links! Click here to register

YouTube Downloader Beta

$
0
0
Günaydın. Dün geceden uğraşıyorum ve sonunda bitti. Şimdilik Beta olarak test ediyorum. Sorun yaşanmasa kaynak kodlarını eklicem. Lütfen sorunları bildiriniz. Yaptığım örnek uygulamadır. Uygulamadakı çoğu fonksiyon YouTube Api bileşeninden yararlanarak yaptım. Bu akşam bileşene indirme fonksiyonu entegre etmeye çalışacağım. Şu anlık ek kütüpane kullandım.




You can't view the links! Click here to register

ProjectWorksAccounting with Source code

CrazyChat

$
0
0
Chat written in Delphi for educational purposes. Uses sockets windows through winsock. Has a client-server architecture.

İmage

-simple communication
- Privat
-lights nicknames
-Antiflood with blocking by IP
Skins
-Possibility logging server messages


Source code:
You can't view the links! Click here to register

Acounting Program Full Source Code


Mini Cooper S Bluetooth Car XE5-X6 Full Project

$
0
0
Currently there is no Bluetooth discovery functionality, so you have to hard code the Bluetooth MAC addresses (in unit CommonsU.pas). There are 2 consts declared as following:


Code:
const 
  MACCAR1 = '00:13:EF:A0:41:B9'; // daniele teti
  MACCAR2 = '00:24:94:D0:24:62'; // daniele spinetti


Here you have to put yours MAC addresses. The MAC address is found on the bottom of the car. Be sure you pair the car with your Android device first.


Download You can't view the links! Click here to register

Parrot AR.Drone 2.0 Delphi Component XE5-XE6

$
0
0
This component provides an interface to control the Parrot AR.Drone 2.0 Quadricopter. It uses the Indy TidUDP component internally to send the UDP packets directly to the Quadricopter. You just need to connect your device to the AR.Drone provided access point and this component does the rest.

This currently only implements the basic movement controls for the Quadricopter. The methods are pretty straightforward to use. The values you can send are a single precision floating point number in the range from -1 to 1.

Written with Embarcadero Delphi XE6 in Object Pascal, but should also work with C++Builder, RAD Studio or Appmethod with a little effort.

Is designed to be cross platform and work in apps for Windows 32-bit, Windows 64-bit, OS X, Android and iOS.

Download You can't view the links! Click here to register

000Vnin vbr m ti?

Port scanner with full source

TurboCASH Accounting full source delphi

$
0
0
İmage
TurboCASH Accounting, entry level Accounting package for single users, small networks and distributed networks. Delphi development in Windows, Linux in Wine. Accomodates developer scripts, local plugins and multi language translation. Ideal for SME market

Nb: this source is not for me I found it

You can't view the links! Click here to register

NetController with full source code (Delphi)

Beylux messenger(chat program)


Resource Builder Creator (full code source)

Schwarze Sonne RAT v1.0 (full code source)

Arduino with Delphi XE8 ~ LiquidCrystal and Temperature

$
0
0
Connection to Arduino devices from Delphi through a simple COM port serial.
> Function
LED On/Off Switch control
Read Temperature from sensor
Send Message to LiquidCrystal 

AllaKore Remote XE6 and Delphi 7

$
0
0
All components used are native to Delphi itself.There are some observations to be taken before opening the project:
  • You should install the Delphi XE, the DCLSockets component. Simply open the Delphi XE, click "Component" -> "Install Packages". Now click "Add", now go in the "Bin" folder in the installation of Delphi XE (Example: C:\Program Files (x86)\Embarcadero\Studio\14.0\bin) and open the "dclsocketsXXX.bpl" file. The XXX are numbers according to your version of Delphi.
  • Indy10 was presenting MANY problems during the development, so I had to make some decisions to complete the project. For the correct operation of the software, we had to use Delphi to write XE6 Client and Delphi 7 to write the Server. Then, the client must be opened in Delphi XE and the Server in Delphi 7.
  • The software requires a central server, I recommend host it on a server inside your country, so there is a low latency.
  • Like any BETA project, this is subject to bugs that will be corrected over time. I count on the cooperation of all.
  • If they can solve any problem, just send the solution that it will be posted.
  • The function of the server is to route all data traffic, delivering each packet to the correct user. The server forwards the packets as soon as they are received to gain performance.
  • On the Client project, the unit has two Form_Main constant calls "Host" and "Port". In the constant "Host" you must enter the DNS or IP address of your server. In the constant "Port" you should enter the port that was chosen in the constant of the "Server".
AllaKore Remote has the following functions:
  • Connection ID and Password.
  • Remote access with RFB algorithm (Send only what has changed on the screen).
  • Data Compression (zLib).
  • Sharer files.
  • Chat.

AllaKore Remote Like Teamviewer Full Source

$
0
0
All components used are native to Delphi itself.There are some observations to be taken before opening the project:
  • You should install the Delphi XE, the DCLSockets component. Simply open the Delphi XE, click "Component" -> "Install Packages". Now click "Add", now go in the "Bin" folder in the installation of Delphi XE (Example: C:\Program Files (x86)\Embarcadero\Studio\14.0\bin) and open the "dclsocketsXXX.bpl" file. The XXX are numbers according to your version of Delphi.
  • Indy10 was presenting MANY problems during the development, so I had to make some decisions to complete the project. For the correct operation of the software, we had to use Delphi to write XE6 Client and Delphi 7 to write the Server. Then, the client must be opened in Delphi XE and the Server in Delphi 7.
  • The software requires a central server, I recommend host it on a server inside your country, so there is a low latency.
  • Like any BETA project, this is subject to bugs that will be corrected over time. I count on the cooperation of all.
  • If they can solve any problem, just send the solution that it will be posted.
  • The function of the server is to route all data traffic, delivering each packet to the correct user. The server forwards the packets as soon as they are received to gain performance.
  • On the Client project, the unit has two Form_Main constant calls "Host" and "Port". In the constant "Host" you must enter the DNS or IP address of your server. In the constant "Port" you should enter the port that was chosen in the constant of the "Server".
AllaKore Remote has the following functions:
  • Connection ID and Password.
  • Remote access with RFB algorithm (Send only what has changed on the screen).
  • Data Compression (zLib).
  • Sharer files.
  • Chat.
Viewing all 182 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>