dave2k
November 21st, 2005, 03:31 PM
i have case WM_COPYDATA:
//MessageBeep(0);
PostMessage(hwnd, WM_CUSTOM, wParam, lParam);
return 0;
case WM_CUSTOM:
{
MessageBeep(0);
COPYDATASTRUCT *lpMsg =(COPYDATASTRUCT*)lParam;
MessageBox(NULL, (char*)lpMsg->lpData, "", NULL);
//MessageBeep(0);
break;
}
the reason behind doing this is to try and let the hook which is sending the WM_COPYDATA data to resume what's it's doing immediately, and for my program to spend time anaylising it's data.
The trouble is, when i run this code, i get an error: access violation when reading 0xffffff
what could this be?
//MessageBeep(0);
PostMessage(hwnd, WM_CUSTOM, wParam, lParam);
return 0;
case WM_CUSTOM:
{
MessageBeep(0);
COPYDATASTRUCT *lpMsg =(COPYDATASTRUCT*)lParam;
MessageBox(NULL, (char*)lpMsg->lpData, "", NULL);
//MessageBeep(0);
break;
}
the reason behind doing this is to try and let the hook which is sending the WM_COPYDATA data to resume what's it's doing immediately, and for my program to spend time anaylising it's data.
The trouble is, when i run this code, i get an error: access violation when reading 0xffffff
what could this be?