From ce0e2dab0f4cb1f5e4c1126eb889eb0896fe84e6 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 19 Nov 2015 13:41:02 -0500 Subject: [PATCH] vboxwrapper: reclassify the vboxwrapper as a console application on Windows. This was a hold over from the Win9x days when a console application window could not be hidden by the processed that launched it. Since we no longer need to support Win9x we can get rid of this hack. --- samples/vboxwrapper/vboxwrapper.cpp | 14 -------------- win_build/vboxwrapper.vcxproj | 8 ++++---- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index 3b6fa33bda..cb4f1d3575 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -1308,17 +1308,3 @@ int main(int argc, char** argv) { return 0; } - -#ifdef _WIN32 - -int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR Args, int WinMode) { - LPSTR command_line; - char* argv[100]; - int argc; - - command_line = GetCommandLine(); - argc = parse_command_line(command_line, argv); - return main(argc, argv); -} - -#endif diff --git a/win_build/vboxwrapper.vcxproj b/win_build/vboxwrapper.vcxproj index d24a04eeb4..a80f19b867 100644 --- a/win_build/vboxwrapper.vcxproj +++ b/win_build/vboxwrapper.vcxproj @@ -144,7 +144,7 @@ %(DelayLoadDLLs) true $(TargetDir)\$(TargetName).pdb - Windows + Console MachineX86 $(TargetDir) @@ -196,7 +196,7 @@ %(DelayLoadDLLs) true $(TargetDir)\$(TargetName).pdb - Windows + Console MachineX64 $(TargetDir) @@ -244,7 +244,7 @@ %(DelayLoadDLLs) true $(TargetDir)\$(TargetName).pdb - Windows + Console MachineX86 $(TargetDir) @@ -292,7 +292,7 @@ %(DelayLoadDLLs) true $(TargetDir)\$(TargetName).pdb - Windows + Console MachineX64 $(TargetDir)