Maaike van der Locht
2004-Oct-04 15:59 UTC
[Wine]passing linux devices to a program in wine
Hi, i'm trying to find out if i could use my webcam in Netmeeting. I can receive video, but am not able to send because wine can't handle this yet. So I'm doing a little "research": When I run Netmeeting in normal windows with depndency walker i see this: LoadLibraryExA("C:\Program Files\31Netmeeting\dcap32.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned 0x6C000000 by thread 1. GetProcAddress(0x6C000000 [c:\program files\31netmeeting\DCAP32.DLL], "FindFirstCaptureDevice") called from "c:\program files\31netmeeting\CONF.EXE" at address 0x00442482 and returned 0x6C0018E0 by thread 1. GetProcAddress(0x6C000000 [c:\program files\31netmeeting\DCAP32.DLL], "FindFirstCaptureDeviceByIndex") called from "c:\program files\31netmeeting\CONF.EXE" at address 0x00442494 and returned 0x6C001A18 by thread 1. GetProcAddress(0x6C000000 [c:\program files\31netmeeting\DCAP32.DLL], "GetNumCaptureDevices") called from "c:\program files\31netmeeting\CONF.EXE" at address 0x004424A6 and returned 0x6C0018AC by thread 1. LoadLibraryExA("C:\WINDOWS\SYSTEM\DEVENUM.DLL", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) called from "c:\windows\system\OLE32.DLL" at address 0x7FF45703 by thread 1. Loaded "c:\windows\system\DEVENUM.DLL" at address 0x35620000 by thread 1. Successfully hooked module. DllMain(0x35620000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\system\DEVENUM.DLL" called by thread 1. DllMain(0x35620000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\system\DEVENUM.DLL" returned 1 (0x1) by thread 1. LoadLibraryExA("C:\WINDOWS\SYSTEM\DEVENUM.DLL", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned 0x35620000 by thread 1. GetProcAddress(0x35620000 [c:\windows\system\DEVENUM.DLL], "DllGetClassObject") called from "c:\windows\system\OLE32.DLL" at address 0x7FF45723 and returned 0x3562419A by thread 1. GetProcAddress(0x35620000 [c:\windows\system\DEVENUM.DLL], "DllCanUnloadNow") called from "c:\windows\system\OLE32.DLL" at address 0x7FF45741 and returned 0x3562418E by thread 1. Apparently dcap32.dll ( a dll belonging to Netmeeting) takes care of the capturing video api's (no avicap32 is used). My question is: could it be somehow possible in wine to pass my /dev/video to this dll so that it would be recognized as the capture device and how could this be done? Or could it be possible to write a "fake" dcap32 which would do the trick(i just started learning c-programming right now)Any hints /pointers welcome. _________________________________________________________________ Hotmail en Messenger on the move http://mobile.msn.com/?lc=nl-nl