|
static char *rcsid = "$Id: wow64hlp.c,v 1.1 2005/10/06 20:02:21 cvs Exp $";
/*
*
* $RCSfile: wow64hlp.c,v $
* $Source: /cvs/rgsymlnk/wow64hlp.c,v $
* $Author: cvs $
* $Revision: 1.1 $
* $Date: 2005/10/06 20:02:21 $
* $State: Exp $
* Copyright (c) Stefan Kuhr
*
*
*
* $Log: wow64hlp.c,v $
* Revision 1.1 2005/10/06 20:02:21 cvs
* no message
*
*/
#pragma warning (disable:4305)
#include <windows.h>
#pragma warning (default:4305)
#include "wow64hlp.h"
typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE hProcess,PBOOL Wow64Process);
BOOL IsRunningUnderWow64(void)
{
BOOL bIsWow64 = FALSE;
#ifndef WIN64
LPFN_ISWOW64PROCESS fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(GetModuleHandleW(L"kernel32"),"IsWow64Process");
if (NULL != fnIsWow64Process)
{
if (!fnIsWow64Process(GetCurrentProcess(),&bIsWow64))
bIsWow64 = FALSE;
}
#endif
return bIsWow64;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Stefan has been writing programs in C/C++ since 1991, and for Windows since 1993. He holds a German engineer's degree Dipl.-Ing. (FH) in "Microelectronics/Technical Computer Science" from the Aalen (Germany) University of Applied Sciences and an MSc in "Software Technology" from the Stuttgart (Germany) University of Applied Sciences. Currently, he is employed by a software company in the south-west of Germany that specializes in PC life-cycle products and software deployment technology. In his spare time, Stefan likes to go swimming and enjoys listening to jazz music from the fifties. And yes, he has a Weblog at http://mcblogs.craalse.de/sku (German only).