C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[7714] Re:windows 버젼 알아내는 방법?
경호 [ansoni19] 1516 읽음    2001-05-23 17:14
안녕하세요 경호입니다.

윈도우의 빌드 버젼을 알아내는 것은 GetVersion();을 사용하시면 됩니다.

헬프 내용입니다.
This function does not return the current version number of MS-DOS.
The following code fragment illustrates how to extract information from the GetVersion return value:

 
dwVersion = GetVersion();

// Get major and minor version numbers of Windows

dwWindowsMajorVersion =  (DWORD)(LOBYTE(LOWORD(dwVersion)));
dwWindowsMinorVersion =  (DWORD)(HIBYTE(LOWORD(dwVersion)));

// Get build numbers for Windows NT or Win32s

if (dwVersion < 0x80000000)                // Windows NT
    dwBuild = (DWORD)(HIWORD(dwVersion));
else if (dwWindowsMajorVersion < 4)        // Win32s
    dwBuild = (DWORD)(HIWORD(dwVersion) & ~0x8000);
else         // Windows 95 -- No build numbers provided

    dwBuild =  0;

그럼 즐프하세요 ^^

+ -

관련 글 리스트
7713 windows 버젼 알아내는 방법? 손보건 1223 2001/05/23
7714     Re:windows 버젼 알아내는 방법? 경호 1516 2001/05/23
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.