3 |
// |
// |
4 |
|
|
5 |
#include <windows.h> |
#include <windows.h> |
6 |
|
#include <stdio.h> |
7 |
|
|
8 |
#include "resource.h" |
#include "resource.h" |
9 |
#include "hookdll/hook.h" |
#include "hookdll/hook.h" |
10 |
|
|
11 |
|
#define snprintf _snprintf |
12 |
|
|
13 |
// |
// |
14 |
// some global data |
// some global data |
15 |
// |
// |
265 |
CloseHandle( procInfo.hThread ); |
CloseHandle( procInfo.hThread ); |
266 |
} else { |
} else { |
267 |
// CreateProcess failed. |
// CreateProcess failed. |
268 |
Message( "Unable to launch the requested application" ); |
char msg[ 256 ]; |
269 |
|
snprintf( msg, sizeof( msg ), "Unable to launch the requested application:\n%s", process ); |
270 |
|
Message( msg ); |
271 |
} |
} |
272 |
} else |
} else |
273 |
// we are launching without an app, therefore we will show the system tray app and wait for the user to close it |
// we are launching without an app, therefore we will show the system tray app and wait for the user to close it |