diff --git a/.gitattributes b/.gitattributes index 8e948c5..3f78e84 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,10 @@ * text=auto !eol +MSICALib/MSITSCA.cpp -text +MSICALib/MSITSCA.h -text +MSICALib/MSITSCA.vcxproj -text svneol=unset#text/xml +MSICALib/MSITSCA.vcxproj.filters -text svneol=unset#text/xml +MSICALib/StdAfx.cpp -text +MSICALib/StdAfx.h -text +MSICALib/res/MSITSCA.rc -text +MSICALib/res/MSITSCA.rcx -text svneol=unset#text/plain +MSICALib/res/en_GB.po -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34fa111 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +MSICALib/*.user +MSICALib/Debug.Win32 +MSICALib/Debug.x64 +MSICALib/Release.Win32 +MSICALib/Release.x64 +MSICALib/Unicode[!!-~]Debug.Win32 +MSICALib/Unicode[!!-~]Debug.x64 +MSICALib/Unicode[!!-~]Release.Win32 +MSICALib/Unicode[!!-~]Release.x64 +MSICALib/res/*.mo diff --git a/MSICALib/MSITSCA.cpp b/MSICALib/MSITSCA.cpp new file mode 100644 index 0000000..027763f --- /dev/null +++ b/MSICALib/MSITSCA.cpp @@ -0,0 +1,41 @@ +#include "StdAfx.h" + + +//////////////////////////////////////////////////////////////////////////// +// Globalne spremenljivke +//////////////////////////////////////////////////////////////////////////// + +HINSTANCE MSITSCA::hInstance = NULL; + + +//////////////////////////////////////////////////////////////////////////// +// Globalne funkcije +//////////////////////////////////////////////////////////////////////////// + +extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) +{ + UNREFERENCED_PARAMETER(lpReserved); + + switch (dwReason) { + case DLL_PROCESS_ATTACH: + MSITSCA::hInstance = hInstance; + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +} + + +//////////////////////////////////////////////////////////////////// +// Javne funkcije +//////////////////////////////////////////////////////////////////// + +UINT MSITSCA_API InstallScheduledTask(MSIHANDLE hSession) +{ + UNREFERENCED_PARAMETER(hSession); + + return ERROR_SUCCESS; +} diff --git a/MSICALib/MSITSCA.h b/MSICALib/MSITSCA.h new file mode 100644 index 0000000..cfbd419 --- /dev/null +++ b/MSICALib/MSITSCA.h @@ -0,0 +1,69 @@ +#ifndef __MSITSCA_H__ +#define __MSITSCA_H__ + + +//////////////////////////////////////////////////////////////////////////// +// Konstante +//////////////////////////////////////////////////////////////////////////// + +#define MSITSCA_VERSION 0x01000000 + +#define MSITSCA_VERSION_MAJ 1 +#define MSITSCA_VERSION_MIN 0 +#define MSITSCA_VERSION_REV 0 + +#define MSITSCA_VERSION_STR "1.0" +#define MSITSCA_VERSION_INST "1.0.0.0" + + +//////////////////////////////////////////////////////////////////// +// Kode virov +//////////////////////////////////////////////////////////////////// + +#define IDR_MAINFRAME 1 +// TODO: Dodaj definicije konstant virov tukaj. + +#if !defined(RC_INVOKED) && !defined(MIDL_PASS) + +#include + + +//////////////////////////////////////////////////////////////////// +// Nain klicanja funkcij +//////////////////////////////////////////////////////////////////// + +#if defined(MSITSCA_DLL) +#define MSITSCA_API __declspec(dllexport) +#elif defined(MSITSCA_DLLIMP) +#define MSITSCA_API __declspec(dllimport) +#else +#define MSITSCA_API +#endif + + +//////////////////////////////////////////////////////////////////// +// Javne funkcije +//////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +extern "C" { +#endif + + UINT MSITSCA_API InstallScheduledTask(MSIHANDLE hSession); + +#ifdef __cplusplus +} +#endif + + +//////////////////////////////////////////////////////////////////// +// Globalne funkcije in spremenljivke +//////////////////////////////////////////////////////////////////// + +namespace MSITSCA { + extern HINSTANCE hInstance; // roica modula +} + +#endif // !defined(RC_INVOKED) && !defined(MIDL_PASS) + +#endif // __MSITSCA_H__ diff --git a/MSICALib/MSITSCA.vcxproj b/MSICALib/MSITSCA.vcxproj new file mode 100644 index 0000000..17765bd --- /dev/null +++ b/MSICALib/MSITSCA.vcxproj @@ -0,0 +1,280 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + Unicode Debug + Win32 + + + Unicode Debug + x64 + + + Unicode Release + Win32 + + + Unicode Release + x64 + + + + {A7D9EBC1-1E64-4399-9C88-6692F8742153} + v4.0 + + + + DynamicLibrary + Static + Unicode + + + DynamicLibrary + Static + Unicode + + + DynamicLibrary + Static + MultiByte + + + DynamicLibrary + Static + MultiByte + + + DynamicLibrary + Static + Unicode + + + DynamicLibrary + Static + Unicode + + + DynamicLibrary + Static + MultiByte + + + DynamicLibrary + Static + MultiByte + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.30319.1 + ..\Test\$(Configuration).$(Platform)\ + true + ..\Test\$(Configuration).$(Platform)\ + true + ..\Test\$(Configuration).$(Platform)\ + true + ..\Test\$(Configuration).$(Platform)\ + true + ..\Test\$(Configuration).$(Platform)\ + true + ..\Test\$(Configuration).$(Platform)\ + true + ..\Test\$(Configuration).$(Platform)\ + true + ..\Test\$(Configuration).$(Platform)\ + true + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + Windows + + + %(Filename)_h.h + + + + res\en_GB.po + + + + + + Create + Create + Create + Create + Create + Create + Create + Create + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MSICALib/MSITSCA.vcxproj.filters b/MSICALib/MSITSCA.vcxproj.filters new file mode 100644 index 0000000..e33848e --- /dev/null +++ b/MSICALib/MSITSCA.vcxproj.filters @@ -0,0 +1,48 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;rcx;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;po + + + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + + + Resource Files + + + + + Resource Files + + + + + Resource Files + + + \ No newline at end of file diff --git a/MSICALib/StdAfx.cpp b/MSICALib/StdAfx.cpp new file mode 100644 index 0000000..9b13c1c --- /dev/null +++ b/MSICALib/StdAfx.cpp @@ -0,0 +1 @@ +#include "StdAfx.h" diff --git a/MSICALib/StdAfx.h b/MSICALib/StdAfx.h new file mode 100644 index 0000000..0337262 --- /dev/null +++ b/MSICALib/StdAfx.h @@ -0,0 +1,36 @@ +// StdAfx.h : include file for standard system include files, +// or project specific include files that are used frequently, +// but are changed infrequently + +#pragma once + +#if defined(_UNICODE) && !defined(UNICODE) +#define UNICODE +#endif + +#if defined(_WIN32) && !defined(WIN32) +#define WIN32 +#endif + +#ifndef STRICT +#define STRICT +#endif + +#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers +#define _WIN32_WINNT 0x0501 // Include Windows XP symbols +#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h +#ifdef _WINDLL +#define MSITSCA_DLL // Gradimo knjinico DLL +#endif +#define _ATL_APARTMENT_THREADED +#define _ATL_NO_AUTOMATIC_NAMESPACE +#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // Some CString constructors will be explicit + +#include +#include + +using namespace ATL; + +#include "BuildNum.h" + +#include "MSITSCA.h" diff --git a/MSICALib/res/MSITSCA.rc b/MSICALib/res/MSITSCA.rc new file mode 100644 index 0000000..caacfb4 Binary files /dev/null and b/MSICALib/res/MSITSCA.rc differ diff --git a/MSICALib/res/MSITSCA.rcx b/MSICALib/res/MSITSCA.rcx new file mode 100644 index 0000000..b973242 Binary files /dev/null and b/MSICALib/res/MSITSCA.rcx differ diff --git a/MSICALib/res/en_GB.po b/MSICALib/res/en_GB.po new file mode 100644 index 0000000..3760755 --- /dev/null +++ b/MSICALib/res/en_GB.po @@ -0,0 +1,67 @@ +msgid "" +msgstr "" +"Project-Id-Version: MSITSCA\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-11-29 10:54+0100\n" +"PO-Revision-Date: \n" +"Last-Translator: Simon Rozman \n" +"Language-Team: Amebis, d. o. o., Kamnik \n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: __\n" +"X-Poedit-Basepath: .\n" +"X-Generator: Poedit 1.5.4\n" +"X-Poedit-SearchPath-0: .\n" + +# Koda jezika in privzeta kodna stran ANSI za ta jezik (šesnajstiško) +# Če ne prevajamo ločeno vsake lokalne različice jezika, uporabimo kodo privzetega podjezika. +# Na primer: LANGUAGE_ENGLISH + SUBLANGUAGE_DEFAULT = 0x409, čeprav 0x409 predstavlja (tudi) ameriško angleščino (SUBLANGUAGE_ENGLISH_US = SUBLANGUAGE_DEFAULT), sami pa uporabljamo britansko. +#: MSITSCA.rcx:46 +msgid "042404e2" +msgstr "040904e4" + +# Koda jezika (šesnajstiško) +# Če ne prevajamo ločeno vsake lokalne različice jezika, uporabimo kodo privzetega podjezika. +# Na primer: LANGUAGE_ENGLISH + SUBLANGUAGE_DEFAULT = 0x409, čeprav 0x409 predstavlja (tudi) ameriško angleščino (SUBLANGUAGE_ENGLISH_US = SUBLANGUAGE_DEFAULT), sami pa uporabljamo britansko. +#: MSITSCA.rcx:64 +msgid "0x424" +msgstr "0x409" + +# Privzeta kodna stran ANSI za ta jezik (desetiško) +#: MSITSCA.rcx:64 +msgid "1250" +msgstr "1252" + +# Ime konstante, s katero vklopimo vire v tem jeziku. +#: MSITSCA.rcx:45 MSITSCA.rcx:63 MSITSCA.rcx:79 +msgid "AFX_TARG_SLV" +msgstr "AFX_TARG_ENU" + +#: MSITSCA.rcx:48 +msgid "Amebis, d. o. o., Kamnik" +msgstr "Amebis, d. o. o., Kamnik" + +# Konstanta s kodo jezika +#: MSITSCA.rcx:81 +msgid "LANG_SLOVENIAN" +msgstr "LANG_ENGLISH" + +#: MSITSCA.rcx:51 MSITSCA.rcx:53 +msgid "MSITSCA" +msgstr "MSITSCA" + +#: MSITSCA.rcx:49 +msgid "Podporna knjižnica za nameščanje načrtovanih opravil" +msgstr "Scheduled Task Installation Support Library" + +# Konstanta s kodo lokalne različice jezika +#: MSITSCA.rcx:81 +msgid "SUBLANG_DEFAULT" +msgstr "SUBLANG_DEFAULT" + +#: MSITSCA.rcx:52 +msgid "Vse pravice pridržane © Amebis, d. o. o., Kamnik, 2012" +msgstr "Copyright © Amebis, d. o. o., Kamnik, 2012"