<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>프로그래밍 Tip</title>
        <link>http://www.lunapiece.net/Tips</link>
        <description></description>
        <language>ko</language>
        <pubDate>Thu, 09 Feb 2012 20:55:53 +0900</pubDate>
        <lastBuildDate>Thu, 09 Feb 2012 20:55:53 +0900</lastBuildDate>
        <generator>XpressEngine 1.5.1.6</generator>
                                <item>
            <title>BeginInvoke 호출시 Parameter 넘기기</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/27367</link>
            <guid isPermaLink="true">http://www.lunapiece.net/27367</guid>
                        <comments>http://www.lunapiece.net/27367#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;pre style=&quot;color: rgb(51, 51, 51); background-color: white; font-family: NanumGothicCoding; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; &quot;&gt;
&lt;a href=&quot;http://www.devpia.com/Maeul/Contents/Detail.aspx?BoardID=17&amp;amp;MAEULNo=8&amp;amp;no=142680&amp;amp;ref=142680&quot;&gt;http://www.devpia.com/Maeul/Contents/Detail.aspx?BoardID=17&amp;amp;MAEULNo=8&amp;amp;no=142680&amp;amp;ref=142680&lt;/a&gt;

&lt;/pre&gt;&lt;pre style=&quot;color: rgb(51, 51, 51); background-color: white; font-family: NanumGothicCoding; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; &quot;&gt;Devpia 질문으로 올라왔다.&lt;/pre&gt;&lt;pre style=&quot;color: rgb(51, 51, 51); background-color: white; font-family: NanumGothicCoding; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; &quot;&gt;&lt;span style=&quot;color: blue; &quot;&gt;    public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;delegate&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;int&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: rgb(43, 145, 175); &quot;&gt;deleg&lt;/span&gt;(&lt;span style=&quot;color: blue; &quot;&gt;int&lt;/span&gt;&amp;nbsp;a);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;int&lt;/span&gt;&amp;nbsp;helloworld(&lt;span style=&quot;color: blue; &quot;&gt;int&lt;/span&gt;&amp;nbsp;a)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: rgb(43, 145, 175); &quot;&gt;MessageBox&lt;/span&gt;.Show(a.ToString());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red; &quot;&gt;0&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;void&lt;/span&gt;&amp;nbsp;Form1_Load(&lt;span style=&quot;color: blue; &quot;&gt;object&lt;/span&gt;&amp;nbsp;sender,&amp;nbsp;&lt;span style=&quot;color: rgb(43, 145, 175); &quot;&gt;EventArgs&lt;/span&gt;&amp;nbsp;e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;this&lt;/span&gt;.BeginInvoke(&lt;span style=&quot;color: blue; &quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: rgb(43, 145, 175); &quot;&gt;deleg&lt;/span&gt;(helloworld),&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue; &quot;&gt;object&lt;/span&gt;[]&amp;nbsp;{&lt;span style=&quot;color: red; &quot;&gt;3&lt;/span&gt;});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;&lt;pre style=&quot;color: rgb(51, 51, 51); background-color: white; font-family: NanumGothicCoding; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; &quot;&gt;코드 보면 알 수 있을만큼 간단한다.&lt;/pre&gt;&lt;pre style=&quot;color: rgb(51, 51, 51); background-color: white; font-family: NanumGothicCoding; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; &quot;&gt;BeginInvoke 를 호출 하면서 delegate 외에 파라메터를 object 배열로 생성해서 넘겨주면 된다.
파라메터 갯수 안맞으면 바로 익셉션이니 주의!&lt;/pre&gt;&lt;/div&gt;</description>
                        <pubDate>Mon, 16 Jan 2012 09:26:25 +0900</pubDate>
                                </item>
                <item>
            <title>DLLMain 에서 Thread관련 이벤트 안받기</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/27332</link>
            <guid isPermaLink="true">http://www.lunapiece.net/27332</guid>
                        <comments>http://www.lunapiece.net/27332#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;DLLMain에서&amp;nbsp;DisableThreadLibraryCalls 를 호출 해 주면된다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;DLL_THREAD_ATTCH와&amp;nbsp;DLL_THREAD_DETACH를 받지 않고 넘어갈 수 있다.&lt;/p&gt;&lt;p&gt;메모리 점유율이 조금 줄어든다고 한다(괜히 case 에 return 처리할 필요 없으니 편하기도 하다)&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Wed, 04 Jan 2012 15:53:52 +0900</pubDate>
                                </item>
                <item>
            <title>VMWare 8 Exclusive Mode Full Screen (전체화면)</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/27098</link>
            <guid isPermaLink="true">http://www.lunapiece.net/27098</guid>
                        <comments>http://www.lunapiece.net/27098#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;VMWare 8 에서는 7까지와 다르게 Exclusive Mode 로 들어가면 FullScreen 이 되는게 아니라, 화면 가운데에 위치 하게 됩니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;뭐 일반적으론 문제될 게 없지만, 전체화면으로 돌던 저해상도 프로그램을 돌리긴 귀찮죠...&lt;/p&gt;&lt;p&gt;근데 이게 안되는게 아니라 옵션으로 추가된겁니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Edit -&amp;gt; Preferences -&amp;gt; Display 에서&lt;/p&gt;&lt;p&gt;2번째 옵션인 Stretch guest 를 선택 해 주면 풀 스크린으로 뜹니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;http://www.lunapiece.net/files/attach/images/101/098/027/ac288617e10d705408ed3e40b3bc05e4.png&quot; alt=&quot;2.png&quot; class=&quot;iePngFix&quot; width=&quot;579&quot; height=&quot;485&quot; style=&quot;&quot; /&gt;
&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Tue, 27 Sep 2011 14:29:13 +0900</pubDate>
                                </item>
                <item>
            <title>NTFS 파일 메타데이터 기록 제거</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/27002</link>
            <guid isPermaLink="true">http://www.lunapiece.net/27002</guid>
                        <comments>http://www.lunapiece.net/27002#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;NFTS 형태의 파일시스템은 최적화 등의 작업을 위해 파일을 Read 할 때에도 몇가지 Write 작업이 발생 하게 된다.&lt;/p&gt;&lt;p&gt;그 중 하나가 파일 접근횟수, 시간 등을 기록하는 것인데 이는 디스크조각모음 할때 이용하게 된다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;뭐... 어쨋든 끌수 있다면 꺼버리면 평상시 속도가 좀 더 좋아진단 얘기다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;커맨드창을 관리자모드로 열고&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;fsutil behavior set DisableLastAccess 1&lt;/p&gt;&lt;p&gt;을 실행하면 끌 수 있다&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;0은 다시 켜기&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Sun, 24 Jul 2011 11:28:53 +0900</pubDate>
                                </item>
                <item>
            <title>Visual Studio 에디터 색상 테마</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4916</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4916</guid>
                        <comments>http://www.lunapiece.net/4916#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://studiostyl.es/&quot;&gt;http://studiostyl.es/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;많이 제공한다.&lt;/p&gt;&lt;a href=&quot;http://studiostyl.es/&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://studiostyl.es/&quot;&gt;&lt;/a&gt;


&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;</description>
                        <pubDate>Mon, 21 Mar 2011 21:40:01 +0900</pubDate>
                                </item>
                <item>
            <title>원격에서 서비스 켜고 끄기</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4832</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4832</guid>
                        <comments>http://www.lunapiece.net/4832#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;일단 권한을 획득 해야 한다.&lt;/p&gt;&lt;p&gt;net use \\[HostName] /user:[계정명] [암호]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;그후&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;sc \\[HostName] start [서비스명]&lt;/p&gt;&lt;p&gt;sc \\[HostName] stop [서비스명]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;상태 알아오는 명령어는 query&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Fri, 11 Mar 2011 11:52:06 +0900</pubDate>
                                </item>
                <item>
            <title>FireBird 에서 ISNULL 함수</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4512</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4512</guid>
                        <comments>http://www.lunapiece.net/4512#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;COALESCE로 &amp;nbsp;대치한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;사용법은 MSSQL 의 ISNULL과 동일&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Fri, 21 Jan 2011 11:31:48 +0900</pubDate>
                                </item>
                <item>
            <title>Console Project에서 HInstance 얻어오기</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4480</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4480</guid>
                        <comments>http://www.lunapiece.net/4480#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;GetModuleHandle(NULL);를 사용하여 구한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Win32 에서는 프로세스의 Instance 와 ModuleHandle 이 동일하다.&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Sat, 08 Jan 2011 20:59:33 +0900</pubDate>
                                </item>
                <item>
            <title>실행파일 경로 알아내기.</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4478</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4478</guid>
                        <comments>http://www.lunapiece.net/4478#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;GetModuleFileName를 사용한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;첫 파라메터가 NULL이면 자기자신의 경로를, 모듈의 핸들을 넘기면 그 모듈의 경로를 얻어온다&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Sat, 08 Jan 2011 18:33:23 +0900</pubDate>
                                </item>
                <item>
            <title>std::string 대소문자 변경. Uppercase, Lowercase</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4474</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4474</guid>
                        <comments>http://www.lunapiece.net/4474#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;div&gt;#include &amp;lt;algorithm&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;std::transform(str.begin(), str.end(), str.begin(), towupper);&lt;/div&gt;&lt;div&gt;std::transform(str.begin(), str.end(), str.begin(), towlower);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description>
                        <pubDate>Sat, 08 Jan 2011 17:43:01 +0900</pubDate>
                                </item>
                <item>
            <title>WELL 랜덤 알고리즘[작성중]</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4464</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4464</guid>
                        <comments>http://www.lunapiece.net/4464#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;WELL 랜덤 알고리즘


&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Wed, 05 Jan 2011 10:03:31 +0900</pubDate>
                                </item>
                <item>
            <title>Asio PDF 문서</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4460</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4460</guid>
                        <comments>http://www.lunapiece.net/4460#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;출처 불명. 어디서 가져오긴 했는데...&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Tue, 04 Jan 2011 17:48:15 +0900</pubDate>
                                </item>
                <item>
            <title>VS2010 추천 Extension</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4452</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4452</guid>
                        <comments>http://www.lunapiece.net/4452#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;1. Solution Navigator&lt;/p&gt;&lt;p&gt;Solution Explorer 와 Class Explorer 의 기능을 하나로 합쳐 보여줌. 단... 닷넷전용 =_=;;;&lt;/p&gt;&lt;p&gt;검색기능이 쓸만해서 사용중. 덤으로 델파이처럼 Ctrl + Click 으로 정의부 이동하는 기능을 가진다. 편함. 근데 선언부-&amp;gt;정의부 이동만 된다 =_=; 반대는 안됨&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;(Productivity Power Tools 내부에 포함됨)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. Visual Assist&lt;/p&gt;&lt;p&gt;딴거 제쳐두고 C++에서 Refactoring 을 지원한다는 것 하나만으로도 이것이 없으면 &quot;버틸수가 없다!&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3. Indent Guides&lt;/p&gt;&lt;p&gt;블럭에 색이 있는 줄을 그려서 어디까지가 한 블럭인지 보여준다.&lt;/p&gt;&lt;p&gt;Delphi용 Extension 에서 많이 보이는 [ 형태의 라인이 아니라 | 형태라서 좀 아쉽긴 하다.&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Tue, 04 Jan 2011 10:44:33 +0900</pubDate>
                                </item>
                <item>
            <title>Windows에서 Ping 날리기.</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4449</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4449</guid>
                        <comments>http://www.lunapiece.net/4449#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;p&gt;Windows XP Sp2 이상의 버전에서는 보안때문에 RAW Socket을 열 수 없도록 되어있다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;그래서 Ping 도 날릴 수 없는데 이런 ICMP 관련 프로토콜을 사용할 수 있도록 도와주는 API가 존재한다. 사용법은 아래와 같다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;#include &amp;lt;IPExport.h&amp;gt;&lt;/p&gt;&lt;p&gt;#include &amp;lt;icmpapi.h&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;hostent* host = NULL;&lt;/p&gt;&lt;p&gt;in_addr inaddr;&lt;/p&gt;&lt;p&gt;inaddr.s_addr = ::inet_addr(&quot;155.230.29.10&quot;);&lt;/p&gt;&lt;p&gt;if (inaddr.s_addr == INADDR_NONE)&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;host = ::gethostbyname(&quot;155.230.29.10&quot;);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;else&amp;nbsp;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;host = ::gethostbyaddr((const char*)&amp;amp;inaddr, sizeof(inaddr), AF_INET);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;if (host != NULL)&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;HANDLE hICMP = ::IcmpCreateFile();&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ICMP_ECHO_REPLY iep;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;iep.RoundTripTime = 0xFFFFFFFF;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DWORD dw = ::IcmpSendEcho(hICMP,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*((ULONG*)host-&amp;gt;h_addr_list[0]),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0,0,NULL,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;iep, sizeof(ICMP_ECHO_REPLY), 5000);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cout &amp;lt;&amp;lt; &quot;RoundTripTime:&quot; &amp;lt;&amp;lt; iep.RoundTripTime &amp;lt;&amp;lt; endl;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;::IcmpCloseHandle(hICMP);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description>
                        <pubDate>Mon, 03 Jan 2011 10:41:01 +0900</pubDate>
                                </item>
                <item>
            <title>MAC Address 구하기</title>
            <dc:creator>Lyn</dc:creator>
            <link>http://www.lunapiece.net/4447</link>
            <guid isPermaLink="true">http://www.lunapiece.net/4447</guid>
                        <comments>http://www.lunapiece.net/4447#comment</comments>
                                    <description>&lt;div class=&quot;xe_content&quot;&gt;&lt;div&gt;string GetMacAddress()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;const int BufferSize = 256;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;char Buffer[BufferSize];&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;IP_ADAPTER_INFO &amp;nbsp; *AdapterInfo;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;ULONG Length = 0;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;ZeroMemory(Buffer, BufferSize);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if (GetAdaptersInfo(NULL, &amp;amp;Length) == ERROR_BUFFER_OVERFLOW )&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;AdapterInfo = new IP_ADAPTER_INFO[Length];&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;GetAdaptersInfo(AdapterInfo, &amp;amp;Length);&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;if (AdapterInfo)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;			&lt;/span&gt;sprintf_s&amp;lt;BufferSize&amp;gt;(Buffer, &quot;%2X-%2X-%2X-%2X-%2X-%2X&quot;,AdapterInfo-&amp;gt;Address[0], AdapterInfo-&amp;gt;Address[1], AdapterInfo-&amp;gt;Address[2], AdapterInfo-&amp;gt;Address[3], AdapterInfo-&amp;gt;Address[4], AdapterInfo-&amp;gt;Address[5]);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;									&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;delete[] AdapterInfo;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;return Buffer;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;/div&gt;</description>
                        <pubDate>Thu, 23 Dec 2010 01:47:18 +0900</pubDate>
                                </item>
            </channel>
</rss>

