; int __stdcall wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd)
_wWinMain@16 proc near
var_4= dword ptr -4
hInstance= dword ptr 4
hPrevInstance= dword ptr 8
lpCmdLine= dword ptr 0Ch
nShowCmd= dword ptr 10h
From what I see, the last 4 variables are parameters passed to the WinMain function. In addition, var_4 must be an int variable, declared later in the function body. Now I have a couple of questions:
a) What is the word size in a 32-bit Windows program? 4 bytes? being the word 8?
b) Why is var_4 set to -4? Why not start, say, 0?
c) The standard procedure for defining ints in c, though
var_x = dword ptr y?
thanks
source
share