summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-06-06 08:11:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-06-06 08:11:28 +0200
commitf7aa064edc20eafbc738271c5b53238fa4ad8361 (patch)
treea1c6c107fb82a0ba647f6f72fb24691a1e8f4bc7 /ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
parent2b83e2db9552d3f0abd3c4bb5543f72a96e4e4bf (diff)
Remove dead code
Diffstat (limited to 'ftnoir_protocol_sc/ftnoir_protocol_sc.cpp')
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
index a4648a74..ba4c9012 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
@@ -153,53 +153,8 @@ PDWORD_PTR MsgResult = 0;
//
bool FTNoIR_Protocol::checkServerInstallationOK()
{
- // Code to activate the context for the SimConnect DLL
- ACTCTXA act;
- HANDLE hctx;
- ULONG_PTR ulCookie;
-
- memset(&act, 0, sizeof(act));
-
qDebug() << "SCCheckClientDLL says: Starting Function";
- try {
-#if 0
- act.cbSize = sizeof(act);
- act.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID;
- char full_path[2048];
- QByteArray foo = QCoreApplication::applicationDirPath().toLatin1();
- strcpy(full_path, foo.constData());
- strcat(full_path, "/opentrack-proto-simconnect.dll");
-
- act.lpSource = full_path;
- act.lpResourceName = MAKEINTRESOURCEA(101);
-
- hctx = CreateActCtxA (&act);
-
- if (hctx != INVALID_HANDLE_VALUE) {
- if (!ActivateActCtx(hctx, &ulCookie)) {
- ReleaseActCtx(hctx);
- qDebug() << "SCCheckClientDLL says: Error activating SimConnect manifest";
- }
- }
- else {
- qDebug() << "SCCheckClientDLL says: Error INVALID_HANDLE: " << GetLastError();
- return false;
- }
- //
- // Just try to load the DLL. Let Windows handle the PATH's and such trivialities...
- //
- //
- // Deactivate the context again: the function-references should stay in-tact...
- //
- DeactivateActCtx(0, ulCookie);
- ReleaseActCtx(hctx);
-#endif
- } catch(...) {
- qDebug() << "SCCheckClientDLL says: Error loading SimConnect DLL";
- return false;
- }
-
const char* simconnect_paths[] = {
"SimConnect.DLL",
"C:\\Windows\\WinSxS\\x86_microsoft.flightsimulator.simconnect_67c7c14424d61b5b_10.0.60905.0_none_dd92b94d8a196297\\SimConnect.DLL",