Mapi Error 87 Invalid Parameter
New? Advanced Search Forum Database Discussions MS SQL Server 7/MS SQL Server 2000 SQL Mail Problems If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: SQL Mail Problems Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 07-11-2001,11:06 AM #1 Andre Guest SQL Mail Problems I have set up a mail profile on a Windows NT server using MS Exchange. This profile's definition points to our mail server and I can send and receive e-mail without any problem. When I use Enterprise Manager to try and set the profile for the SQL Server AGent the profile does not show up in the list. If I type in the profile name and click on the test button I receive the following error message: ERROR 22030: A MAPI Error(Error Number: 87) occurred MAPILogonEx Failed due to MAPI error 87: Invalid Parameter. Someone Please Help Reply With Quote 07-11-2001,11:19 AM #2 Anu Guest SQL Mail Problems (reply) please check Q153159 on microsoft knowledge base -Anu ------------ Andre at 7/11/01 12:06:39 PM I have set up a mail profile on a Windows NT server using MS Exchange. This profile's definition points to our mail server and I can send and receive e-mail without any problem. When I use Enterprise Manager to try and set the profile for the SQL Server AGent the profile does not show up in the list. If I type in the profile name and click on the test button I receive the following error message: ERROR 22030: A MAPI Error(Error Number: 87) occurred MAPILogonEx Failed due to MAPI error 87: Invalid Parameter. Someone Please Help Reply With Quote Quick Navigation MS SQL Server 7/MS SQL Server 2000 Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Database Discussions IBM DB2 Informix Microsoft Access Microsoft SQL Server 2008 Microsoft SQL Server 2005 MDX and Analysis Services Reporting Services MS SQL Server 7/MS SQL Server 2000 MySQL Oracle PostgreSQL Sybase Miscellaneous General Database Discussions Ask an Expert Database Design Database Programm
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
identify the specific cause of the http://stackoverflow.com/questions/4988082/openprocess-error-87-invalid-parameter error and the correct way to proceed. Please send technical support a copy mapi error of the BackupAssist diagnostics file using the steps provided in the Resolution section below. To send us diagnostic information, please follow these steps: Open BackupAssist. Click mapi error 87 on the Help menu at the top of the console. Select Feedback and Support... from the drop down menu. Click on Contact Support. Enter the details asked for. Make sure the tick box stating 'Submit system diagnostics to help our support team with your query' is ticked. This will zip all your BackupAssist settings so that we can review these specifically for your environment. Last updated Created Further assistance 19th Mar 2015 02nd Oct 2008 BackupAssist Support page
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up OpenProcess error 87 invalid parameter up vote 1 down vote favorite I'm trying to write a program which executes make.exe from MinGW distribution in the current directory and makes use of its STDOUT data and exit code. I have a handle to process STDOUT where I fetch data from, created with CreatePipe. When I get an ERROR_HANDLE_EOF on that pipe I assume the process has exited and try to get its exit code: if(session->pid == 0) return; HANDLE hp = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE, TRUE, session->pid); if(hp == NULL) { printf("OpenProcess(%i) failed, error: %i\n", session->pid, (int)GetLastError()); return; } My code works on all other MinGW utilities I tested (like pwd, ls, etc.), I get the STDOUT and the exit code with no problem. But when I try it on make, the above code displays the following message: "OpenProcess(2032) failed, error: 87" I googled for error code 87, and it says "Invalid parameter". I don't see what could be invalid about a positive process id like 2032. Any ideas? winapi makefile getlasterror openprocess share|improve this question asked Feb 14 '11 at 1:14 user389419 12817 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted You should use the handle from CreateProcess instead of using OpenProcess on the PID. OpenProcess only works if the process object still exists. By the time you call OpenProcess if the process object is gone - the result is a call with invalid parameter. The success you got with other utilities is either due to a race condition (which may fail some times) or you kept the original handle to the child process open. share|improve this answ