summaryrefslogtreecommitdiff
path: root/migrationanalysis/src/msokill
diff options
context:
space:
mode:
Diffstat (limited to 'migrationanalysis/src/msokill')
-rw-r--r--migrationanalysis/src/msokill/StdAfx.cpp6
-rw-r--r--migrationanalysis/src/msokill/StdAfx.h4
-rw-r--r--migrationanalysis/src/msokill/msokill.cpp34
3 files changed, 22 insertions, 22 deletions
diff --git a/migrationanalysis/src/msokill/StdAfx.cpp b/migrationanalysis/src/msokill/StdAfx.cpp
index 79d505fb449a..2785112a345b 100644
--- a/migrationanalysis/src/msokill/StdAfx.cpp
+++ b/migrationanalysis/src/msokill/StdAfx.cpp
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,8 +27,8 @@
************************************************************************/
// stdafx.cpp : source file that includes just the standard includes
-// msokill.pch will be the pre-compiled header
-// stdafx.obj will contain the pre-compiled type information
+// msokill.pch will be the pre-compiled header
+// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
diff --git a/migrationanalysis/src/msokill/StdAfx.h b/migrationanalysis/src/msokill/StdAfx.h
index 1a26d751fd5d..88357f68f3f1 100644
--- a/migrationanalysis/src/msokill/StdAfx.h
+++ b/migrationanalysis/src/msokill/StdAfx.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
#pragma once
#endif // _MSC_VER > 1000
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <stdio.h>
#pragma warning(push, 1)
diff --git a/migrationanalysis/src/msokill/msokill.cpp b/migrationanalysis/src/msokill/msokill.cpp
index 2125b3f773c7..32f602290b5b 100644
--- a/migrationanalysis/src/msokill/msokill.cpp
+++ b/migrationanalysis/src/msokill/msokill.cpp
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -135,12 +135,12 @@ BOOL KillAppFromWindow(
printf("App %s: window not found.\n,", appName);
#endif
bRet = FALSE;
- } else {
+ } else {
DWORD pid; // Variable to hold the process ID.
DWORD dThread; // Variable to hold (unused) thread ID.
dThread = GetWindowThreadProcessId(hWnd, &pid);
HANDLE hProcess; // Handle to existing process
-
+
hProcess = OpenProcess(SYNCHRONIZE | PROCESS_ALL_ACCESS, TRUE, pid);
if (hProcess == NULL) {
#ifdef _DEBUG
@@ -150,7 +150,7 @@ BOOL KillAppFromWindow(
} else {
if (!TerminateProcess(hProcess, 0)) {
LPTSTR lpMsgBuf;
- FormatMessage(
+ FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &lpMsgBuf, 0, NULL );
@@ -185,19 +185,19 @@ BOOL CloseActiveDialogs() {
}
/*--------------------------------------------------------------
- Callback for EnumChildWindows that sends close message to
+ Callback for EnumChildWindows that sends close message to
any dialogs that match window class of MSO dialogs
--------------------------------------------------------------*/
-BOOL CALLBACK CloseOfficeDlgProc(HWND hwndChild, LPARAM)
-{
+BOOL CALLBACK CloseOfficeDlgProc(HWND hwndChild, LPARAM)
+{
//bosa_sdm_Microsoft Word 9.0
//bosa_sdm_XL9
//#32770 (Dialog)
char szBuff[4096];
if (GetClassName(hwndChild, szBuff, 4096) == 0) {
-
+
} else {
if ((strcmpi(szBuff, pWordDlg2k) == 0) || (strcmpi(szBuff, pWordDlg2k3) == 0)) {
gWDDlgCount++;
@@ -215,21 +215,21 @@ BOOL CALLBACK CloseOfficeDlgProc(HWND hwndChild, LPARAM)
SendMessage(hwndChild, WM_CLOSE, 0, 0);
}
}
-
- return TRUE;
-}
+
+ return TRUE;
+}
/*--------------------------------------------------------------
- Callback for EnumChildWindows that counts numnnber of
+ Callback for EnumChildWindows that counts numnnber of
dialogs that match window class of MSO dialogs
--------------------------------------------------------------*/
-BOOL CALLBACK CountOfficeDlgProc(HWND hwndChild, LPARAM)
+BOOL CALLBACK CountOfficeDlgProc(HWND hwndChild, LPARAM)
{
char szBuff[4096];
if (GetClassName(hwndChild, szBuff, 4096) == 0) {
-
+
} else {
if ((strcmpi(szBuff, pWordDlg2k) == 0) || (strcmpi(szBuff, pWordDlg2k3) == 0)) {
gWDDlgCount++;
@@ -242,12 +242,12 @@ BOOL CALLBACK CountOfficeDlgProc(HWND hwndChild, LPARAM)
}
}
- return TRUE;
-}
+ return TRUE;
+}
/*--------------------------------------------------------------
Simple usage message...
-
+
-------------------------------------------------------------*/
void printUsage() {
printf("Recovery Assistant Utility - try and put MSO apps in a recoverable state\n");