2010. 10. 5. 06:00

닷넷에서는 포인터나 핸들을 나타내는데 사용하는 IntPtr  이라는 구조체가 있습니다.
(자세한 내용은 http://msdn.microsoft.com/ko-kr/library/system.intptr(VS.80).aspx)
32bit 운영체제 상에서 포인터는 4byte, 64bit에서는 8byte이므로
아래의 간단한 메소드를 이용하여 운영체제의 플랫폼을 확인할 수 있습니다.

if ([IntPtr]::Size -eq 8)
{
    "This is 64Bit PlatForm"
}
else
{
    "This is 32Bit PlatForm"
}


원본: http://vstarmanv.tistory.com/entry/플랫폼-구분6432bit

Posted by 알 수 없는 사용자
:
BLOG main image
Windows Server를 공부 하는 사람들의 팀블로그 by 마성민

카테고리

분류 전체보기 (76)
Windows (2)
Powershell (56)
AD (0)
Exchange (6)
System Center (9)
IIS (0)
SQL (3)
Sharepoint (0)

태그목록

Tistory Cumulus Flash tag cloud by BLUEnLIVE requires Flash Player 9 or better.

Total :
Today : Yesterday :