Thats a cool idea lance for getting messages lance, thanks. I am currently widening the string using:
wchar_t *wSong = (wchar_t *)malloc(sizeof(wchar_t)); mbstowcs(wSong, currentSongInfo.FullPath, strlen(currentSongInfo.FullPath)); LPCWSTR lpcwstr_SongName = (LPCWSTR)wSong; Anything wrong there? Also, is there any need to free wSong? I mean, I am not repeatedly doing this malloc thing so I dont see why free would be needed there. Thanks, Aditya On 9/24/05, Lance Vorgin <[EMAIL PROTECTED]> wrote: > -- > [ Picked text/plain from multipart/alternative ] > All sorts of ways to hook WndProc. Easiest way would be to subclass HL2's > window - SetWindowLong GWL_WNDPROC the window to your own func. You could > use SetWindowsHookEx WH_CALLWNDPROC, but that's huge and wasteful. You could > also IAT hook Dispatch/TranslateUserMessage on the appropriate module, or > patch them directly. But why can't you CreateWindow your own 0px invisible > window and use that? I haven't read up on DirectShow. > > And how are you going about widening the string? > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- http://www.pixelfaction.com AIM:ApeWithABrain _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

