Top Banner

of 15

Td Win32asm 022.Asm

Jun 02, 2018

Download

Documents

z4rm4r
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/10/2019 Td Win32asm 022.Asm

    1/15

  • 8/10/2019 Td Win32asm 022.Asm

    2/15

  • 8/10/2019 Td Win32asm 022.Asm

    3/15

    td_win32asm_022.asmfsStyle_02 db 0hbReserved_02 dw 1h dup (0)dwData_02 dd 0hiString_02 dd 0h

    iBitmap_03 dd 3hidCommand_03 dd 0C3hfsState_03 db 4hfsStyle_03 db 0hbReserved_03 dw 1h dup (0)dwData_03 dd 0hiString_03 dd 0h

    iBitmap_04 dd 4hidCommand_04 dd 0C4hfsState_04 db 4hfsStyle_04 db 0h

    bReserved_04 dw 1h dup (0)dwData_04 dd 0hiString_04 dd 0h

    iBitmap_05 dd 5hidCommand_05 dd 0C5hfsState_05 db 4hfsStyle_05 db 0hbReserved_05 dw 1h dup (0)dwData_05 dd 0hiString_05 dd 0h

    iBitmap_06 dd 6h ;zero-based index of button imageidCommand_06 dd 0C6h ;ID of button, WM_COMMAND uMsg/wParamfsState_06 db 4h ;state flags,4h=TBSTATE_ENABLEDfsStyle_06 db 0h ;button style,0h=TBSTYLE_BUTTONbReserved_06 dw 1h dup (0) ;reserved bytes,error in WIN32.HLP ?dwData_06 dd 0h ;application-defined valueiString_06 dd 0h ;zero-based index of button string

    iBitmap_07 dd 7h

    idCommand_07 dd 0C7hfsState_07 db 4hfsStyle_07 db 0hbReserved_07 dw 1h dup (0)dwData_07 dd 0hiString_07 dd 0h

    iBitmap_08 dd 8hidCommand_08 dd 0C8hfsState_08 db 4hfsStyle_08 db 0hbReserved_08 dw 1h dup (0)dwData_08 dd 0hiString_08 dd 0h

    Page 3

  • 8/10/2019 Td Win32asm 022.Asm

    4/15

    td_win32asm_022.asmiBitmap_09 dd 9hidCommand_09 dd 0C9hfsState_09 db 4hfsStyle_09 db 0hbReserved_09 dw 1h dup (0)dwData_09 dd 0hiString_09 dd 0h

    iBitmap_10 dd 0AhidCommand_10 dd 0CAhfsState_10 db 4hfsStyle_10 db 0hbReserved_10 dw 1h dup (0)dwData_10 dd 0hiString_10 dd 0h

    iBitmap_11 dd 0Bh

    idCommand_11 dd 0CBhfsState_11 db 4hfsStyle_11 db 0hbReserved_11 dw 1h dup (0)dwData_11 dd 0hiString_11 dd 0h

    iBitmap_12 dd 0ChidCommand_12 dd 0CChfsState_12 db 4hfsStyle_12 db 0hbReserved_12 dw 1h dup (0)dwData_12 dd 0hiString_12 dd 0h

    iBitmap_13 dd 0Dh ;zero-based index of button imageidCommand_13 dd 0CDh ;ID of button, WM_COMMAND uMsg/wParamfsState_13 db 4h ;state flags,4h=TBSTATE_ENABLEDfsStyle_13 db 0h ;button style,0h=TBSTYLE_BUTTONbReserved_13 dw 1h dup (0) ;reserved bytes,error in WIN32.HLP ?dwData_13 dd 0h ;application-defined value

    iString_13 dd 0h ;zero-based index of button string;==============================================================================; .Data? = the data? area starts here, not defined and not fixed;------------------------------------------------------------------------------.data?align 4; - WndClassEx Structure ( API=RegisterClassExA ) -cbSize dd ? ;size in bytes of this structurestyle dd ? ;window stylelpfnWndProc dd ? ;address of user proc functioncbclsExtra dd ? ;extra bytes to allocate set to 0cbWndExtra dd ? ;extra bytes class directive, rc filehInstance dd ? ;program handle(API=GetModuleHandleA)hIcon dd ? ;handle of icon (API=LoadIconA)

    Page 4

  • 8/10/2019 Td Win32asm 022.Asm

    5/15

  • 8/10/2019 Td Win32asm 022.Asm

    6/15

  • 8/10/2019 Td Win32asm 022.Asm

    7/15

  • 8/10/2019 Td Win32asm 022.Asm

    8/15

  • 8/10/2019 Td Win32asm 022.Asm

    9/15

  • 8/10/2019 Td Win32asm 022.Asm

    10/15

  • 8/10/2019 Td Win32asm 022.Asm

    11/15

  • 8/10/2019 Td Win32asm 022.Asm

    12/15

  • 8/10/2019 Td Win32asm 022.Asm

    13/15

  • 8/10/2019 Td Win32asm 022.Asm

    14/15

  • 8/10/2019 Td Win32asm 022.Asm

    15/15

    td_win32asm_022.asmWP1_return_0:popad ;pop all register from stackmov eax,0h ;set EAX to FALSE (0)mov esp,ebp ;delete stack framepop ebp ;ret 10h ;return and clear stackWP1_return_1:

    popad ;pop all register from stackmov eax,1h ;set EAX to TRUE (1)mov esp,ebp ;delete stack framepop ebp ;ret 10h ;return and clear stack;##############################################################################

    ;******************************************************************************; My own subroutine(s) for a compacter code resist here ...;------------------------------------------------------------------------------My_CleanSystem:

    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_022.asm ;asm command; rc.exe /v rsrc.rc ;rc command; cvtres.exe /machine:ix86 rsrc.res; link.exe /subsystem:windows td_win32asm_022.obj rsrc.obj ;link command;==============================================================================

    Page 15