Last change
on this file since 1164 was 1164, checked in by John Small, 17 years ago |
Ticket 187: Draft 1: Functions only
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
865 bytes
|
Rev | Line | |
---|
[907] | 1 |
|
---|
| 2 | /***********************************************************************
|
---|
| 3 |
|
---|
| 4 | $Id: killproc.c 1164 2008-09-05 21:44:14Z jbs $
|
---|
| 5 |
|
---|
| 6 | Process killer applet
|
---|
| 7 |
|
---|
| 8 | Copyright (c) 1993-98 M. Kimes
|
---|
| 9 | Copyright (c) 2008 Steven H.Levine
|
---|
| 10 |
|
---|
| 11 | 05 Jan 08 SHL Sync
|
---|
| 12 |
|
---|
| 13 | ***********************************************************************/
|
---|
| 14 |
|
---|
[2] | 15 | #define INCL_DOS
|
---|
| 16 | #define INCL_WIN
|
---|
| 17 |
|
---|
[907] | 18 | #include "dll\fm3dlg.h"
|
---|
[2] | 19 | #include "dll\fm3dll.h"
|
---|
[1164] | 20 | #include "dll\killproc.h" // KillDlgProc
|
---|
[2] | 21 |
|
---|
[551] | 22 | int main(int argc, char *argv[])
|
---|
| 23 | {
|
---|
| 24 | HAB hab;
|
---|
| 25 | HMQ hmq;
|
---|
[2] | 26 |
|
---|
| 27 | DosError(FERR_DISABLEHARDERR);
|
---|
| 28 | hab = WinInitialize(0);
|
---|
[551] | 29 | if (hab) {
|
---|
| 30 | hmq = WinCreateMsgQueue(hab, 256);
|
---|
| 31 | if (hmq) {
|
---|
| 32 | if (InitFM3DLL(hab, argc, argv)) {
|
---|
[1164] | 33 | WinDlgBox(HWND_DESKTOP,
|
---|
| 34 | HWND_DESKTOP, KillDlgProc, FM3ModHandle, KILL_FRAME, NULL);
|
---|
[2] | 35 | }
|
---|
| 36 | DosSleep(250L);
|
---|
| 37 | WinDestroyMsgQueue(hmq);
|
---|
| 38 | }
|
---|
| 39 | WinTerminate(hab);
|
---|
| 40 | }
|
---|
| 41 | return 0;
|
---|
| 42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.