1588, 79/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   ½Â¸®ÀǹڼºÈ¯
   C¾ð¾î·Î ¸¸µç ±×·¡ÇÈ ÇÁ·Î±×·¥

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=267 [º¹»ç]


C¾ð¾î´Â ¹«ÇÑÇÑ ¾ð¾îÀÔ´Ï´Ù. Àß ¹è¿ì½Ã¸é ÁÁ½À´Ï´Ù.

-------------------------

#include <windows.h>

LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
HINSTANCE g_hInst;
LPSTR lpszClass="Mouse";

int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance
                  ,LPSTR lpszCmdParam,int nCmdShow)
{
        HWND hWnd;
        MSG Message;
        WNDCLASS WndClass;
        g_hInst=hInstance;
        
        WndClass.cbClsExtra=0;
        WndClass.cbWndExtra=0;
        WndClass.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);
        WndClass.hCursor=LoadCursor(NULL,IDC_ARROW);
        WndClass.hIcon=LoadIcon(NULL,IDI_APPLICATION);
        WndClass.hInstance=hInstance;
        WndClass.lpfnWndProc=(WNDPROC)WndProc;
        WndClass.lpszClassName=lpszClass;
        WndClass.lpszMenuName=NULL;
        WndClass.style=CS_HREDRAW | CS_VREDRAW;
        RegisterClass(&WndClass);

        hWnd=CreateWindow(lpszClass,lpszClass,WS_OVERLAPPEDWINDOW,
                  CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
                  NULL,(HMENU)NULL,hInstance,NULL);
        ShowWindow(hWnd,nCmdShow);
        
        while(GetMessage(&Message,0,0,0)) {
                TranslateMessage(&Message);
                DispatchMessage(&Message);
        }
        return Message.wParam;
}

LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam)
{
        HDC hdc;
        static int x;
        static int y;
        static BOOL bnowDraw=FALSE;
        switch(iMessage) {
        case WM_LBUTTONDOWN:
                x=LOWORD(lParam);
                y=HIWORD(lParam);
                bnowDraw=TRUE;
                return 0;
        case WM_MOUSEMOVE:
                if (bnowDraw==TRUE) {
                        hdc=GetDC(hWnd);
                        MoveToEx(hdc,x,y,NULL);
                        x=LOWORD(lParam);
                        y=HIWORD(lParam);
                        LineTo(hdc,x+1,y+2);
                        LineTo(hdc,x+2,y+3);
                        LineTo(hdc,x-1,y-2);
                        LineTo(hdc,x-2,y-3);
                        LineTo(hdc,y+1,x+2);
                        LineTo(hdc,y+2,x+3);
                        LineTo(hdc,y-1,x-2);
                        LineTo(hdc,y-2,x-3);
                        LineTo(hdc,x+2,y+1);
                        LineTo(hdc,x+3,y+2);
                        LineTo(hdc,x-2,y-1);
                        LineTo(hdc,x-3,y-2);
                        LineTo(hdc,y+2,x+1);
                        LineTo(hdc,y+3,x+2);
                        LineTo(hdc,y-2,x-1);
                        LineTo(hdc,y-3,x-2);
                        ReleaseDC(hWnd,hdc);
                }
                return 0;
        case WM_LBUTTONUP:
                bnowDraw=FALSE;
                return 0;
        case WM_DESTROY:
                PostQuitMessage(0);
                return 0;
        }
        return(DefWindowProc(hWnd,iMessage,wParam,lParam));
}

----------------------------------------

»ó´çÈ÷ API Áß ½¬¿î ºÎºÐ¸¸ ´Ù·ç¾ú°í ¸Þ½ÃÁö ºÎºÐµµ ½¬¿î ¸Þ½ÃÁö¸¸

ó¸®ÇÏ¿´½À´Ï´Ù. ¾ó¸¶µçÁö ¼öÁ¤Çؼ­ ¾Ë¾Æº¸¼¼¿ä. ¿©±â¼­ ±×·¡ÇÈ¿¡ °ü·ÃµÈ ¼Ò½º´Â


if (bnowDraw==TRUE) {
                        hdc=GetDC(hWnd);
                        MoveToEx(hdc,x,y,NULL);
                        x=LOWORD(lParam);
                        y=HIWORD(lParam);
                        LineTo(hdc,x+1,y+2);
                        LineTo(hdc,x+2,y+3);
                        LineTo(hdc,x-1,y-2);
                        LineTo(hdc,x-2,y-3);
                        LineTo(hdc,y+1,x+2);
                        LineTo(hdc,y+2,x+3);
                        LineTo(hdc,y-1,x-2);
                        LineTo(hdc,y-2,x-3);
                        LineTo(hdc,x+2,y+1);
                        LineTo(hdc,x+3,y+2);
                        LineTo(hdc,x-2,y-1);
                        LineTo(hdc,x-3,y-2);
                        LineTo(hdc,y+2,x+1);
                        LineTo(hdc,y+3,x+2);
                        LineTo(hdc,y-2,x-1);
                        LineTo(hdc,y-3,x-2);
                        ReleaseDC(hWnd,hdc);
                }
                return 0;

ÀÌ°ÍÀÌ´Ï±î ¿©±â¸¦ Àß °íÃĺ¸¼¼¿ä. ¼ýÀÚ¸¸ °íÄ¡°Å³ª º¯¼ö¸¦ µû·Î ¸¸µé¾îµµ

±¦Âú½À´Ï´Ù.


±×¸² :

---------


  Hit : 19265     Date : 2005/04/22 05:05



    
nsh009 ºê¶óº¸ 2005/04/24
pkg61 ¾î¶²°ÇÁö º¸±¸ ½Í¾ú´Âµ¥ ÄÄÆÄÀÏÀÌ ¾ÈµÇ³×¿ä...;; ±×³É Çѹø ¾î¶²°ÇÁö º¸°í½Í¾ú´Âµ¥... 2005/06/12  
tmma À½.. ÇѹøÇغ¼±î ±×·¡ÇÈÀ̶ó °ü½ÉÀº ¾ø´Âµ¥.. 2005/06/26  
rkqldhd ¸ÚÀֳ׿ä~ 2005/07/29  
kamijyo ÄÄÆÄÀÏÀÌ ¾ÈµÇ´Â´ë 2005/07/30  
greatjino ÄÄÆÄÀÏ ¾È´ë´Â´ë.. 2005/08/13  
sjun3 api ¼³¸í ÇϽô°Å? api´Â c¾ð¾î¿¡ ¼ÓÇØÀÖ±ä ÇÏÁö¸¸;; 2005/08/24  
vdiablo2v int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ÁÙ¿¡¼­ ¿¡·¯°¡..;; 2005/09/22
... À©µµ¿ìâ Çϳª ¸¸µå´Âµ¥ ¾öû³ª°Ô ±æ°Ô ½á¾ß ÇÏ´øµ¥... ¤Ì 2005/10/03
mati À©µµ¿ì ÄܼÖȯ°æ¿¡¼­ ÄÄÆÄÀÏÇϼžߵ˴ϴÙ. 2006/12/01  
AstroBoy API±º¿ä 2009/04/02  
28   Format String Attack - Concept and General Exploit (by Seo SungHyen)[6]     ¼ÒÀ¯
07/07 11941
27   [ÀÚÀÛ] FTZ Æ®·¹ÀÌ´× 1~10±îÁö °£´ÜÇÏ°Ô Á¤¸®[14]     ¼Ò¿ï
03/01 15633
26   [ÀÚÀÛ] À©µµ¿ì cmd ÆÁ - º¹»çÇϱâ[7]     ¼Ò¿ï
03/01 9557
25   [ÀÚÀÛ] [C¹®Á¦] Á¡(.)À» »« ¹®ÀÚ Ãâ·ÂÇϱâ[1]     ¼Ò¿ï
03/20 7214
24   [ÀÚÀÛ] [C¹®Á¦] ¼Ò¼ö¸¸ °É·¯³»±â[2]     ¼Ò¿ï
03/20 8432
23   [ÀÚÀÛ] [C¹®Á¦] ´ë¼Ò¹®ÀÚ ¹Ù²Ù±â[3]     ¼Ò¿ï
03/20 7639
22   IP ¿Í PORT[8]     ¼Û½Ã
11/02 10533
21   À©µµ¿ì¿¡¼­ grep »ç¿ëÇϱâ[3]     ¼Û½Ã
11/05 8749
20   NET SEND ¸í·É°­ÁÂ[8]     ¼­´öÁø
09/23 7345
19   ¹Ø¿¡ Á¦°¡ ¿Ã¸° API ¼Ò½º¿¡ ´ëÇؼ­.........     ½Â¸®ÀǹڼºÈ¯
10/02 9162
18   ¸®´ª½º ¼³Ä¡ + Windows¼³Ä¡(»ýÃʺ¸¿¡°Ô ÁÁÀº °­ÁÂ)!![3]     ½Â¸®ÀǹڼºÈ¯
04/15 15497
  C¾ð¾î·Î ¸¸µç ±×·¡ÇÈ ÇÁ·Î±×·¥[11]     ½Â¸®ÀǹڼºÈ¯
04/22 19264
16   [ÀÚÀÛ] C¾ð¾î º¯¼ö ÀÌÇØÇϱâ[9]     ½È¾î ³»°¡ÇÒ²¨¾ß
02/13 9121
15   #01 Protel CAD - ¼­¹®     ¾ÆÀÌÇÁ¸®µå
11/21 11469
14   [Project] Àü±â,ÀüÀÚ »ó½Ä ¹× »þÇÁ½ÉÀ¸·Î Àü±¸¸¸µé±â. - 1[11]     ¾ÆÀÌÇÁ¸®µå
02/03 12173
13   [Project] Àü±â,ÀüÀÚ »ó½Ä ¹× »þÇÁ½ÉÀ¸·Î Àü±¸¸¸µé±â. - 2     ¾ÆÀÌÇÁ¸®µå
02/03 10375
12   [Project] Àü±â,ÀüÀÚ »ó½Ä ¹× »þÇÁ½ÉÀ¸·Î Àü±¸¸¸µé±â. - 3[16]     ¾ÆÀÌÇÁ¸®µå
02/03 13590
11   Çϵå¿þ¾î¿Í ¼ÒÇÁÆ®¿þ¾î...±×¸®°í ºÒ°¡´ÉÇÑÀÏ?[16]     ¾ÆÀÌÇÁ¸®µå
01/11 10225
10   [ÀÚÀÛ] ¿Ö Little Endian Àΰ¡ ?[6]     ¿ì´À´Ô
03/09 7426
9   [ÀÚÀÛ]c¾ð¾î <Æ÷ÀÎÅÍ> ij½±°Ô ¼³¸íÇصå·Á¿ä~[6]     ¿ì´À´Ô
01/07 7299
[1]..[71][72][73][74][75][76][77][78] 79 [80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org