From aa287ccb88bb42f49093d891b10373a30315cade Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 11 Mar 2014 13:44:20 +0000 Subject: [PATCH] =?UTF-8?q?Dodal=20sem=20za=C4=8Detno=20verzijo=20projekta?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 9 + .gitignore | 10 ++ MSICALib/MSITSCA.cpp | 41 +++++ MSICALib/MSITSCA.h | 69 ++++++++ MSICALib/MSITSCA.vcxproj | 280 +++++++++++++++++++++++++++++++ MSICALib/MSITSCA.vcxproj.filters | 48 ++++++ MSICALib/StdAfx.cpp | 1 + MSICALib/StdAfx.h | 36 ++++ MSICALib/res/MSITSCA.rc | Bin 0 -> 50 bytes MSICALib/res/MSITSCA.rcx | Bin 0 -> 5330 bytes MSICALib/res/en_GB.po | 67 ++++++++ 11 files changed, 561 insertions(+) create mode 100644 .gitignore create mode 100644 MSICALib/MSITSCA.cpp create mode 100644 MSICALib/MSITSCA.h create mode 100644 MSICALib/MSITSCA.vcxproj create mode 100644 MSICALib/MSITSCA.vcxproj.filters create mode 100644 MSICALib/StdAfx.cpp create mode 100644 MSICALib/StdAfx.h create mode 100644 MSICALib/res/MSITSCA.rc create mode 100644 MSICALib/res/MSITSCA.rcx create mode 100644 MSICALib/res/en_GB.po 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 0000000000000000000000000000000000000000..caacfb4a3e3ecc9b48687cb77afaa4f6538e727f GIT binary patch literal 50 zcmezWPnjW;A&()MA%~%qA%!88L4iSu!IvSJ!IL2bNIEk(GUzcB0p*Q=;=Bx83;-d2 B2+05d literal 0 HcmV?d00001 diff --git a/MSICALib/res/MSITSCA.rcx b/MSICALib/res/MSITSCA.rcx new file mode 100644 index 0000000000000000000000000000000000000000..b973242acc32d465103d6c9020f51e1d7a954467 GIT binary patch literal 5330 zcmdUz+in_H6o!{?EBPI!_$HCsG)>Z*DyjtLP&X7T7)V=HLc|c4gn|Xe&G~)$l5M|# zZ+2%khS<1`gf(JjShLROnZN%!uz?Njxs7bXHL;={Tia6WSlN!OX+3LM1!$T3hSlw7 zAZ^Y+S_w#<`+fV&4jlc7jcwuhB~}2V4TqHTA@uj`H(;A^OVEv=9w1|3zkd|_vGvjS zmCew1?l8aG!1uBJ;qZ(EvrG%fUX0Dq{cZPPv}`fjyGL>e9L{=rr6fE7u>(VYj5z?OJEmpoB~so3F89z-2F@3 zy|OvM`wOr=^_?Z9D5UqCsEF4PpWM4;*(HB@Uv<%chAkt!F!{GOfaq;!@B=Z3JK8!tNxd3R z9kmNyiATMo}lF*>qekmom({FIU9+Fdk3QhU$gJ@@}lD?jPOw995z8|}LEXFs)qJ>i=7 zhv!frzK@t!QQyDp3AEK-u|BK)XdeC?c4s|4E~zDf{)lgW!D)z`)=Zn z|FbReEb}&8H6xUtEi~EQgQ}Httn)q@Z-{3sU)gjMS#{)`;-|68p);~a@jAta=V+eK zpRVg1(=wf3+@x2tZ%5tZ)edi&xl~X@6VdCem>mIRh??#8)`x@KjGrtU^{PI72hn<+FZ1o zYo1E(s_dY<\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"