Doh!!.....found it
The function can be loaded from "AVICAP32.DLL".....
I dont know of any library to use (I couldnt get vfw32.a or its SDK counterpart to work either....) so you can link explicitely like so
Code:
#include <windows.h>
#define VFWAPI WINAPI
typedef HWND (VFWAPI *cCCW)(LPCWSTR,DWORD,int,int,int,int,HWND,int);
int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,
LPSTR lpszArgument, int nFunsterStil)
{
HWND hWndc;
HMODULE hMod;
cCCW lpFunc;
hMod = LoadLibrary("AVICAP32.DLL");
if(!hMod){MessageBox(NULL,"Error - module",NULL,0);return 1;}
lpFunc = (cCCW)GetProcAddress(hMod,"capCreateCaptureWindowW");
if(!lpFunc){MessageBox(NULL,"Error - function",NULL,0);return 1;}
hWndc = lpFunc((LPCWSTR) "Windows App",
WS_CHILD | WS_VISIBLE,0, 0, 160, 120,HWND_DESKTOP,
(int) 32);
FreeLibrary(hMod);
return 0;
}