Archive

Archive for January, 2006

WindowsVersion()

January 19th, 2006 플럿 No comments

BOOL DisplaySystemVersion()
{
OSVERSIONINFOEX osvi;
BOOL bOsVersionInfoEx;

// Try calling GetVersionEx using the OSVERSIONINFOEX structure.
//
// If that fails, try using the OSVERSIONINFO structure.

ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);

if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi)) )
{
// If OSVERSIONINFOEX doesn’t work, try OSVERSIONINFO.

osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
if (! GetVersionEx ( (OSVERSIONINFO *) &osvi) )
return FALSE;
}

switch (osvi.dwPlatformId)
{
case VER_PLATFORM_WIN32_NT:

// Test for the product.

if ( osvi.dwMajorVersion <= 4 )
printf(”Microsoft Windows NT “);

if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0 )
printf (”Microsoft Windows 2000 “);

if ( osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1 )
printf (”Microsoft Windows XP “);

// Test for product type.

if( bOsVersionInfoEx )
{
if ( osvi.wProductType == VER_NT_WORKSTATION )
{
if( osvi.wSuiteMask & VER_SUITE_PERSONAL )
printf ( “Personal ” );
else
printf ( “Professional ” );
}

else if ( osvi.wProductType == VER_NT_SERVER )
{
if( osvi.wSuiteMask & VER_SUITE_DATACENTER )
printf ( “DataCenter Server ” );
else if( osvi.wSuiteMask & VER_SUITE_ENTERPRISE )
printf ( “Advanced Server ” );
else
printf ( “Server ” );
}
}
else
{
HKEY hKey;
char szProductType[80];
DWORD dwBufLen;

RegOpenKeyEx( HKEY_LOCAL_MACHINE,
“SYSTEM\\CurrentControlSet\\Control\\ProductOptions”,
0, KEY_QUERY_VALUE, &hKey );
RegQueryValueEx( hKey, “ProductType”, NULL, NULL,
(LPBYTE) szProductType, &dwBufLen);
RegCloseKey( hKey );
if ( lstrcmpi( “WINNT”, szProductType) == 0 )
printf( “Professional ” );
if ( lstrcmpi( “LANMANNT”, szProductType) == 0 )
printf( “Server ” );
if ( lstrcmpi( “SERVERNT”, szProductType) == 0 )
printf( “Advanced Server ” );
}

// Display version, service pack (if any), and build number.

if ( osvi.dwMajorVersion <= 4 )
{
printf (”version %d.%d %s (Build %d)\n”,
osvi.dwMajorVersion,
osvi.dwMinorVersion,
osvi.szCSDVersion,
osvi.dwBuildNumber & 0xFFFF);
}
else
{
printf (”%s (Build %d)\n”,
osvi.szCSDVersion,
osvi.dwBuildNumber & 0xFFFF);
}
break;

case VER_PLATFORM_WIN32_WINDOWS:

if (osvi.dwMajorVersion == 4 && osvi.dwMinorVersion == 0)
{
printf (”Microsoft Windows 95 “);
if ( osvi.szCSDVersion[1] == ‘C’ || osvi.szCSDVersion[1] == ‘B’ )
printf(”OSR2 ” );
}

if (osvi.dwMajorVersion == 4 && osvi.dwMinorVersion == 10)
{
printf (”Microsoft Windows 98 “);
if ( osvi.szCSDVersion[1] == ‘A’ )
printf(”SE ” );
}

if (osvi.dwMajorVersion == 4 && osvi.dwMinorVersion == 90)
{
printf (”Microsoft Windows Me “);
}
break;

case VER_PLATFORM_WIN32s:

printf (”Microsoft Win32s “);
break;
}
return TRUE;
}

Categories: Development Tags: , , ,

활력소: 설잠

January 17th, 2006 플럿 No comments

나에게 있어 ‘설잠’은 번뜩이는 아이디어와 무모할정도로 강력한 추진력의 원천이기도 하다.

비몽사몽….

삶의 활력소.

그것은 제정신 과는 너무 멀리있는걸까나…

아드레날린..아드레날린..아드레날린..

 

Read more…

Categories: Tags:

리플이 달린다!

January 17th, 2006 플럿 1 comment

음.. 하나씩 체크를 해줘야하는군~ ^^

나름대로 방법은 익혔다~

하하핫.

손은 좀 가지만…괜찮은 방법이다.

블로거가 허용한 리플만 보이니..^^

자~~ 다들…. 편하게 리플달아주세여~

비공개를 원하면 비공개 해드리겠습니다~ ^^

Categories: Withsage.net Tags:

리플이 안달린다.!!

January 16th, 2006 플럿 1 comment

이런….

이거 워드프레스2 의 버그인가..

좀더 찾아볼껄 그랬나..

이런..낭패로군

리플이 제대로 안달리다니.

뭔가 설정이 바뀌어야 할듯..

흐…언제 고치지?

Categories: Withsage.net Tags:

나무키우기

January 14th, 2006 플럿 No comments

나무키우기.

클릭! 또 클릭.

좌우의 균형을 맞추면서 해보세요.

Tip. 무조건 클릭만이 능사는 아님. 균형이 맞지 않는 나무는 기다렸다가 클릭하는것이 관건

http://www.eyezmaze.com/vanilla/vanilla.swf

Categories: IT Tags:

운동

January 9th, 2006 플럿 2 comments

하..

오늘 운동 정말 많이 했다.

러닝머신 50분 – 5Km

사이클 30분 -11Km

복근운동.. 약간..

흠..첫날치곤 너무 무리했다.

내일은 좀 자제해야지. 흐흣.

 

Categories: Tags: