diff --git a/reactos/subsys/system/cmd/cmd.h b/reactos/subsys/system/cmd/cmd.h index ebd574f9c9f..3185d7dc7f4 100644 --- a/reactos/subsys/system/cmd/cmd.h +++ b/reactos/subsys/system/cmd/cmd.h @@ -43,12 +43,7 @@ /* command line buffer length */ -#ifdef __REACTOS__ #define CMDLINE_LENGTH 8192 -#else -#define CMDLINE_LENGTH 8192 -//#define CMDLINE_LENGTH 1024 -#endif /* global variables */ extern HANDLE hOut; @@ -305,9 +300,6 @@ BOOL IsValidPathName (LPCTSTR); BOOL IsExistingFile (LPCTSTR); BOOL IsExistingDirectory (LPCTSTR); BOOL FileGetString (HANDLE, LPTSTR, INT); -#ifndef __REACTOS__ -HWND GetConsoleWindow(VOID); -#endif #define PROMPT_NO 0 #define PROMPT_YES 1 diff --git a/reactos/subsys/system/cmd/misc.c b/reactos/subsys/system/cmd/misc.c index 304dee63031..bb7108100ad 100644 --- a/reactos/subsys/system/cmd/misc.c +++ b/reactos/subsys/system/cmd/misc.c @@ -400,40 +400,6 @@ BOOL FileGetString (HANDLE hFile, LPTSTR lpBuffer, INT nBufferLength) return TRUE; } -#ifndef __REACTOS__ -/* - * GetConsoleWindow - returns the handle to the current console window - */ -HWND GetConsoleWindow (VOID) -{ - TCHAR original[256]; - TCHAR temp[256]; - HWND h=0; - - if(h) - return h; - - GetConsoleTitle (original, sizeof(original) / sizeof(TCHAR)); - - _tcscpy (temp, original); - _tcscat (temp, _T("-xxx ")); - - if (FindWindow (0, temp) == NULL ) - { - SetConsoleTitle (temp); - Sleep (0); - - while(!(h = FindWindow (0, temp))) - ; - - SetConsoleTitle (original); - } - - return h; -} -#endif - - INT PagePrompt (VOID) { INPUT_RECORD ir;