Click here to Skip to main content
16,012,759 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUDP Broadcast Pin
Gleb18-Feb-01 19:02
Gleb18-Feb-01 19:02 
GeneralRe: UDP Broadcast Pin
l a u r e n18-Feb-01 19:54
l a u r e n18-Feb-01 19:54 
GeneralMessages list in ClassWizard ... Pin
Hadi Rezaee18-Feb-01 18:16
Hadi Rezaee18-Feb-01 18:16 
GeneralMouse pointer ... Pin
Hadi Rezaee18-Feb-01 17:45
Hadi Rezaee18-Feb-01 17:45 
GeneralRe: Mouse pointer ... Pin
l a u r e n19-Feb-01 6:33
l a u r e n19-Feb-01 6:33 
GeneralRe: Mouse pointer ... Pin
19-Feb-01 9:19
suss19-Feb-01 9:19 
GeneralWM_SETCURSOR Pin
19-Feb-01 10:40
suss19-Feb-01 10:40 
QuestionMAPI in NT Service - PLEASE HELP?? Pin
Dan Madden18-Feb-01 9:37
Dan Madden18-Feb-01 9:37 
Hi and thanks for your time!

I am working on a project and can not get MAPI to work in my NT Service (W2K) Frown | :( . I have the service logging in as "LocalSystem" (have also tried my Domain account but nothing happens) and there is no dependencies. The same code (minus some NT Service stuff) works in a normal MFC Exe. Here is the code:

...
...
...

LPMAPISESSION lpSession;

pMapiInit.ulVersion = MAPI_INIT_VERSION;
pMapiInit.ulFlags = MAPI_NT_SERVICE;

FLAGS flFlag = MAPI_NO_MAIL | MAPI_NEW_SESSION | MAPI_NT_SERVICE;

hr = MAPIInitialize(&pMapiInit);
if (!HR_SUCCEEDED(hr))
{
MessageBox (NULL, "MAPIInitialize failed.", "", MB_OK);
goto cleanup;
}

hr = MAPILogonEx(0L, (LPTSTR)"dmadden", (LPTSTR)NULL, flFlag, &lpSession);
if (HR_SUCCEEDED(hr))
{
// I never get here!!!!! Confused | :confused:
}

...
...
...

I would really appreciate help!!


Thanks in advance,

Dan Cool | :cool:
AnswerRe: MAPI in NT Service - PLEASE HELP?? Pin
l a u r e n18-Feb-01 20:00
l a u r e n18-Feb-01 20:00 
GeneralRe: MAPI in NT Service - PLEASE HELP?? Pin
Dan Madden18-Feb-01 21:30
Dan Madden18-Feb-01 21:30 
GeneralRe: MAPI in NT Service - PLEASE HELP?? Pin
8-Jun-01 6:22
suss8-Jun-01 6:22 
GeneralDrawing a CListCtrl to a MemDC Pin
Alex Deem18-Feb-01 6:26
Alex Deem18-Feb-01 6:26 
GeneralRe: Drawing a CListCtrl to a MemDC Pin
Michael Dunn18-Feb-01 8:09
sitebuilderMichael Dunn18-Feb-01 8:09 
GeneralI need good Algourithm ... Pin
Hadi Rezaee18-Feb-01 6:23
Hadi Rezaee18-Feb-01 6:23 
GeneralRe: I need good Algourithm ... Pin
l a u r e n18-Feb-01 7:10
l a u r e n18-Feb-01 7:10 
GeneralRe: I need good Algourithm ... Pin
18-Feb-01 10:18
suss18-Feb-01 10:18 
GeneralRe: I need good Algourithm ... Pin
Christian Graus18-Feb-01 10:21
protectorChristian Graus18-Feb-01 10:21 
GeneralRe: I need good Algourithm ... Pin
Julien18-Feb-01 11:59
Julien18-Feb-01 11:59 
GeneralRe: I need good Algourithm ... Pin
Tim Deveaux19-Feb-01 10:24
Tim Deveaux19-Feb-01 10:24 
GeneralBackUp Files in VC++ Pin
Gleb18-Feb-01 0:00
Gleb18-Feb-01 0:00 
GeneralRe: BackUp Files in VC++ Pin
Christian Graus18-Feb-01 10:24
protectorChristian Graus18-Feb-01 10:24 
Generalsingleton class Pin
17-Feb-01 19:08
suss17-Feb-01 19:08 
GeneralRe: singleton class Pin
Michael Dunn17-Feb-01 19:48
sitebuilderMichael Dunn17-Feb-01 19:48 
GeneralSelf destructing exe Pin
17-Feb-01 18:18
suss17-Feb-01 18:18 
GeneralRe: Self destructing exe Pin
l a u r e n18-Feb-01 4:53
l a u r e n18-Feb-01 4:53 

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.