Click here to Skip to main content
16,004,906 members
Home / Discussions / COM
   

COM

 
QuestionHow to determine the threading model of an out-of-process server Pin
Jason Bafas12-Mar-03 5:04
sussJason Bafas12-Mar-03 5:04 
GeneralActiveX accessing other ActiveX Ctrls in a browser Pin
sanskypotov11-Mar-03 22:28
sanskypotov11-Mar-03 22:28 
GeneralAfxOleInit() + RPC_E_CHANGED_MODE Pin
Swinefeaster11-Mar-03 12:00
Swinefeaster11-Mar-03 12:00 
Generaladd-in for outlook express Pin
Naidu10-Mar-03 22:32
Naidu10-Mar-03 22:32 
GeneralRe: add-in for outlook express Pin
Amit Dey14-Mar-03 7:44
Amit Dey14-Mar-03 7:44 
GeneralRe: add-in for outlook express Pin
Naidu18-Mar-03 15:37
Naidu18-Mar-03 15:37 
GeneralRe: add-in for outlook express Pin
Amit Dey19-Mar-03 5:40
Amit Dey19-Mar-03 5:40 
GeneralRe: add-in for outlook express Pin
Stephane Rodriguez.15-Mar-03 7:25
Stephane Rodriguez.15-Mar-03 7:25 
There is no documented SDK for doing things like in Outlook Express. May be there is no SDK at all.

Outlook Express, like a standard Windows app, has its toolbar and menus hooked by addins. For instance, PGP uses this technique :
__declspec(dllexport) void AttachOutlookExpressPlugin(HWND hwnd)
{
PluginInfo *plugin;
char szWndClass[1024];
	
GetClassName(hwnd, szWndClass, 1023);

plugin = CreatePluginInfo(hwnd);

if (plugin == NULL)
  return;
	
// Save away old proc
SetProp(hwnd, "oldproc", 
  (HANDLE) GetWindowLong(hwnd, GWL_WNDPROC)); 
	
// Subclass Outlook Express 4.x main window
if (!strcmp(szWndClass, "ThorBrowserWndClass")) 
  SetWindowLong(hwnd, GWL_WNDPROC, (DWORD) MainWndProc);

// Subclass Outlook Express 5.x main window
else if (!strcmp(szWndClass, "Outlook Express Browser Class"))
{
  plugin->bOE5 = TRUE;
  SetWindowLong(hwnd, GWL_WNDPROC, (DWORD) MainWndProc);
}

// Subclass Outlook Express message window	
else if (!strcmp(szWndClass, "ATH_Note"))
  SetWindowLong(hwnd, GWL_WNDPROC, (DWORD) UnknownWndProc);
	
  // Store the pointer to the plugin information
  SavePluginInfo(hwnd, plugin); 

  return;
}


There are articles on Cp about hooking windows based on classnames, etc.
GeneralRe: add-in for outlook express Pin
Amit Dey15-Mar-03 11:28
Amit Dey15-Mar-03 11:28 
GeneralRe: add-in for outlook express Pin
Stephane Rodriguez.16-Mar-03 3:10
Stephane Rodriguez.16-Mar-03 3:10 
GeneralRe: add-in for outlook express Pin
Amit Dey16-Mar-03 8:54
Amit Dey16-Mar-03 8:54 
GeneralRe: add-in for outlook express Pin
Stephane Rodriguez.16-Mar-03 9:29
Stephane Rodriguez.16-Mar-03 9:29 
GeneralRe: add-in for outlook express Pin
Amit Dey16-Mar-03 10:31
Amit Dey16-Mar-03 10:31 
GeneralRe: add-in for outlook express Pin
Stephane Rodriguez.16-Mar-03 11:09
Stephane Rodriguez.16-Mar-03 11:09 
GeneralRe: add-in for outlook express Pin
Amit Dey16-Mar-03 13:49
Amit Dey16-Mar-03 13:49 
GeneralRe: add-in for outlook express Pin
Stephane Rodriguez.16-Mar-03 19:49
Stephane Rodriguez.16-Mar-03 19:49 
GeneralRe: add-in for outlook express Pin
Amit Dey16-Mar-03 14:11
Amit Dey16-Mar-03 14:11 
GeneralRe: add-in for outlook express Pin
Naidu16-Mar-03 19:21
Naidu16-Mar-03 19:21 
GeneralRe: add-in for outlook express Pin
Stephane Rodriguez.16-Mar-03 19:54
Stephane Rodriguez.16-Mar-03 19:54 
GeneralRe: add-in for outlook express Pin
Amit Dey17-Mar-03 4:30
Amit Dey17-Mar-03 4:30 
GeneralRe: add-in for outlook express Pin
Stephane Rodriguez.17-Mar-03 5:21
Stephane Rodriguez.17-Mar-03 5:21 
GeneralRe: add-in for outlook express Pin
Amit Dey19-Mar-03 5:45
Amit Dey19-Mar-03 5:45 
GeneralRe: add-in for outlook express Pin
Anonymous22-Mar-03 8:33
Anonymous22-Mar-03 8:33 
QuestionHow to get Out-of-Process COM+ Application's ProcessID Pin
Gimpy10-Mar-03 9:33
Gimpy10-Mar-03 9:33 
AnswerRe: How to get Out-of-Process COM+ Application's ProcessID Pin
Gimpy10-Mar-03 10:45
Gimpy10-Mar-03 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.