I am kind of new to the whole assembly thing. I am just wondering if this code is ok. Someone told me I should save ebx.Code:void a(char *string, HWND rsHwnd) { sMessage = (DWORD)GetProcAddress(LoadLibrary("User32.dll"), "SendMessageA"); LPARAM lstring = LPARAM(string); __asm { mov eax, rsHwnd xor ebx, ebx cmp eax, ebx je $invalidHandle mov ebx, WM_SETTEXT push lstring push 0 push ebx push eax call sMessage $invalidHandle: }; }



LinkBack URL
About LinkBacks



CornedBee