Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows-CPP-und-C ► ««« »»»

How can I query whether my x86 application is currently running on x64?


IsWow64Process query under x64 MS OS whether the exe works in WOW64 mode!








typedef BOOL (WINAPI * LPFN_ISWOW64PROCESS) (HANDLE, PBOOL);

LPFN_ISWOW64PROCESS fnIsWow64Process;

BOOL IsWow64 ()
{
BOOL bIsWow64 = FALSE;

fnIsWow64Process = (LPFN_ISWOW64PROCESS) GetProcAddress (
GetModuleHandle (TEXT ("kernel32")), "IsWow64Process");

if (NULL! = fnIsWow64Process)
{
if (! fnIsWow64Process (GetCurrentProcess (), & bIsWow64))
{
// handle error
}
}
return bIsWow64;
}

void main ()
{
if (IsWow64 ())
printf ("Running on WOW64 \ n");
else printf ("Running on 32-bit Windows \ n");
}


(Image-1) How can I query whether my x86 application is currently running on x64?
How can I query whether my x86 application is currently running on x64?

-
▲ Back to the top ▲




FAQ 1: Updated on: 16 April 2020 07:59 Windows
Windows-CPP-und-C

Difference between IExtractImage2 and IExtractImage?


You want to implement IExtractImage or IExtractImage2 and register it as a Windows Shell extension Simply implement IExtractImage2, this is required to
Windows-CPP-und-C

How can I query whether a path is a folder or directory?


Querying whether a path is a folder or directory is quite simple in C ++  BOOL IsThePathFolderLPCTSTR pfad { ifpfadreturn FALSE; DWORD dwAttr = GetFileAttributespfad;
Windows-CPP-und-C

Trim string in cpp?


With your own trim string in cpp, simply shorten the strings individually ////////////////////////////////////////////////// ////////////////////// // //
Windows-CPP-und-C

Was with error code -1073741701 (0xc000007b)!


The solution is very simple to fix the error code: "was ended with code -1073741701 0xc000007b error message" Mostly there are errors in the * .manifest
Windows-CPP-und-C

RGB Pixel to Negative!


Here is the solution to make an RGB pixel a negative RGB PIXEL BYTE R = 255-R;  BYTE G = 255-G;  BYTE B = 255-B;    Or with gray scaling:    BYTE gray_value
Windows-CPP-und-C

ListView_GetItemImage, ListView_GetISubtemImage!


The solution is very simple to find out in ListView Get Item Image and List View GetI Subtem Image ////////////////////////////////////////////////// //////////////////////
Windows-CPP-und-C

ShellExecuteEx function, search in LPCITEMIDLIST!


The solution is very easy to start with the ShellExecuteEx function, search for File in in  LPCITEMIDLIST BOOL SearchCmdLPCITEMIDLIST LPCITEMIDLIST item,

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, query, whether, application, currently, running, iswow64process, under, works, wow64, mode, typedef, bool, winapi, lpfn, handle, pbool, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + MagicMouseTrails
  + CpuFrequenz
  + MultiClipBoardSlots
  + OnlyStopWatch
  + KeepMouseSpeedOK
  + NonCompressibleFiles
  + 4ur-Windows-8-Mouse-Balls
  + 12-Ants
  + Q-Dir
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.077


► Create hard links and soft links under Windows via command prompt! ◄

► How can i connect with Windows 8 / 10 by using Remote Desktop Connection (command, cmd prompt)? ◄

► How can I get rid of the Desktop Pixel Query Software on Windows 11, 10, ...? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....