-
Jan 24th, 2004, 09:58 AM
#1
Thread Starter
G&G Moderator
C/C++ - PocketPC Version
I am not sure if this is the same for Windows/Other Operating Systems:
Code:
static BOOL IsPocketPC2002(void)
{
//checks for PocketPC availability...
TCHAR szPlatform[32];
OSVERSIONINFO osver;
GetVersionEx(&osver);
if (osver.dwMajorVersion == 3 && SystemParametersInfo(SPI_GETPLATFORMTYPE,
sizeof(szPlatform), szPlatform, 0) != 0 && lstrcmp(szPlatform, L"PocketPC") == 0)
return TRUE;
return FALSE;
}
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Jan 26th, 2004, 09:57 AM
#2
The version detection functions are the same for all Windows versions, but of course not for other OSs.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|