mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Moved PyWin_IsWin32s() here.
This commit is contained in:
parent
5137ea9e27
commit
0e6ae93894
1 changed files with 15 additions and 1 deletions
|
|
@ -11,7 +11,21 @@
|
|||
#include <windows.h>
|
||||
#include "importdl.h"
|
||||
|
||||
extern BOOL PyWin_IsWin32s();
|
||||
/* Return whether this is Win32s, i.e., Win32 API on Win 3.1(1).
|
||||
This function is exported! */
|
||||
|
||||
BOOL PyWin_IsWin32s()
|
||||
{
|
||||
static BOOL bIsWin32s = -1; /* flag as "not yet looked" */
|
||||
|
||||
if (bIsWin32s == -1) {
|
||||
OSVERSIONINFO ver;
|
||||
ver.dwOSVersionInfoSize = sizeof(ver);
|
||||
GetVersionEx(&ver);
|
||||
bIsWin32s = ver.dwPlatformId == VER_PLATFORM_WIN32s;
|
||||
}
|
||||
return bIsWin32s;
|
||||
}
|
||||
|
||||
FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppFileDesc, char *pathBuf, int pathLen)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue