NewsArchive
05-12-2008, 11:52 AM
If you are developing a program that requires conditional coding for Windows
Vista Starter, the following code that uses the GetProductInfo API detects
that Windows Vista Starter is running.
DWORD dwRetProductType = 0;
DWORD dwOSMajorVersion = 6;
DWORD dwOSMinorVersion = 0;
DWORD dwSpMajorVersion = 0;
DWORD dwSpMinorVersion = 0;
BOOL bRetCode = FALSE;
bRetCode = GetProductInfo(dwOSMajorVersion,
dwOSMinorVersion,
dwSpMajorVersion,
dwSpMinorVersion,
&dwRetProductType);
if(bRetCode != 0)
{
if(dwRetProductType == PRODUCT_STARTER)
{
/*
Running on Windows Vista Starter
*/
}
}
Sharing
A computer that is running Windows Vista Starter cannot share its resources
with other computers, but can access the resources on other computers that
are running a Windows operating system other than Windows Vista Starter. For
example, hosting a file share on a system running Windows Vista Starter is
not possible.
Program Limit
If you are developing programs for Windows Vista Starter, it is important to
take the three program limit into consideration. A maximum of three programs
(Win32 processes) that have visible top-level windows can be open at once.
For each program, an unlimited number of windows can be opened for each
program.
kind Regards
Ben
Vista Starter, the following code that uses the GetProductInfo API detects
that Windows Vista Starter is running.
DWORD dwRetProductType = 0;
DWORD dwOSMajorVersion = 6;
DWORD dwOSMinorVersion = 0;
DWORD dwSpMajorVersion = 0;
DWORD dwSpMinorVersion = 0;
BOOL bRetCode = FALSE;
bRetCode = GetProductInfo(dwOSMajorVersion,
dwOSMinorVersion,
dwSpMajorVersion,
dwSpMinorVersion,
&dwRetProductType);
if(bRetCode != 0)
{
if(dwRetProductType == PRODUCT_STARTER)
{
/*
Running on Windows Vista Starter
*/
}
}
Sharing
A computer that is running Windows Vista Starter cannot share its resources
with other computers, but can access the resources on other computers that
are running a Windows operating system other than Windows Vista Starter. For
example, hosting a file share on a system running Windows Vista Starter is
not possible.
Program Limit
If you are developing programs for Windows Vista Starter, it is important to
take the three program limit into consideration. A maximum of three programs
(Win32 processes) that have visible top-level windows can be open at once.
For each program, an unlimited number of windows can be opened for each
program.
kind Regards
Ben