summaryrefslogtreecommitdiff
path: root/xmerge/source/regutil
diff options
context:
space:
mode:
Diffstat (limited to 'xmerge/source/regutil')
-rw-r--r--xmerge/source/regutil/makefile.mk39
-rw-r--r--xmerge/source/regutil/regutil.cpp122
-rw-r--r--xmerge/source/regutil/regutil.dsp96
-rw-r--r--xmerge/source/regutil/regutil.dsw17
4 files changed, 0 insertions, 274 deletions
diff --git a/xmerge/source/regutil/makefile.mk b/xmerge/source/regutil/makefile.mk
deleted file mode 100644
index e520c2fb499d..000000000000
--- a/xmerge/source/regutil/makefile.mk
+++ /dev/null
@@ -1,39 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ = ..$/..
-PRJNAME = xmerge
-TARGET = regutil
-ENABLE_EXCEPTIONS=TRUE
-LIBTARGET=NO
-
-# --- Settings -----------------------------------------------------
-.INCLUDE: settings.mk
-
-.IF "$(OS)" == "WNT"
-
-OBJFILES=$(OBJ)$/regutil.obj
-APP1TARGETDEPN=makefile.mk
-APP1OBJS=$(OBJFILES)
-APP1TARGET=$(TARGET)
-APP1STDLIBS= Advapi32.lib
-
-.ENDIF
-
-# --- Targets ------------------------------------------------------
-.INCLUDE : target.mk
diff --git a/xmerge/source/regutil/regutil.cpp b/xmerge/source/regutil/regutil.cpp
deleted file mode 100644
index 2fb07466d023..000000000000
--- a/xmerge/source/regutil/regutil.cpp
+++ /dev/null
@@ -1,122 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-/*
- * Simple Application which calls the DllRegisterServer or DllUnregisterServer functions
- * of the XMerge ActiveSync plugin.
- */
-
-
-#include <stdio.h>
-#include <string.h>
-#include <windows.h>
-
-
-typedef HRESULT (STDAPICALLTYPE *DLLREGISTERSERVER)(void);
-typedef HRESULT (STDAPICALLTYPE *DLLUNREGISTERSERVER)(void);
-
-int main(int argc, char* argv[])
-{
- BOOL bUninstall = FALSE;
- int nPathIndex = 1;
-
- if (argc < 2 || argc > 3)
- {
- printf("\nUsage: regutil [/u] <Full Path of XMergeSync.dll>\n\n");
- return -1;
- }
-
-
- if (argc == 3)
- {
- if (strcmp("/u", argv[1]))
- {
- printf("\nUnrecognised option: %s\n", argv[1]);
- return -1;
- }
-
- bUninstall = TRUE;
- nPathIndex = 2;
- }
-
-
- // Dynamically load the library
- HMODULE hmXMDll = LoadLibrary(argv[nPathIndex]);
-
- if (hmXMDll == NULL)
- {
- printf("\nUnable to load the library %s\n", argv[nPathIndex]);
- return -1;
- }
-
-
- // Get an offset to the either the DllRegisterServer or DllUnregisterServer functions
- if (!bUninstall)
- {
- printf("\nRegistering %s ... ", argv[nPathIndex]);
-
- DLLREGISTERSERVER DllRegisterServer = (DLLREGISTERSERVER)GetProcAddress(hmXMDll, "DllRegisterServer");
-
- if (DllRegisterServer == NULL)
- {
- printf("failed.\n\nDllRegisterServer is not present in library.\n");
- return -1;
- }
-
- // Now call the procedure ...
- HRESULT regResult = DllRegisterServer() ;
-
- if (regResult != S_OK)
- {
- printf("failed.\n");
- return -1;
- }
- }
- else
- {
- printf("\nUnregistering %s ... ", argv[nPathIndex]);
-
- DLLUNREGISTERSERVER DllUnregisterServer = (DLLUNREGISTERSERVER)GetProcAddress(hmXMDll, "DllUnregisterServer");
-
- if (DllUnregisterServer == NULL)
- {
- printf("failed.\n\nDllUnregisterServer is not present in library.\n");
- return -1;
- }
-
- // Now call the procedure ...
- HRESULT regResult = DllUnregisterServer() ;
-
- if (regResult != S_OK)
- {
- printf("failed.\n");
- return -1;
- }
-
- }
-
- printf("done.\n");
-
-
- // Clean up
- FreeLibrary(hmXMDll);
-
- return 0;
-}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmerge/source/regutil/regutil.dsp b/xmerge/source/regutil/regutil.dsp
deleted file mode 100644
index 2c3689c047a5..000000000000
--- a/xmerge/source/regutil/regutil.dsp
+++ /dev/null
@@ -1,96 +0,0 @@
-# Microsoft Developer Studio Project File - Name="regutil" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=regutil - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "regutil.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "regutil.mak" CFG="regutil - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "regutil - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "regutil - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "regutil - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x1809 /d "NDEBUG"
-# ADD RSC /l 0x1809 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "regutil - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "regutil___Win32_Debug"
-# PROP BASE Intermediate_Dir "regutil___Win32_Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "regutil___Win32_Debug"
-# PROP Intermediate_Dir "regutil___Win32_Debug"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD BASE RSC /l 0x1809 /d "_DEBUG"
-# ADD RSC /l 0x1809 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "regutil - Win32 Release"
-# Name "regutil - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/xmerge/source/regutil/regutil.dsw b/xmerge/source/regutil/regutil.dsw
deleted file mode 100644
index 4ad03e67bffc..000000000000
--- a/xmerge/source/regutil/regutil.dsw
+++ /dev/null
@@ -1,17 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-