/[rdesktop]/sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.cpp
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1004 by astrand, Tue Aug 30 11:28:55 2005 UTC revision 1005 by astrand, Tue Aug 30 11:34:05 2005 UTC
# Line 113  LRESULT CALLBACK CallWndProc( int nCode, Line 113  LRESULT CALLBACK CallWndProc( int nCode,
113                    rect->bottom - rect->top,                    rect->bottom - rect->top,
114                    0 );                    0 );
115          result[ sizeof( result ) - 1 ] = '\0';          result[ sizeof( result ) - 1 ] = '\0';
116            WriteToChannel( result );
117          break;          break;
118                    
119                    
# Line 139  LRESULT CALLBACK CallWndProc( int nCode, Line 140  LRESULT CALLBACK CallWndProc( int nCode,
140                        wp->flags & SWP_NOACTIVATE ? wp->hwndInsertAfter : 0,                        wp->flags & SWP_NOACTIVATE ? wp->hwndInsertAfter : 0,
141                        0 );                        0 );
142              result[ sizeof( result ) - 1 ] = '\0';              result[ sizeof( result ) - 1 ] = '\0';
143                WriteToChannel( result );
144          }          }
145          break;          break;
146                    
# Line 148  LRESULT CALLBACK CallWndProc( int nCode, Line 150  LRESULT CALLBACK CallWndProc( int nCode,
150              snprintf( result, sizeof( result ),              snprintf( result, sizeof( result ),
151                        "CREATE1,0x%p,0x%x\n",                        "CREATE1,0x%p,0x%x\n",
152                        details->hwnd, 0 );                        details->hwnd, 0 );
153                result[ sizeof( result ) - 1 ] = '\0';
154                WriteToChannel( result );
155          }          }
156          break;          break;
157                    
# Line 157  LRESULT CALLBACK CallWndProc( int nCode, Line 161  LRESULT CALLBACK CallWndProc( int nCode,
161              snprintf( result, sizeof( result ),              snprintf( result, sizeof( result ),
162                        "DESTROY1,0x%p,0x%x\n",                        "DESTROY1,0x%p,0x%x\n",
163                        details->hwnd, 0 );                        details->hwnd, 0 );
164                result[ sizeof( result ) - 1 ] = '\0';
165                WriteToChannel( result );
166          }          }
167                    
168          break;          break;
# Line 166  LRESULT CALLBACK CallWndProc( int nCode, Line 172  LRESULT CALLBACK CallWndProc( int nCode,
172          break;          break;
173      }      }
174            
     if ( result[ 0 ] != '\0' ) {  
         WriteToChannel( result );  
     }  
       
175      return CallNextHookEx( hhook3, nCode, wParam, lParam );      return CallNextHookEx( hhook3, nCode, wParam, lParam );
176  }  }
177    
# Line 201  LRESULT CALLBACK CbtProc( int nCode, WPA Line 203  LRESULT CALLBACK CbtProc( int nCode, WPA
203                    windowTitle,                    windowTitle,
204                    LOWORD( lParam ),                    LOWORD( lParam ),
205                    0 );                    0 );
206            result[ sizeof( result ) - 1 ] = '\0';
207            WriteToChannel( result );
208          break;          break;
209                    
210                    
# Line 208  LRESULT CALLBACK CbtProc( int nCode, WPA Line 212  LRESULT CALLBACK CbtProc( int nCode, WPA
212          break;          break;
213      }      }
214            
215      if ( result[ 0 ] != '\0' ) {      
         WriteToChannel( result );  
     }  
216            
217      return CallNextHookEx( hhook, nCode, wParam, lParam );      return CallNextHookEx( hhook, nCode, wParam, lParam );
218  }  }
# Line 276  LRESULT CALLBACK ShellProc( int nCode, W Line 278  LRESULT CALLBACK ShellProc( int nCode, W
278          strcat( result, "W=" );          strcat( result, "W=" );
279          strcat( result, strW );          strcat( result, strW );
280          strcat( result, "." );          strcat( result, "." );
281                    WriteToChannel( result );
282          break;          break;
283                    
284          case HSHELL_WINDOWDESTROYED:          case HSHELL_WINDOWDESTROYED:
# Line 319  LRESULT CALLBACK ShellProc( int nCode, W Line 321  LRESULT CALLBACK ShellProc( int nCode, W
321          strcat( result, "W=" );          strcat( result, "W=" );
322          strcat( result, strW );          strcat( result, strW );
323          strcat( result, "." );          strcat( result, "." );
324                    WriteToChannel( result );
325          break;          break;
326            
327            
328          default:          default:
329          break;          break;
330      }      }
331            
     if ( result[ 0 ] != '\0' ) {  
         WriteToChannel( result );  
     }  
332            
333      return CallNextHookEx( hhook, nCode, wParam, lParam );      return CallNextHookEx( hhook, nCode, wParam, lParam );
334  }  }

Legend:
Removed from v.1004  
changed lines
  Added in v.1005

  ViewVC Help
Powered by ViewVC 1.1.26