Module: wine
Branch: master
Commit: b8a2b17af657122ebc09cad17d1b49f8f5828249
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b8a2b17af657122ebc09cad17…
Author: Detlef Riekenberg <wine.dev(a)web.de>
Date: Sat Oct 21 18:45:53 2006 +0200
localspl: Remember hInstance, needed for resources.
---
dlls/localspl/localspl_main.c | 5 ++++-
dlls/localspl/localspl_private.h | 29 +++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletions(-)
diff --git a/dlls/localspl/localspl_main.c b/dlls/localspl/localspl_main.c
index b9ce877..9fd72e0 100644
--- a/dlls/localspl/localspl_main.c
+++ b/dlls/localspl/localspl_main.c
@@ -35,10 +35,12 @@ #include "winspool.h"
#include "ddk/winsplp.h"
#include "wine/debug.h"
-
+#include "localspl_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(localspl);
+HINSTANCE LOCALSPL_hInstance = NULL;
+
/*****************************************************
* DllMain
*/
@@ -53,6 +55,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hinstDLL );
+ LOCALSPL_hInstance = hinstDLL;
break;
}
return TRUE;
diff --git a/dlls/localspl/localspl_private.h b/dlls/localspl/localspl_private.h
new file mode 100644
index 0000000..63ca891
--- /dev/null
+++ b/dlls/localspl/localspl_private.h
@@ -0,0 +1,29 @@
+/*
+ * Implementation of the Local Printmonitor: internal include file
+ *
+ * Copyright 2006 Detlef Riekenberg
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_LOCALSPL_PRIVATE__
+#define __WINE_LOCALSPL_PRIVATE__
+
+
+/* ## DLL-wide Globals ## */
+extern HINSTANCE LOCALSPL_hInstance;
+
+
+#endif /* __WINE_LOCALSPL_PRIVATE__ */
Module: wine
Branch: master
Commit: c9dc7ccda271dde072252fe403c434e107271f84
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9dc7ccda271dde072252fe40…
Author: Detlef Riekenberg <wine.dev(a)web.de>
Date: Sat Oct 21 18:45:01 2006 +0200
localspl: Add version resource.
---
dlls/localspl/Makefile.in | 2 ++
dlls/localspl/localspl.rc | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/dlls/localspl/Makefile.in b/dlls/localspl/Makefile.in
index 0e74179..1e468b9 100644
--- a/dlls/localspl/Makefile.in
+++ b/dlls/localspl/Makefile.in
@@ -9,6 +9,8 @@ C_SRCS = \
localmon.c \
localspl_main.c
+RC_SRCS = localspl.rc
+
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/localspl/localspl.rc b/dlls/localspl/localspl.rc
new file mode 100644
index 0000000..4098452
--- /dev/null
+++ b/dlls/localspl/localspl.rc
@@ -0,0 +1,36 @@
+/*
+ * Top level resource file for localspl
+ *
+ * Copyright 2006 Detlef Riekenberg
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#include "windef.h"
+#include "winbase.h"
+#include "winver.h"
+
+#define WINE_FILENAME_STR "localspl.dll"
+#define WINE_FILEDESCRIPTION_STR "Wine Printer spooler component"
+
+/* Same Version as WinXP_sp2 */
+#define WINE_FILEVERSION 5,1,2600,2180
+#define WINE_FILEVERSION_STR "5.1.2600.2180"
+
+#define WINE_PRODUCTVERSION 5,1,2600,2180
+#define WINE_PRODUCTVERSION_STR "5.1.2600.2180"
+
+#include "wine/wine_common_ver.rc"