Back to index

lightning-sunbird  0.9+nobinonly
Functions
mapiipc.h File Reference
#include "port.h"
#include <nscpmapi.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DWORD nsMAPI_OpenAPI (void)
void nsMAPI_CloseAPI (void)
LRESULT SendMAPIRequest (HWND hWnd, DWORD mapiRequestID, MAPIIPCType *ipcInfo)

Function Documentation

Definition at line 209 of file mapiipc.cpp.

{
  --instanceCount;
  if (instanceCount <= 0)
  {
    instanceCount = 0;
  }

  return;
}

Here is the caller graph for this function:

Definition at line 195 of file mapiipc.cpp.

{
  if (instanceCount > 0)
  {
    return(1);
  }

  ++instanceCount;
  return(1);
}

Here is the caller graph for this function:

LRESULT SendMAPIRequest ( HWND  hWnd,
DWORD  mapiRequestID,
MAPIIPCType ipcInfo 
)

Definition at line 224 of file mapiipc.cpp.

{
LRESULT         returnVal = 0;
COPYDATASTRUCT  cds;

  if (!InitDLL())
  {
    return 0;
  }

  cds.dwData = mapiRequestID;
  cds.cbData = sizeof(MAPIIPCType);
  cds.lpData = ipcInfo;

  // Make the call into Communicator
  returnVal = SendMessage(hWnd, WM_COPYDATA, (WPARAM) hWndMAPI, (LPARAM) &cds);

  // Now kill the window...
  DestroyWindow(hWndMAPI);
  hWndMAPI = NULL;
  UnregisterClass(szClassName, hInstance);
  
  return returnVal;
}

Here is the call graph for this function:

Here is the caller graph for this function: