Hi again all! Could somebody recommend me
a book that gives some explanation on what windows
needs ..?
What I actually want to understand is what these things below(handle, hInst etc.) is and why its necessary ?
Regards,
laskar
DATA SECTION
;
hInst DD 0 ;to keep the handle to the process itself
hDC DD 0 ;to keep the handle of the device context
PAINTSTRUCT DD 16 DUP 0 ;structure to hold stuff from Windows on WM_PAINT
MSG DD 7 DUP 0 ;structure to hold messages from Windows as follows:-
;hwnd, +4=message, +8=wParam, +C=lParam, +10h=time, +14h/18=pt
WNDCLASS DD 10D DUP 0 ;structure to send to RegisterClass holding data:-
;+0 window class style (CS_)
;+4 pointer to Window Procedure
;+8 no. of extra bytes to allocate after structure
;+C no. of extra bytes to allocate after window instance
;+10 handle to instance of this window class
;+14 handle to the class icon
;+18 handle to the class cursor
;+1C identifies the class background brush
;+20 pointer to resource name for class menu
;+24 pointer to string for window class name
;******************** Window message table
; (in a real program this would deal with many more messages)
MESSAGES DD (ENDOF_MESSAGES-$-4)/8 ;=number to be done
DD 1h,CREATE,2h,DESTROY,0Fh,PAINT
ENDOF_MESSAGES: ;label used to work out how many messages
a book that gives some explanation on what windows
needs ..?
What I actually want to understand is what these things below(handle, hInst etc.) is and why its necessary ?
Regards,
laskar
DATA SECTION
;
hInst DD 0 ;to keep the handle to the process itself
hDC DD 0 ;to keep the handle of the device context
PAINTSTRUCT DD 16 DUP 0 ;structure to hold stuff from Windows on WM_PAINT
MSG DD 7 DUP 0 ;structure to hold messages from Windows as follows:-
;hwnd, +4=message, +8=wParam, +C=lParam, +10h=time, +14h/18=pt
WNDCLASS DD 10D DUP 0 ;structure to send to RegisterClass holding data:-
;+0 window class style (CS_)
;+4 pointer to Window Procedure
;+8 no. of extra bytes to allocate after structure
;+C no. of extra bytes to allocate after window instance
;+10 handle to instance of this window class
;+14 handle to the class icon
;+18 handle to the class cursor
;+1C identifies the class background brush
;+20 pointer to resource name for class menu
;+24 pointer to string for window class name
;******************** Window message table
; (in a real program this would deal with many more messages)
MESSAGES DD (ENDOF_MESSAGES-$-4)/8 ;=number to be done
DD 1h,CREATE,2h,DESTROY,0Fh,PAINT
ENDOF_MESSAGES: ;label used to work out how many messages