This is just a random collection of mainly network libraries for Watt-32 and/or MinGW and Visual-C that I've been involved with. There are more stuff waiting on my harddisk to get a home here, but time is limited...
struct _tm {
/* 00000000 */ int _tm_sec;
/* 00000004 */ int _tm_min;
/* 00000008 */ int _tm_hour;
/* 0000000C */ int _tm_mday;
/* 00000010 */ int _tm_mon;
/* 00000014 */ int _tm_year;
/* 00000018 */ int _tm_wday;
/* 0000001C */ int _tm_yday;
/* 00000020 */ int _tm_isdst;
/* 00000024 */ char *___tm_zone;
/* 00000028 */ int ___tm_gmtoff;
}; /* size=44 bytes */
...
00001A03 1 int _main() /* size=1115 */
00001A03 { (51)
int _argc (%ebp+8)
char **_argv (%ebp+12)
struct _SMB_Connect *_con (%ebp-12)
struct _SMB_Tree *_tree (%ebp-16)
int _opt (%ebp-20)
int _status (%ebp-24)
...
Other ongoing and/or dormant Watt-32 projects:
| CMAKE_MODULE_PATH | envtool --cmake <wildcard> | Searches the built-in module-path first. |
| INCLUDE, C_INCLUDE_PATH, CPLUS_INCLUDE_PATH | envtool --inc <wildcard> | |
| LIB, LIBRARY_PATH | envtool --lib <wildcard> | |
| MANPATH | envtool --man <wildcard> | Searches for *.[1-9]* files in sub-directories man[1-9] in %MANPATH%. |
| PATH | envtool --path <wildcard> | (1) |
| PKG_CONFIG_PATH | envtool --pkg <wildcard> | Searches for *.pc files. |
| PYTHONPATH and sys.path[] | envtool --python <wildcard> | (2) |
| Everything database | envtool --evry <wildcard> | (3) |
| Everything remote database | envtool --evry=host_or_IP_addr <wildcard> | Searches via FTP on a remote computer (which has EveryThing installed). |
05 Jan 2002 - 17:37:00: f:\windows\system32\msvcr70.dll 04 Mar 2010 - 19:06:06: f:\windows\system32\msvcr71.dll 19 Mar 2003 - 09:03:52: f:\windows\system32\msvcr71d.dll 29 Jul 2008 - 08:05:08: f:\windows\system32\msvcr90.dll 29 Jul 2008 - 08:05:08: f:\windows\system32\msvcr90d.dll 22 Apr 2003 - 14:53:38: g:\Programfiler\Sysinternals\msvcr70.dll 07 Nov 2007 - 07:19:34: g:\MinGW32\bin\CMake2.8\bin\msvcr90.dll 7 matches found for "msvcr[7-9]*.dll".
@echo off start "EtterCap" /normal /win /wait ettercap.exe %* -G -i %PCAP_DEVICE% --unoffensive --dns
c:\> test-cl.exe -abort
Calling abort().
Got SIGABRT. Backtrace:
stackwalker.cpp (1046): StackWalker::ShowCallstack
exc-abort.cpp (95): new_abort_handler
winsig.c (586): raise
abort.c (74): abort
test.cpp (33): foo::func3
test.cpp (38): foo::func2
test.cpp (43): foo::func1
test.cpp (86): foo::test_abort
test.cpp (114): main
crtexe.c (555): __tmainCRTStartup
crtexe.c (371): mainCRTStartup
7C817077 (kernel32): (filename not available): RegisterWaitForInputIdle
(the namespace "foo" is used here just to test the C++ un-decorations done by StackWalker). Compiles with
both GCC (tested only v.4.5) and Visual-C v16. Full source, makefile and some cl/gcc examples in above .zip-file.
set GNUMAKEFLAGS=--debug gnumake -f Makefile.Windows test_dllbriefly show how a DLL-function is enabled and called.
f:\MinGW32\src\inet\lwip> test-app.exe
Starting lwIP, local interface IP is 10.0.0.8
0: \\.\airpcap00
Desc: "AirPcap USB wireless capture adapter nr. 00"
1: NPF_GenericDialupAdapter
Desc: "Adapter for generic dialup and VPN capture"
2: NPF_{7F56352E-EF2F-49F4-844C-BA1FA0105667}
Desc: "MS Tunnel Interface Driver"
3: NPF_{8D3A23A7-9C6C-408B-A23B-6736F9E56510}
Desc: "Realtek 10/100/1000 Ethernet NIC
4: NPF_{75451EE7-5145-471A-BAF5-124BE8439D10}
Desc: "WAN (PPP/SLIP) Interface"
Using adapter_num: 3
Using adapter: "Realtek 10/100/1000 Ethernet NIC
status_callback==UP, local interface IP is 10.0.0.8
ping: send 10.0.0.1
ping: recv 10.0.0.1 0 ms
ping: send 10.0.0.1
ping: recv 80.202.225.1 1 ms
ping: drop
ping: recv 10.0.0.1 3 ms
ping: send 10.0.0.1
ping: recv 10.0.0.1 0 ms
ping: send 10.0.0.1
ping: recv 80.202.225.1 1 ms
ping: drop
ping: recv 10.0.0.1 4 ms
ping: send 10.0.0.1
ping: recv 10.0.0.1 1 ms
ping: send 10.0.0.1
ping: recv 10.0.0.1 1 ms
3com.com: 15.192.45.139
For lwIP-MSDOS, see the MSDOS section above.
Note: the MSVC version uses SSE2 instructions. Remove -arch:SSE2 from MSVC_CFLAGS
if you don't have a SSE2 enabled processor (who doesn't these days?).
Use it as e.g.:
make -f Makefile.Windows CC=cl clean all
adig -t PTR 89.42.216.144

Finally a "Blue-Screen-of-Death" joke
you can perform on someone if they are running Win-XP.| MS Visual-C: | cl -Fe./bsod-joke.exe bsod-joke.c winmm.lib user32.lib |
| MinGW/Cygwin: | gcc -o bsod-joke.exe bsod-joke.c -lwinmm |