source: zzuf/trunk/test/zznop.c @ 4648

Last change on this file since 4648 was 4648, checked in by Sam Hocevar, 11 years ago

Improve the DLL injection code. Now seems to work rather
well under Windows. But it needs a lot of polishing.

File size: 874 bytes
Line 
1/*
2 *  zznop - almost empty program that does almost nothing
3 *  Copyright (c) 2009-2010 Sam Hocevar <sam@hocevar.net>
4 *                All Rights Reserved
5 *
6 *  This program is free software. It comes without any warranty, to
7 *  the extent permitted by applicable law. You can redistribute it
8 *  and/or modify it under the terms of the Do What The Fuck You Want
9 *  To Public License, Version 2, as published by Sam Hocevar. See
10 *  http://sam.zoy.org/wtfpl/COPYING for more details.
11 */
12
13#include "config.h"
14
15#include <stdio.h>
16#include <stdlib.h>
17
18#if defined HAVE_WINDOWS_H
19#   include <windows.h>
20#endif
21
22int main(void)
23{
24#if defined HAVE_WINDOWS_H
25    AllocConsole();
26
27    fprintf(stderr, "About to call LoadLibraryA()\n");
28    LoadLibraryA("whatever");
29    fprintf(stderr, "Finished calling LoadLibraryA()\n");
30
31    getchar();
32#endif
33
34    return EXIT_SUCCESS;
35}
36
Note: See TracBrowser for help on using the repository browser.