"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "system/DetectNetworkConfigChangesSession.cpp" between
muscle7.61.zip and muscle7.62.zip

About: MUSCLE (Multi User Server Client Linking Environment) is a messaging server and networking API. The included server program ("muscled") lets its clients message each other, and/or store information in its serverside hierarchical database.

DetectNetworkConfigChangesSession.cpp  (muscle7.61):DetectNetworkConfigChangesSession.cpp  (muscle7.62)
skipping to change at line 336 skipping to change at line 336
window_class.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); window_class.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
window_class.lpszMenuName = WINDOW_MENU_NAME; window_class.lpszMenuName = WINDOW_MENU_NAME;
window_class.lpszClassName = WINDOW_CLASS_NAME; window_class.lpszClassName = WINDOW_CLASS_NAME;
(void) RegisterClass(&window_class); // Deliberately not checking result, per Chris Guzak at http://msdn.microsoft.com/en-us/library/windows/desktop/ms633 586(v=vs.85).aspx (void) RegisterClass(&window_class); // Deliberately not checking result, per Chris Guzak at http://msdn.microsoft.com/en-us/library/windows/desktop/ms633 586(v=vs.85).aspx
// This window will never be shown; its only purpose is to allow us to rec eive WM_POWERBROADCAST events so we can alert the calling code to sleep and wake events // This window will never be shown; its only purpose is to allow us to rec eive WM_POWERBROADCAST events so we can alert the calling code to sleep and wake events
HWND hiddenWindow = CreateWindow(WINDOW_CLASS_NAME, _T(""), WS_OVERLAPPEDW INDOW, -1, -1, 0, 0, (HWND)NULL, (HMENU) NULL, NULL, (LPVOID)NULL); HWND hiddenWindow = CreateWindow(WINDOW_CLASS_NAME, _T(""), WS_OVERLAPPEDW INDOW, -1, -1, 0, 0, (HWND)NULL, (HMENU) NULL, NULL, (LPVOID)NULL);
if (hiddenWindow) if (hiddenWindow)
{ {
# if defined(MUSCLE_64_BIT_PLATFORM) # if defined(MUSCLE_64_BIT_PLATFORM)
SetWindowLongPtr(hiddenWindow, GWLP_USERDATA, this); SetWindowLongPtr(hiddenWindow, GWLP_USERDATA, (LONG_PTR) this);
# else # else
SetWindowLongPtr(hiddenWindow, GWLP_USERDATA, (LONG) this); SetWindowLongPtr(hiddenWindow, GWLP_USERDATA, (LONG) this);
# endif # endif
} }
else LogTime(MUSCLE_LOG_ERROR, "DetectNetworkConfigChangesThread::Internal ThreadEntry(): CreateWindow() failed! [%s]\n", B_ERRNO()); else LogTime(MUSCLE_LOG_ERROR, "DetectNetworkConfigChangesThread::Internal ThreadEntry(): CreateWindow() failed! [%s]\n", B_ERRNO());
# ifndef MUSCLE_AVOID_NETIOAPI # ifndef MUSCLE_AVOID_NETIOAPI
HANDLE handle1 = MY_INVALID_HANDLE_VALUE; (void) NotifyUnicastIpAddressCha nge(AF_UNSPEC, &AddressCallback, this, FALSE, &handle1); HANDLE handle1 = MY_INVALID_HANDLE_VALUE; (void) NotifyUnicastIpAddressCha nge(AF_UNSPEC, &AddressCallback, this, FALSE, &handle1);
HANDLE handle2 = MY_INVALID_HANDLE_VALUE; (void) NotifyIpInterfaceChange( AF_UNSPEC, &InterfaceCallback, this, FALSE, &handle2); HANDLE handle2 = MY_INVALID_HANDLE_VALUE; (void) NotifyIpInterfaceChange( AF_UNSPEC, &InterfaceCallback, this, FALSE, &handle2);
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)