summaryrefslogtreecommitdiff
path: root/modules/windows_tools/includes
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/windows_tools/includes
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'modules/windows_tools/includes')
-rwxr-xr-xmodules/windows_tools/includes/ConvertSlash.h41
-rwxr-xr-xmodules/windows_tools/includes/FocusOnConsole.h21
-rwxr-xr-xmodules/windows_tools/includes/InitializeWindows_tools.h27
-rwxr-xr-xmodules/windows_tools/includes/MutexClosingScilab.h39
-rwxr-xr-xmodules/windows_tools/includes/TerminateWindows_tools.h28
-rwxr-xr-xmodules/windows_tools/includes/dynlib_windows_tools.h28
-rwxr-xr-xmodules/windows_tools/includes/gw_windows_tools.h36
-rwxr-xr-xmodules/windows_tools/includes/strdup_windows.h50
8 files changed, 270 insertions, 0 deletions
diff --git a/modules/windows_tools/includes/ConvertSlash.h b/modules/windows_tools/includes/ConvertSlash.h
new file mode 100755
index 000000000..67aed5a90
--- /dev/null
+++ b/modules/windows_tools/includes/ConvertSlash.h
@@ -0,0 +1,41 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008 - INRIA - Allan CORNET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ */
+/*--------------------------------------------------------------------------*/
+#ifndef __CONVERTSLASH_H__
+#define __CONVERTSLASH_H__
+
+#include "BOOL.h"
+
+
+/* C:\Windows\system and C:/Windows/system */
+/* since Windows 2000 SP2 are supported */
+
+/**
+* convert a unix path to windows path 'format'
+* replaces '/' by '\'
+* @param [in] path in with '/'
+* @param [out] path out with '\'
+* @return TRUE or FALSE
+*/
+BOOL slashToAntislash(char *pathunix, char *pathwindows);
+
+/**
+* convert a windows path to unix path 'format'
+* replaces '\' by '/'
+* @param [in] path in with '\'
+* @param [out] path out with '/'
+* @return TRUE or FALSE
+*/
+BOOL AntislashToSlash(char *pathwindows, char *pathunix);
+
+#endif /* __CONVERTSLASH_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/windows_tools/includes/FocusOnConsole.h b/modules/windows_tools/includes/FocusOnConsole.h
new file mode 100755
index 000000000..8b34fa6e0
--- /dev/null
+++ b/modules/windows_tools/includes/FocusOnConsole.h
@@ -0,0 +1,21 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) DIGITEO - 2008 - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+/*--------------------------------------------------------------------------*/
+#ifndef __FOCUSONCONSOLE_H__
+#define __FOCUSONCONSOLE_H__
+
+/* set Focus on NW console */
+/* bug 3702 */
+
+void setFocusOnConsole(void);
+/*--------------------------------------------------------------------------*/
+#endif /* __FOCUSONCONSOLE_H__ */
diff --git a/modules/windows_tools/includes/InitializeWindows_tools.h b/modules/windows_tools/includes/InitializeWindows_tools.h
new file mode 100755
index 000000000..2bfd0c5bf
--- /dev/null
+++ b/modules/windows_tools/includes/InitializeWindows_tools.h
@@ -0,0 +1,27 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) INRIA - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __INITIALIZEWINDOWS_TOOLS_H__
+#define __INITIALIZEWINDOWS_TOOLS_H__
+
+#include "dynlib_windows_tools.h"
+#include "BOOL.h" /* BOOL */
+
+/**
+* Initialize Windows_tools module
+* @return TRUE or FALSE
+*/
+WINDOWS_TOOLS_IMPEXP BOOL InitializeWindows_tools(void);
+
+#endif /* __INITIALIZEWINDOWS_TOOLS_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/windows_tools/includes/MutexClosingScilab.h b/modules/windows_tools/includes/MutexClosingScilab.h
new file mode 100755
index 000000000..712988e7f
--- /dev/null
+++ b/modules/windows_tools/includes/MutexClosingScilab.h
@@ -0,0 +1,39 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) DIGITEO - 2008 - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __MUTEXCLOSINGSCILAB_H__
+#define __MUTEXCLOSINGSCILAB_H__
+
+#include "dynlib_scilab_windows.h"
+#include "BOOL.h"
+
+#define CLOSING_SCILAB_MUTEX_NAME "Closing_Scilab"
+
+/**
+* Create a named Mutex used to known if we close scilab
+*/
+SCILAB_WINDOWS_IMPEXP void createMutexClosingScilab(void);
+
+/**
+* Close named Mutex used by Innosetup
+*/
+SCILAB_WINDOWS_IMPEXP void terminateMutexClosingScilab(void);
+
+/**
+* check if Mutex about Closing scilab is opening
+* @return TRUE or FALSE
+*/
+SCILAB_WINDOWS_IMPEXP BOOL haveMutexClosingScilab(void);
+/*--------------------------------------------------------------------------*/
+
+#endif /* __MUTEXCLOSINGSCILAB_H__ */
diff --git a/modules/windows_tools/includes/TerminateWindows_tools.h b/modules/windows_tools/includes/TerminateWindows_tools.h
new file mode 100755
index 000000000..7a164a622
--- /dev/null
+++ b/modules/windows_tools/includes/TerminateWindows_tools.h
@@ -0,0 +1,28 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) INRIA - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __TERMINATEWINDOWS_TOOLS_H__
+#define __TERMINATEWINDOWS_TOOLS_H__
+
+#include "dynlib_windows_tools.h"
+#include "BOOL.h" /* BOOL */
+
+/**
+* Terminate Windows_tools module
+* @return TRUE or FALSE
+*/
+WINDOWS_TOOLS_IMPEXP BOOL TerminateWindows_tools(void);
+
+
+#endif /* __TERMINATEWINDOWS_TOOLS_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/windows_tools/includes/dynlib_windows_tools.h b/modules/windows_tools/includes/dynlib_windows_tools.h
new file mode 100755
index 000000000..bb15662ea
--- /dev/null
+++ b/modules/windows_tools/includes/dynlib_windows_tools.h
@@ -0,0 +1,28 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) DIGITEO - 2009 - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __DYNLIB_WINDOWS_TOOLS_H__
+#define __DYNLIB_WINDOWS_TOOLS_H__
+
+#ifdef _MSC_VER
+#ifdef WINDOWS_TOOLS_EXPORTS
+#define WINDOWS_TOOLS_IMPEXP __declspec(dllexport)
+#else
+#define WINDOWS_TOOLS_IMPEXP __declspec(dllimport)
+#endif
+#else
+#define WINDOWS_TOOLS_IMPEXP
+#endif
+
+#endif /* __DYNLIB_WINDOWS_TOOLS_H__ */
+/*--------------------------------------------------------------------------*/
diff --git a/modules/windows_tools/includes/gw_windows_tools.h b/modules/windows_tools/includes/gw_windows_tools.h
new file mode 100755
index 000000000..426e2de70
--- /dev/null
+++ b/modules/windows_tools/includes/gw_windows_tools.h
@@ -0,0 +1,36 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) INRIA - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __GW_WINDOWS_TOOLS_H__
+#define __GW_WINDOWS_TOOLS_H__
+/*--------------------------------------------------------------------------*/
+#include "dynlib_windows_tools.h"
+/*--------------------------------------------------------------------------*/
+WINDOWS_TOOLS_IMPEXP int gw_windows_tools(void);
+/*--------------------------------------------------------------------------*/
+/* Declaration of all the profile function declared and */
+/* used in sci_gateway */
+WINDOWS_TOOLS_IMPEXP int sci_winopen(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_winqueryreg(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_findfileassociation(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_dos(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_mcisendstring(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_consolebox(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_win64(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_istssession(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_getsystemmetrics(char *fname, unsigned long l);
+WINDOWS_TOOLS_IMPEXP int sci_createGUID(char *fname, unsigned long l);
+/*--------------------------------------------------------------------------*/
+#endif /* __GW_WINDOWS_TOOLS_H__ */
+
+
diff --git a/modules/windows_tools/includes/strdup_windows.h b/modules/windows_tools/includes/strdup_windows.h
new file mode 100755
index 000000000..a12eb4b89
--- /dev/null
+++ b/modules/windows_tools/includes/strdup_windows.h
@@ -0,0 +1,50 @@
+/*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) INRIA - Allan CORNET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution. The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+*
+*/
+
+/*--------------------------------------------------------------------------*/
+#ifndef __STRDUP_WIN_H__
+#define __STRDUP_WIN_H__
+
+/* strdup is deprecated on Windows with VS 2005 and more */
+/* required to fix warnings about strdup */
+
+#ifdef _MSC_VER
+#include <string.h>
+#ifdef strdup
+#undef strdup
+#endif
+#ifdef wstrdup
+#undef wstrdup
+#endif
+
+#define strdup strdup_windows
+#define wstrdup wstrdup_windows
+
+/**
+* Duplicate strings
+* @param[in] string source
+* @return a pointer to the storage location for the copied string
+*/
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+ char *strdup_windows(const char *strSource);
+ wchar_t *wstrdup_windows(const wchar_t *strSource);
+#ifdef __cplusplus
+};
+#endif
+
+#endif
+
+#endif /* __STRDUP_WIN_H__ */
+/*--------------------------------------------------------------------------*/ \ No newline at end of file