Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 10 files changed
  • 0 comments
  • 1 contributor
38 CeSuite.sln
@@ -40,93 +40,55 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CeList", "Tools\CeList\CeLi
40 40 EndProject
41 41 Global
42 42 GlobalSection(SolutionConfigurationPlatforms) = preSolution
43   - Debug|Mixed Platforms = Debug|Mixed Platforms
44 43 Debug|Pocket PC 2003 (ARMV4) = Debug|Pocket PC 2003 (ARMV4)
45 44 Debug|Win32 = Debug|Win32
46   - Release|Mixed Platforms = Release|Mixed Platforms
47 45 Release|Pocket PC 2003 (ARMV4) = Release|Pocket PC 2003 (ARMV4)
48 46 Release|Win32 = Release|Win32
49 47 EndGlobalSection
50 48 GlobalSection(ProjectConfigurationPlatforms) = postSolution
51   - {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Debug|Mixed Platforms.ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
52   - {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Debug|Mixed Platforms.Build.0 = Debug|Pocket PC 2003 (ARMV4)
53   - {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Debug|Mixed Platforms.Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
54 49 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
55 50 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
56 51 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Debug|Win32.ActiveCfg = Debug|Win32
57 52 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Debug|Win32.Build.0 = Debug|Win32
58   - {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Release|Mixed Platforms.ActiveCfg = Release|Pocket PC 2003 (ARMV4)
59   - {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Release|Mixed Platforms.Build.0 = Release|Pocket PC 2003 (ARMV4)
60   - {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Release|Mixed Platforms.Deploy.0 = Release|Pocket PC 2003 (ARMV4)
61 53 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
62 54 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
63 55 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Release|Win32.ActiveCfg = Release|Win32
64 56 {1E2009FE-CA2E-40E7-AD83-31BB46671AD2}.Release|Win32.Build.0 = Release|Win32
65   - {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Debug|Mixed Platforms.ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
66   - {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Debug|Mixed Platforms.Build.0 = Debug|Pocket PC 2003 (ARMV4)
67   - {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Debug|Mixed Platforms.Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
68 57 {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
69 58 {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
70 59 {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Debug|Win32.ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
71   - {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Release|Mixed Platforms.ActiveCfg = Release|Pocket PC 2003 (ARMV4)
72   - {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Release|Mixed Platforms.Build.0 = Release|Pocket PC 2003 (ARMV4)
73   - {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Release|Mixed Platforms.Deploy.0 = Release|Pocket PC 2003 (ARMV4)
74 60 {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
75 61 {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
76 62 {FF4436FF-6EAD-4BC0-9E4E-8AAD3520E7E3}.Release|Win32.ActiveCfg = Release|Pocket PC 2003 (ARMV4)
77   - {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
78   - {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Debug|Mixed Platforms.Build.0 = Debug|Win32
79 63 {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Win32
80 64 {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Debug|Win32.ActiveCfg = Debug|Win32
81 65 {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Debug|Win32.Build.0 = Debug|Win32
82   - {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Release|Mixed Platforms.ActiveCfg = Release|Win32
83   - {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Release|Mixed Platforms.Build.0 = Release|Win32
84 66 {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Win32
85 67 {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Release|Win32.ActiveCfg = Release|Win32
86 68 {B7C491D2-45FE-44FB-ADD0-82B75E13B05C}.Release|Win32.Build.0 = Release|Win32
87   - {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Debug|Mixed Platforms.ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
88   - {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Debug|Mixed Platforms.Build.0 = Debug|Pocket PC 2003 (ARMV4)
89   - {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Debug|Mixed Platforms.Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
90 69 {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
91 70 {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
92 71 {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Debug|Win32.ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
93   - {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Release|Mixed Platforms.ActiveCfg = Release|Pocket PC 2003 (ARMV4)
94   - {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Release|Mixed Platforms.Build.0 = Release|Pocket PC 2003 (ARMV4)
95   - {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Release|Mixed Platforms.Deploy.0 = Release|Pocket PC 2003 (ARMV4)
96 72 {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
97 73 {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
98 74 {4405149F-06D2-43F5-A7AE-0A2119B964B7}.Release|Win32.ActiveCfg = Release|Pocket PC 2003 (ARMV4)
99   - {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Debug|Mixed Platforms.ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
100   - {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Debug|Mixed Platforms.Build.0 = Debug|Pocket PC 2003 (ARMV4)
101   - {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Debug|Mixed Platforms.Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
102 75 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
103 76 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
104 77 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Debug|Win32.ActiveCfg = Debug|Win32
105 78 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Debug|Win32.Build.0 = Debug|Win32
106   - {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Release|Mixed Platforms.ActiveCfg = Release|Pocket PC 2003 (ARMV4)
107   - {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Release|Mixed Platforms.Build.0 = Release|Pocket PC 2003 (ARMV4)
108   - {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Release|Mixed Platforms.Deploy.0 = Release|Pocket PC 2003 (ARMV4)
109 79 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
110 80 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
111 81 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Release|Win32.ActiveCfg = Release|Win32
112 82 {8E8016DF-77FD-453D-A653-16BEEE85B21B}.Release|Win32.Build.0 = Release|Win32
113   - {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
114   - {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Debug|Mixed Platforms.Build.0 = Debug|Win32
115 83 {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Win32
116 84 {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Debug|Win32.ActiveCfg = Debug|Win32
117 85 {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Debug|Win32.Build.0 = Debug|Win32
118   - {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Release|Mixed Platforms.ActiveCfg = Release|Win32
119   - {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Release|Mixed Platforms.Build.0 = Release|Win32
120 86 {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Win32
121 87 {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Release|Win32.ActiveCfg = Release|Win32
122 88 {98ACF19A-1ED5-44EF-B995-3CDB01104DC7}.Release|Win32.Build.0 = Release|Win32
123   - {ACE6632C-9408-4A8D-A857-585830B03873}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
124   - {ACE6632C-9408-4A8D-A857-585830B03873}.Debug|Mixed Platforms.Build.0 = Debug|Win32
125 89 {ACE6632C-9408-4A8D-A857-585830B03873}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Win32
126 90 {ACE6632C-9408-4A8D-A857-585830B03873}.Debug|Win32.ActiveCfg = Debug|Win32
127 91 {ACE6632C-9408-4A8D-A857-585830B03873}.Debug|Win32.Build.0 = Debug|Win32
128   - {ACE6632C-9408-4A8D-A857-585830B03873}.Release|Mixed Platforms.ActiveCfg = Release|Win32
129   - {ACE6632C-9408-4A8D-A857-585830B03873}.Release|Mixed Platforms.Build.0 = Release|Win32
130 92 {ACE6632C-9408-4A8D-A857-585830B03873}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Win32
131 93 {ACE6632C-9408-4A8D-A857-585830B03873}.Release|Win32.ActiveCfg = Release|Win32
132 94 {ACE6632C-9408-4A8D-A857-585830B03873}.Release|Win32.Build.0 = Release|Win32
2  Libs/Registry/include/Registry/RegistryException.h
@@ -37,7 +37,7 @@ namespace Registry
37 37 * \ingroup Registry
38 38 * \brief RegistryException class.
39 39 */
40   - class REGISTRY_API RegistryException : Core::CoreException
  40 + class REGISTRY_API RegistryException : public Core::CoreException
41 41 {
42 42 public :
43 43 /*!
12 Libs/Remote/Remote.vcproj
@@ -40,7 +40,7 @@
40 40 <Tool
41 41 Name="VCCLCompilerTool"
42 42 Optimization="0"
43   - AdditionalIncludeDirectories="$(ActiveSyncIncludeDir);$(CoreIncludeDir);$(DebugIncludeDir)"
  43 + AdditionalIncludeDirectories="$(ActiveSyncIncludeDir);$(CoreIncludeDir);$(RegistryIncludeDir)"
44 44 PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
45 45 MinimalRebuild="true"
46 46 RuntimeLibrary="3"
@@ -100,7 +100,7 @@
100 100 Name="VCCLCompilerTool"
101 101 Optimization="2"
102 102 EnableIntrinsicFunctions="true"
103   - AdditionalIncludeDirectories="$(ActiveSyncIncludeDir);$(CoreIncludeDir)"
  103 + AdditionalIncludeDirectories="$(ActiveSyncIncludeDir);$(CoreIncludeDir);$(RegistryIncludeDir)"
104 104 PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
105 105 EnableFunctionLevelLinking="true"
106 106 UsePrecompiledHeader="0"
@@ -213,6 +213,14 @@
213 213 RelativePath=".\src\RemoteImpl.h"
214 214 >
215 215 </File>
  216 + <File
  217 + RelativePath=".\src\RemoteRegistryImpl.cpp"
  218 + >
  219 + </File>
  220 + <File
  221 + RelativePath=".\src\RemoteRegistryImpl.h"
  222 + >
  223 + </File>
216 224 </Filter>
217 225 </Files>
218 226 <Globals>
1  Libs/Remote/src/PreCompile.h
@@ -36,6 +36,7 @@
36 36 #include <Rapi2.h>
37 37
38 38 #include "Core/CoreApi.h"
  39 +#include "Registry/RegistryApi.h"
39 40 #include "Remote/RemoteApi.h"
40 41
41 42 #pragma comment(lib, "rapi")
10 Tools/CeAgent/src/Main.cpp
@@ -21,7 +21,7 @@
21 21 * \file
22 22 * \author Johan Andersson <skagget77@gmail.com>
23 23 * \date 2010-04-13 22:38
24   - * \brief CeAgent entry point.
  24 + * \brief CeAgent.
25 25 */
26 26
27 27 #include "PreCompile.h"
@@ -58,7 +58,7 @@ void RunProcess( const std::wstring& name, const std::wstring& file, const std::
58 58 if(CreateProcess(file.c_str(), args.c_str(), 0, 0, 0, DEBUG_PROCESS, 0, 0, 0, &procinfo))
59 59 {
60 60 IDebuggerPtr debugger = CreateDebugger(
61   - IDebugListenerPtr(new ProcessMonitor(CreateRegistry(L"Software\\CeDebug"), name)));
  61 + IDebugListenerPtr(new ProcessMonitor(CreateRegistry(L"Software\\CeAgent"), name)));
62 62
63 63 while(debugger->Wait());
64 64 }
@@ -83,9 +83,9 @@ int WINAPI WinMain( HINSTANCE instance, HINSTANCE prevInstance, LPWSTR cmdLine,
83 83 {
84 84 IParserPtr parser = CreateParser(cmdLine, true);
85 85
86   - std::wstring name = parser->GetValue(L"/NAME");
87   - std::wstring file = parser->GetValue(L"/FILE");
88   - std::wstring args = parser->GetValue(L"/ARGS", L"");
  86 + std::wstring name = parser->GetValue(L"/name");
  87 + std::wstring file = parser->GetValue(L"/path");
  88 + std::wstring args = parser->GetValue(L"/args", L"");
89 89
90 90 RunProcess(name, file, args);
91 91 }
14 Tools/CeRun/CeRun.vcproj
@@ -18,8 +18,6 @@
18 18 <Configurations>
19 19 <Configuration
20 20 Name="Debug|Win32"
21   - OutputDirectory="$(SolutionDir)Bin\$(ConfigurationName)"
22   - IntermediateDirectory="$(SolutionDir)Bin\$(ConfigurationName)\Tmp\$(ProjectName)"
23 21 ConfigurationType="1"
24 22 InheritedPropertySheets="$(SolutionDir)Props\Windows.vsprops"
25 23 CharacterSet="1"
@@ -42,10 +40,9 @@
42 40 <Tool
43 41 Name="VCCLCompilerTool"
44 42 Optimization="0"
45   - AdditionalIncludeDirectories="$(ActiveSyncIncludeDir)"
  43 + AdditionalIncludeDirectories="$(CoreIncludeDir);$(RemoteIncludeDir)"
46 44 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
47 45 MinimalRebuild="true"
48   - BasicRuntimeChecks="3"
49 46 RuntimeLibrary="3"
50 47 UsePrecompiledHeader="2"
51 48 PrecompiledHeaderThrough="PreCompile.h"
@@ -64,7 +61,6 @@
64 61 />
65 62 <Tool
66 63 Name="VCLinkerTool"
67   - AdditionalDependencies="rapi.lib rapiuuid.lib"
68 64 LinkIncremental="2"
69 65 AdditionalLibraryDirectories="$(ActiveSyncLibDir)"
70 66 IgnoreDefaultLibraryNames="libc.lib, libcmt.lib, msvcrt.lib, libcd.lib, libcmtd.lib"
@@ -96,8 +92,6 @@
96 92 </Configuration>
97 93 <Configuration
98 94 Name="Release|Win32"
99   - OutputDirectory="$(SolutionDir)$(ConfigurationName)"
100   - IntermediateDirectory="$(ConfigurationName)"
101 95 ConfigurationType="1"
102 96 InheritedPropertySheets="$(SolutionDir)Props\Windows.vsprops"
103 97 CharacterSet="1"
@@ -122,12 +116,10 @@
122 116 Name="VCCLCompilerTool"
123 117 Optimization="2"
124 118 EnableIntrinsicFunctions="true"
  119 + AdditionalIncludeDirectories="$(CoreIncludeDir);$(RemoteIncludeDir)"
125 120 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
126   - RuntimeLibrary="2"
127   - EnableFunctionLevelLinking="true"
128 121 UsePrecompiledHeader="0"
129 122 WarningLevel="3"
130   - DebugInformationFormat="3"
131 123 />
132 124 <Tool
133 125 Name="VCManagedResourceCompilerTool"
@@ -141,6 +133,8 @@
141 133 <Tool
142 134 Name="VCLinkerTool"
143 135 LinkIncremental="1"
  136 + AdditionalLibraryDirectories="$(ActiveSyncLibDir)"
  137 + IgnoreDefaultLibraryNames="libc.lib;libcmt.lib;msvcrtd.lib;libcd.lib;libcmtd.lib"
144 138 GenerateDebugInformation="true"
145 139 SubSystem="1"
146 140 OptimizeReferences="2"
36 Tools/CeRun/src/CeRunFwd.h
... ... @@ -1,16 +1,30 @@
  1 +/*
  2 + * This file is part of CeSuite.
  3 + *
  4 + * CeSuite is free software: you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation, either version 3 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * CeSuite is distributed in the hope that it will be useful,
  10 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12 + * GNU General Public License for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License
  15 + * along with CeSuite. If not, see <http://www.gnu.org/licenses/>.
  16 + *
  17 + * Copyright 2010 Johan Andersson.
  18 + */
  19 +
  20 +/*!
  21 + * \file
  22 + * \author Johan Andersson <skagget77@gmail.com>
  23 + * \date 2010-10-03 10:49
  24 + * \brief CeRun forward declarations.
  25 + */
1 26
2 27 #if !defined(CERUN_CERUNFWD_H)
3 28 #define CERUN_CERUNFWD_H
4 29
5   -#include <AtlBase.h>
6   -
7   -struct IRAPIDesktop;
8   -typedef CComPtr<IRAPIDesktop> IRAPIDesktopPtr;
9   -
10   -struct IRAPIEnumDevices;
11   -typedef CComPtr<IRAPIEnumDevices> IRAPIEnumDevicesPtr;
12   -
13   -struct IRAPIDevice;
14   -typedef CComPtr<IRAPIDevice> IRAPIDevicePtr;
15   -
16 30 #endif // CERUN_CERUNFWD_H
73 Tools/CeRun/src/Main.cpp
... ... @@ -1,38 +1,65 @@
  1 +/*
  2 + * This file is part of CeSuite.
  3 + *
  4 + * CeSuite is free software: you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation, either version 3 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * CeSuite is distributed in the hope that it will be useful,
  10 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12 + * GNU General Public License for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License
  15 + * along with CeSuite. If not, see <http://www.gnu.org/licenses/>.
  16 + *
  17 + * Copyright 2010 Johan Andersson.
  18 + */
  19 +
  20 +/*!
  21 + * \file
  22 + * \author Johan Andersson <skagget77@gmail.com>
  23 + * \date 2010-10-03 10:49
  24 + * \brief CeRun.
  25 + */
1 26
2 27 #include "PreCompile.h"
3 28 #include "CeRunFwd.h"
  29 +#include "Core/CoreException.h"
  30 +#include "Remote/Device.h"
  31 +#include "Remote/Remote.h"
  32 +#include "Remote/RemoteException.h"
  33 +#include "Remote/RemoteFactory.h"
4 34
5 35 #include <AtlBase.h>
6   -
7 36 #include <iostream>
8 37
  38 +
  39 +using namespace Remote;
  40 +
  41 +
9 42 int wmain()
10 43 {
11   - CoInitializeEx(0, COINIT_MULTITHREADED);
  44 + if(CoInitializeEx(0, COINIT_MULTITHREADED) == S_OK)
12 45 {
13   - IRAPIDesktopPtr rapidesktop;
14   -
15   - if(rapidesktop.CoCreateInstance(CLSID_RAPI) == S_OK)
16   - {
17   - IRAPIEnumDevicesPtr enumdevices;
18   -
19   - if(rapidesktop->EnumDevices(&enumdevices) == S_OK)
20   - {
21   - IRAPIDevicePtr device;
  46 + try
  47 + {
  48 + IRemotePtr remote = CreateRemote();
22 49
23   - if(enumdevices->Next(&device) == S_OK)
24   - {
25   - RAPI_DEVICEINFO devinfo;
  50 + IDeviceCollection coll = remote->ListDevices();
26 51
27   - device->GetDeviceInfo(&devinfo);
  52 + for(IDeviceCollection::const_iterator it = coll.begin(); it != coll.end(); ++it)
  53 + {
  54 + (*it)->Execute(L"\\CeAgent.exe", L"/name monkey /file \\TestWM5.exe");
  55 + //(*it)->CopyFileTo(L"d:\\git\\cesuite\\Bin\\Debug\\Pocket PC 2003 (ARMV4)\\CeAgent.exe", L"\\CeAgent2.exe");
  56 + }
  57 + }
  58 + catch(Core::CoreException& e)
  59 + {
  60 + std::wcout << L"Caught exception: '" << e.GetDetails() << L"'" << std::endl;
  61 + }
28 62
29   - std::wcout << "Name......: " << devinfo.bstrName << std::endl
30   - << "Plaform...: " << devinfo.bstrPlatform << std::endl
31   - << "Version...: " << devinfo.dwOsVersionMajor << "."
32   - << devinfo.dwOsVersionMinor << std::endl;
33   - }
34   - }
35   - }
  63 + CoUninitialize();
36 64 }
37   - CoUninitialize();
38 65 }
25 Tools/CeRun/src/PreCompile.cpp
... ... @@ -1,2 +1,27 @@
  1 +/*
  2 + * This file is part of CeSuite.
  3 + *
  4 + * CeSuite is free software: you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation, either version 3 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * CeSuite is distributed in the hope that it will be useful,
  10 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12 + * GNU General Public License for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License
  15 + * along with CeSuite. If not, see <http://www.gnu.org/licenses/>.
  16 + *
  17 + * Copyright 2010 Johan Andersson.
  18 + */
  19 +
  20 +/*!
  21 + * \file
  22 + * \author Johan Andersson <skagget77@gmail.com>
  23 + * \date 2010-10-03 10:49
  24 + * \brief CeRun precompiled header.
  25 + */
1 26
2 27 #include "PreCompile.h"
29 Tools/CeRun/src/PreCompile.h
... ... @@ -1,8 +1,33 @@
  1 +/*
  2 + * This file is part of CeSuite.
  3 + *
  4 + * CeSuite is free software: you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation, either version 3 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * CeSuite is distributed in the hope that it will be useful,
  10 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12 + * GNU General Public License for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License
  15 + * along with CeSuite. If not, see <http://www.gnu.org/licenses/>.
  16 + *
  17 + * Copyright 2010 Johan Andersson.
  18 + */
  19 +
  20 +/*!
  21 + * \file
  22 + * \author Johan Andersson <skagget77@gmail.com>
  23 + * \date 2010-10-03 10:49
  24 + * \brief CeRun precompiled header.
  25 + */
1 26
2 27 #if !defined(CERUN_PRECOMPILE_H)
3 28 #define CERUN_PRECOMPILE_H
4 29
5   -#include <WinSock2.h>
6   -#include <Rapi2.h>
  30 +#include "Core/CoreApi.h"
  31 +#include "Remote/RemoteApi.h"
7 32
8 33 #endif // CERUN_PRECOMPILE_H

No commit comments for this range

Something went wrong with that request. Please try again.