+ All Categories
Home > Documents > Td Win32asm 030.Asm

Td Win32asm 030.Asm

Date post: 17-Feb-2018
Category:
Upload: z4rm4r
View: 229 times
Download: 0 times
Share this document with a friend

of 11

Transcript
  • 7/23/2019 Td Win32asm 030.Asm

    1/11

  • 7/23/2019 Td Win32asm 030.Asm

    2/11

    td_win32asm_030.asmDefWindowProcA PROTO :DWORD,:DWORD,:DWORD,:DWORDExitProcess PROTO :DWORDMessageBoxA PROTO :DWORD,:DWORD,:DWORD,:DWORDDestroyWindow PROTO :DWORDSendMessageA PROTO :DWORD,:DWORD,:DWORD,:DWORDCreateRectRgn PROTO :DWORD,:DWORD,:DWORD,:DWORDCreateEllipticRgn PROTO :DWORD,:DWORD,:DWORD,:DWORD

    CombineRgn PROTO :DWORD,:DWORD,:DWORD,:DWORDSetWindowRgn PROTO :DWORD,:DWORD,:DWORDLoadBitmapA PROTO :DWORD,:DWORD;==============================================================================; .const = the constants area starts here,constants are defined and fixed;------------------------------------------------------------------------------.const; - Parameter MAIN WINDOW CallBack Procedure ( API=RegisterClassExA ) -WP1_CallBack equ [ebp+4] ;return address

    WP1_hWnd equ [ebp+8] ;handle of window who receives messageWP1_uMsg equ [ebp+12] ;the message numberWP1_wParam equ [ebp+16] ;extra info about the messageWP1_lParam equ [ebp+20] ;extra info about the message

    ;==============================================================================; .Data = the data area starts here, datas are defined but not fixed;------------------------------------------------------------------------------.DataIconName db "TDIcon",0 ;icon name in rc fileClassName db "TDWinClass",0 ;name of windows class

    WindowName db "Test Department",0 ;window name titel barBu00_ClassName db "BUTTON",0 ;predefined ClassName !!!Bu01_WindowName db "DPB",0 ;button textMB1Titel db "Message Box",0 ;message box nameMB1Text db "Button in a masked main window clicked",0

    align 4button100_Ypos dd 010hbutton100_Xpos dd 009hbutton100_height dd 036h

    button100_width dd 054hbutton101_Ypos dd 056hbutton101_Xpos dd 010hbutton101_height dd 02Bhbutton101_width dd 04Ah

    button102_Ypos dd 08Fhbutton102_Xpos dd 01Bhbutton102_height dd 035hbutton102_width dd 035h

    button100_hWnd dd 0hbutton101_hWnd dd 0hbutton102_hWnd dd 0h

    Page 2

  • 7/23/2019 Td Win32asm 030.Asm

    3/11

  • 7/23/2019 Td Win32asm 030.Asm

    4/11

  • 7/23/2019 Td Win32asm 030.Asm

    5/11

  • 7/23/2019 Td Win32asm 030.Asm

    6/11

  • 7/23/2019 Td Win32asm 030.Asm

    7/11

  • 7/23/2019 Td Win32asm 030.Asm

    8/11

  • 7/23/2019 Td Win32asm 030.Asm

    9/11

  • 7/23/2019 Td Win32asm 030.Asm

    10/11

  • 7/23/2019 Td Win32asm 030.Asm

    11/11

    td_win32asm_030.asm;------------------------------------------------------------------------------; API "CombineRgn" combines two regions and stores the result in a third region;------------------------------------------------------------------------------push RGN_OR ;fnCombineMode, region combining modepush eax ;hrgnSrc2, handle of source regionpush temp ;hrgnSrc1, handle of source regionpush temp ;hrgnDest, handle of destination region

    call CombineRgn ;- API Function -ret ;;******************************************************************************

    ;==============================================================================; end Main = end of our program code;------------------------------------------------------------------------------end Main ;end of our program code, entry point

    ;==============================================================================; To create the exe file use this commands with your Microsoft Assembler/Linker;------------------------------------------------------------------------------; ml.exe /c /coff td_win32asm_030.asm ;asm command; rc.exe /v rsrc.rc ;rc command; cvtres.exe /machine:ix86 rsrc.res; link.exe /subsystem:windows td_win32asm_030.obj rsrc.obj ;link command;==============================================================================

    Page 11


Recommended