aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2006-01-01 19:55:02 (GMT)
committerJouni Malinen <j@w1.fi>2006-01-01 19:55:02 (GMT)
commitd7f69abbd74b762a2b724af564659201876d7695 (patch)
treeb83562f0cd8c7917da91aa75f1d38398af93834a
parent95e5f412c6db6809f8f6ee66834e01b6cda3e7b5 (diff)
downloadhostap-history-d7f69abbd74b762a2b724af564659201876d7695.zip
hostap-history-d7f69abbd74b762a2b724af564659201876d7695.tar.gz
hostap-history-d7f69abbd74b762a2b724af564659201876d7695.tar.bz2
Added an empty wrapper for using WinMain() as the program entry
point. This allows testing linking of wpa_supplicant for Windows applications and WinCE.
-rw-r--r--wpa_supplicant/main_winmain.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/wpa_supplicant/main_winmain.c b/wpa_supplicant/main_winmain.c
new file mode 100644
index 0000000..8202aae
--- /dev/null
+++ b/wpa_supplicant/main_winmain.c
@@ -0,0 +1,32 @@
+/*
+ * WPA Supplicant / WinMain() function for Windows-based applications
+ * Copyright (c) 2006, Jouni Malinen <jkmaline@cc.hut.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#include "includes.h"
+
+#include "common.h"
+#include "wpa_supplicant_i.h"
+
+#ifdef _WIN32_WCE
+#define CMDLINE LPWSTR
+#else /* _WIN32_WCE */
+#define CMDLINE LPSTR
+#endif /* _WIN32_WCE */
+
+
+int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
+ CMDLINE lpCmdLine, int nShowCmd)
+{
+ /* TODO */
+ return 0;
+}