X-Git-Url: https://git.saurik.com/apple/mdnsresponder.git/blobdiff_plain/263eeeabe5fb4d3daa8a9134371ca9a3e45875b0..2682e09e0dbe18ba42fd4707b09a89e8c34f697c:/Clients/PrinterSetupWizard/PrinterSetupWizardSheet.cpp diff --git a/Clients/PrinterSetupWizard/PrinterSetupWizardSheet.cpp b/Clients/PrinterSetupWizard/PrinterSetupWizardSheet.cpp index 07e9ca0..47e5f91 100644 --- a/Clients/PrinterSetupWizard/PrinterSetupWizardSheet.cpp +++ b/Clients/PrinterSetupWizard/PrinterSetupWizardSheet.cpp @@ -22,8 +22,8 @@ #include "DebugServices.h" #include "WinServices.h" #include "About.h" +#include "tcpxcv.h" #include -#include #include #include @@ -60,35 +60,35 @@ g_printerDriverFiles[] = // Printer driver files #define WM_SOCKET_EVENT ( WM_USER + 0x100 ) #define WM_PROCESS_EVENT ( WM_USER + 0x101 ) - - -static BOOL -Is64BitWindows() -{ -#if defined(_WIN64) - return TRUE; // 64-bit programs run only on Win64 -#else - typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS)( HANDLE, PBOOL ); - LPFN_ISWOW64PROCESS fnIsWow64Process; - BOOL bIsWow64 = FALSE; - - fnIsWow64Process = ( LPFN_ISWOW64PROCESS ) GetProcAddress( GetModuleHandle( TEXT( "kernel32" ) ), "IsWow64Process" ); - - if ( fnIsWow64Process != NULL ) - { - BOOL ok; - - ok = fnIsWow64Process( GetCurrentProcess(), &bIsWow64 ); - - if ( !ok ) - { - bIsWow64 = FALSE; - } - } - - return bIsWow64; -#endif -} + + +static BOOL +Is64BitWindows() +{ +#if defined(_WIN64) + return TRUE; // 64-bit programs run only on Win64 +#else + typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS)( HANDLE, PBOOL ); + LPFN_ISWOW64PROCESS fnIsWow64Process; + BOOL bIsWow64 = FALSE; + + fnIsWow64Process = ( LPFN_ISWOW64PROCESS ) GetProcAddress( GetModuleHandle( TEXT( "kernel32" ) ), "IsWow64Process" ); + + if ( fnIsWow64Process != NULL ) + { + BOOL ok; + + ok = fnIsWow64Process( GetCurrentProcess(), &bIsWow64 ); + + if ( !ok ) + { + bIsWow64 = FALSE; + } + } + + return bIsWow64; +#endif +} // CPrinterSetupWizardSheet