1

Topic: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Good evening.
In the first, the traditional request a subject not to transfer anywhere.
Therefore as if here prompt nothing, hardly help where still,  on yours .
(M. It is necessary to hammer but I do not like to surrender at once)
(Below the link where I affected a subject)
Repeated update Win10 with v.1703 to v.1709
It is impossible to understand somehow from the analysis of distribution kit Win what files concern "function"?
Shortly about a problem, how much to a smog.
In update Win10 v.1709 MS deleted residuals "Mail Windows" (known also on XP as Outlook Express) - with . It perfectly worked as shamanism to v.1703 inclusively.
This program is necessary to me (is not considered).
By hook or by crook, I managed to recover it on v.1709 (missing files, registration of classes in the register).
But: for me does not work Simple MAPI (for example a label to Send-> the Addressee of the shortcut menu).
It was possible to understand this mechanism a little.
1) the client is installed by Defoltnyj MAPI. Registry key:

[HKEY_CURRENT_USER \SOFTWARE \CLIENTS \MAIL]
@="Windows Mail"

2) It dll, responsible MAPI a functional it is registered. Registry key:

[HKEY_LOCAL_MACHINE \SOFTWARE \CLIENTS \MAIL \WINDOWS Mail]
@="Windows Mail"
"DLLPath" = "%ProgramFiles (x86) % \Windows THE MAIL \msoe.dll"

The essence of these two adjustments that any call in mapi32.dll is automatically broadcast in msoe.dll (on technology probably it is required 32-bit).
The call in msoe.dll precisely transits (i.e. MAPI a subsystem they not ).
E.g. to Send-> the Addressee (shortcut menu) - happens nothing (and there should be a new letter with a file)
But FixMAPI.exe works and WinMail.exe even it is short-term launched (but does nothing).
Dug more deeply:
MAPILogon function
I do a call (all parameters zero, dwRes - the result, hMapi - if f-tsija returns SUCCESS_SUCCESS == 0 here returns handle to session MAPI)

dwRes = MAPILogon (IntPtr. Zero, "", "", 0, 0, hMapi)

I tried to cause it both from mapi32.dll, and from msoe.dll in a forehead.
The result is identical, i.e. MAPI - translation in  mail application works.
Only on Win10 v.1709 dwRes stablly returns
Err=3 (MAPI_E_LOGIN_FAILURE)
(Therefore it is obvious anything from MAPI and does not work)
And on v.1703 all OK, returns 0 + handle and MAPI is got.
Another f-tsija MAPISendDocuments function
Similarly returns 0 on v.1703 (works) and
2 == MAPI_E_FAILURE on v.1709

This business is chance somehow  and to understand that to it does not suffice?

At my instruction
1) OS Win10 v.1709 (where MAPI msoe.dll it is not got)
2) OS Win10 v.1703 test (where MAPI msoe.dll OK it is got)
I like all transferred the necessary files on v.1709, the register shoveled, all like thrust.
Itself "Mail Windows" is launched and works (that already remarkably), and Simple MAPI it silently swears and is not got.
Certainly could miss something (e.g. something is not searched in the register on keywords winmail, msoe.dll, etc.)
There is any methodology to understand what exactly does not suffice for successful start e.g. f-tsii MAPILogon launched of msoe.dll?

2

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

77 wrote:

There is any methodology to understand what exactly does not suffice for successful start e.g. f-tsii MAPILogon launched of msoe.dll?

If the problem in the rights or is required any cut branch or a key in the register it is possible to try SysInternals Procmon' to look.
Well, and generally here found straight off two subjects, the first , on behalf of representative MS, as though hints that MAPILogon can work, and can and is not present, but we notified you.
the Second - the programmer  something with profiles, therefore also arises error MAPI_E_LOGIN_FAILURE.
So other forums on a subject MAPI_E_LOGIN_FAILURE are easy to be googled many
I can missed or did not understand, but if the problem appeared NOT after setting of an update 1709, and after that somehow  hands in system, whether to reinstall that OS over broken is easier, with correction of files or there sfc/scannow to launch?

3

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Here still a variant - to deliver MS Office with Outlook'. If is any to a problem in Simple MAPI at setting it owes them 

4

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Cerebrum wrote:

I can missed or did not understand, but if the problem appeared NOT after setting of an update 1709, and after that somehow  hands in system, whether to reinstall that OS over broken is easier, with correction of files or there sfc/scannow to launch?

Missed. MS itself and  in the update 1709.
Functions which are remote or become outdated in center of update Windows 10 Autumn creators

Outlook Express wrote:

Removal of it nonfunctional the old code

.
Shamanism I recovered serviceability of the program on 1709 (comparing releases 1703 and 1709 - files and  how much brains sufficed). The picture is confirming:
But thus MAPI did not rise (it is possible to cause in a forehead f-tsii from "%ProgramFiles (x86) % \Windows the Mail \msoe.dll" instead of "mapi32.dll").
mapi32.dll broadcasts all calls in msoe.dll
I admit that I did not find something in the register that is necessary, but like all shoveled and transferred by words "msoe.dll" and "WinMail.exe" (including duplication for WOW6432Node).

5

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Cerebrum wrote:

here still a variant - to deliver MS Office with Outlook'. If is any to a problem in Simple MAPI at setting it owes them 

I tried it on test system 1709.
Oullook itself on MAPI works.
Itself Simple MAPI that works. As I mentioned in the first post a call in msoe.dll is broadcast. But that that is required from msoe.dll (obviously and at least to fulfill MapiLogon), it just on 1709 to do that and does not want.

Cerebrum wrote:

it is passed...
If the problem in the rights or is required any cut branch or a key in the register it is possible to try SysInternals Procmon' to look.

Here it is more interesting.
stupidly I look in Process Monitor - SysInternals - it?
For example I have an unpretentious application SendMailTest.exe (WinForm, well what difference.)
One button.

Private Sub ButtonMapiLogon_Click (sender As Object, e As EventArgs) Handles ButtonMapiLogon. Click
Dim hMapi As IntPtr
Dim dwRes As Integer
dwRes = MAPILogon (IntPtr. Zero, "", "", 0, 0, hMapi)
MsgBox (dwRes)
End Sub
' Public Declare Function MAPILogon Lib "MAPI32.DLL" _
' (ByVal ulUIParam As IntPtr, ByVal lpszProfileName As String, _
' ByVal lpszPassword As String, ByVal flFlags As Integer, ByVal ulReserved As Integer, _
' ByRef lplhSession As IntPtr) As Integer
Public Declare Function MAPILogon Lib>>> "C:\Program Files (x86) \Windows THE MAIL \msoe.DLL" <<<_
(ByVal ulUIParam As IntPtr, ByVal lpszProfileName As String, _
ByVal lpszPassword As String, ByVal flFlags As Integer, ByVal ulReserved As Integer, _
ByRef lplhSession As IntPtr) As Integer

Msgbox returns Err=3 (MAPI_E_LOGIN_FAILURE)
What should I do in Process Monitor to look that happens at button click?
(That that climbs in the register and  does not find most possibly)

6

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

77 wrote:

Here it is more interesting.
stupidly I look in Process Monitor - SysInternals - it?

It but if itself MS cut the code does not help.
It is possible to try to install Appx packet Windows Mail through Powershell , palming off on it a disk from Windows 1703 or on which last time this application worked as that from a box.

7

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

77 wrote:

That I should do in Process Monitor to look that happens at button click?

8

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Or write nothing simply push Cancel ProcMon starts to collect activity from all system. When you will understand that it is necessary to you, you will filter on process or on a register node

9

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

77 wrote:

Itself Simple MAPI that works. As I mentioned in the first post a call in msoe.dll is broadcast. But that that is required from msoe.dll (obviously and at least to fulfill MapiLogon), it just on 1709 to do that and does not want.

It is possible to look dependences through DependencyWalker and to compare to the same library on which all worked.

10

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

That type

11

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Cerebrum;
launched ProcMon on two systems 1709 (where does not work) and 1703 (where works),
Caught test SendMailTest.exe (which fulfills MAPILogon) and I try to compare.
It is a lot of there all all the same so straight off not to understand.
But I think a direction true.
> It but if itself MS cut the code does not help.
Well I in general all  (all is faster almost)
> It is possible to try to install Appx packet Windows Mail through Powershell, palming off on it a disk from Windows 1703 or on which last time this application worked as that from a box.
"From a box" it worked only on Whist.
But up to "boxes 1703", it was easily treated to the full serviceability by changeover msoe.dll on  + some more tricks that it was absolutely good.
But about "Appx packet Windows Mail through Powershell, palming off on it a disk from Windows 1703", it is idea on any sounds well;
I about it tried to ask at once (one of the first links in the first post of this subject), but for some reason pressed on DISM.
I will try to understand with technology if through ProcMon nothing .

12

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Through ProcMon something I can not explicitly understand line, a head ached from it.

Cerebrum wrote:

It is possible to try to install Appx packet Windows Mail through Powershell , palming off on it a disk from Windows 1703 or on which last time this application worked as that from a box.

Well it is admissible there is at me a disk 1703.
1) as to me to understand names of packets on it through PowerShell?
2) as to me to install the necessary packet from it (from this disk)
I esteemed article, but I do not catch up as that's it that "from a disk".

13

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

And something me is tormented by doubts that there is such packet "Windows Mail".
Get-AppXPackage On WinServer 2016 or Win10LTSB produces . A poor dial-up (It at "installed" Windows Mail)
And similar it concerns to a modernist style apps.
"Features" Windows Mail with what works DISM as though in an explicit form are not present.
If to pick
WINDOWS\WinSxS
That on 1703 is
AMD64_MICROSOFT-WINDOWS-MAIL -
...
X86_MICROSOFT-WINDOWS-MAIL -
(Folders  from tens - but it only files, I do not know that he there writes to the register at setting)
On 1703 only one folder of such type.
It is necessary to hammer certainly on it MAPI. That made That that worked already much (operation vile Windows for itself to treat).
But likely I the person such, would be desirable that and MAPI was got.

14

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Cerebrum wrote:

it is possible to look dependences through DependencyWalker and to compare to the same library on which all worked.

Well looked, and that it gives, only that that in msoe.dll is mapiLogon and other f-tsii, but it I and so I know. And msoe.dll (32-bit) just also it is pulled out from 1703 (more it there is no place to take), I generally on test system 1709 tried  all obviously dependent files that were on 1703 but it changes nothing.

15

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

77 wrote:

.
"From a box" it worked only on Whist.
But up to "boxes 1703", it was easily treated to the full serviceability by changeover msoe.dll on  + some more tricks that it was absolutely good.

77 wrote:

Well looked, and that it gives, only that that in msoe.dll is mapiLogon and other f-tsii, but it I and so I know. And msoe.dll (32-bit) just also it is pulled out from 1703 (more it there is no place to take), I generally on test system 1709 tried  all obviously dependent files that were on 1703 but it changes nothing.

So msoe.dll from whists or whence?

16

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Install to itself mozilla thunderbird, it can be adjusted that it was similar to the same windows a mail...

17

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Barlone wrote:

Install to itself mozilla thunderbird, it can be adjusted that it was similar to the same windows a mail...

it is not possible - MAPI is not present.

18

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Basil A. Sidorov wrote:

it is passed...
It is not possible - MAPI is not present.

MAPI there is like - I tried it on the test to system.
But matter is not in it if got used to the certain client.
> So msoe.dll from whists or whence?
Yes, from whists, will not work differently ( since 7). And WinMail.exe - "invisible".
I feel  already.
Broke VS2013 (EE+Ultimate) - both presumably because of Win10 v.1709
And it is already worse than MAPI.
Know, help. Already it was rolled away back to 1703 (MAPI by the way by the automatic machine ).
Surrenders to me that it is necessary to "be recovered" (I hope still to a smog), and to freeze a working computer on v.1703 years on 5 but at least to a new computer.
Because it is a hogwash any with these updates on ten - you do not work, but only you are updated and you "treat".
Stayed on XP to 14 - and there were no such problems (and a test computer start up to itself it is updated).

19

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

77 wrote:

Get-AppXPackage on WinServer 2016 or Win10LTSB produces . A poor dial-up

Not surprisingly. These are systems, in which everyone  unnecessary applications for operation on a minimum.
To find all packets it is necessary to take the distribution kit high-grade house type 7 Ultimate, but only Windows 10.

77 wrote:

I esteemed article, but I do not catch up as that's it that "from a disk".

Powershell demands instructions xml a file

xml wrote:

Add-AppxPackage-register "C:\Program Files\WindowsApps\PackageCodeName\appxmanifest.xml"-DisableDevelopmentMode

If to specify it on a disk with the necessary system  OS can pick up it and to deliver all that it is necessary.
Considering that last time from a box normally worked on Vista it not that subject which followed develop and a trick with appx here not

77 wrote:

Well looked, and that it gives, only that that in msoe.dll is mapiLogon and other f-tsii, but it I and so I know

If there is no necessary component for normal operation of application, the program shows it

20

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Total that we have in dry residual:
There is version OC (Vista / Windows 1703) on which the call MAPILogon works.
Is Windows 1709, ceased where to work and returns an error MAPI_E_LOGIN_FAILURE .
To transfer files from one system and to install from on another it is possible, but does not work ( though here many questions: as you transfer that you transfer, as  and so forth ).
The program is launched and there and then closed if to launch it  exe-shnik.
To me it is thought that is necessary first of all extremely attentively and  to understand that it for an error such MAPI_E_LOGIN_FAILURE and to understand why it happens. And judging by that link which I resulted right at the beginning, it can mean that the profile is incorrectly adjusted. Whose profile to me also you up to the end are not clear too did not begin to understand, most likely. That if to the program it is banal does not suffice for start of a folder or a directory file in your profile. For example, when I launch at myself on test Windows 7 program WinMail ( it is not launched with GUI ), but she writes in OS log everyone and in particular:

wrote:

WinMail (2760) WindowsMail0: start of archiving of log files (a range Is carried out: C:\Users\\AppData\Local\Microsoft\Windows the Mail \edb00001.log - C:\Users\\AppData\Local\Microsoft\Windows the Mail \edb00001.log).

You have such directories on Windows 10 1709 and 1703/Vista? You the logs of OS looked?
I conduct to that the problem can be not in dll-he as we transferred it from operating system, and that MS cut a surrounding for normal start and operation of this application which includes directory or any specific database of mail.

21

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

If you use not application but only itself API I at all do not see sense to waste time on  in the semidecayed corpse, especially, from which 7 developers refused already at stage Windows. It is necessary to make the strong-willed decision and to involve new modern API or to download indirect  for operation with mail and to use it, and as the client to use the same Thunderbird or analog.
mail from old application in new (through IMAP a box the intermediary or somehow differently) and the question will be solved once and for all.
If at you the question is direct  basic and blood from a nose it is necessary, that worked, then you should work on this point in question from those. Support of Microsoft and not at level of girls from support'a, and  the request for level , and it already absolutely other money. Or to invite sensible system managers-developers who are able to use ProcMon', PowerShell' and windbg at normal level.
Simply, finally, you all the same will come sooner or later to what to drag behind yourself a corpse of a killed horse - not a variant. And the faster you will make everything that of it gets rid, the faster you can solve the problem and start to move further.
it is finite

22

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

Cerebrum wrote:

If you use not application but only itself API I at all do not see sense to waste time on  in the semidecayed corpse, especially, from which 7 developers refused already at stage Windows. It is necessary to make the strong-willed decision and to involve new modern API or to download indirect  for operation with mail and to use it, and as the client to use the same Thunderbird or analog.

Here with Thunderbird just too problems any after that updates, and they and on 1703 go.
PS: Deeply did not dig, time was not.

23

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

In general Update 5 "appeared the decision in this situation setting VS2013". (At me stood Express "Update 3" and Ultimate "Update 4").
VS2013-Express -  with  MS also recovered "license".
VS2013-Ultimate -  with  MS

Antonariy wrote:

Sooner or later the system turns to a dustbin, and no recovery tools help. And here this moment came - a hard reset.

Early, , you bury me.
At me XP lived 2007-2014 without reinstallation on the previous computer.
And this system only 3 years 2014...?
That it to install and adjust under itself 3 years ago at me month, and matter is not in "virtuality/zheleznosti" (it not the bare test system which for a half-hour is put) left with all gadgets likely.
Difference between XP and 10 in respect of viruses and other I hope to explain it is not necessary (it about that how many at me XP lived and did not die)?
And here because of these updates 10 system really turns to a dustbin.
At all my sincere respect for letting out their organization.
It is time to fasten similar with these new things. 1709 it already finish:
Mail cut, all right corrected, though and without MAPI
Studios and other applications fall (thank God still what not mine)
Licenses VL fly
Time for updates is spent, and on   it is even more of all
But 3D-edge , on  speaks. To sense that.
Or in VS2013 VC ++ is not present? And anybody on Win10 does not sit and does not fall under "updates"? Or all in VS2015-17 and on .
On a question subject.
In general Update 5 "appeared the decision in this situation setting VS2013". (At me stood Express "Update 3" and Ultimate "Update 4").
VS2013-Express -  with  MS also recovered "license".
VS2013-Ultimate -  with  MS
Well, like all OK. Already went away.
I think it is necessary to remain while on 1703 (and with MAPI all there OK).

24

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

I am sorry;
It would be necessary to erase the previous message, I got tired with these restitutions.
Not there answered, here it should be.
The moderator:
Itself copy where it is necessary.
Besides, do not produce new topics, they will be deleted.
One topic of the most severe offtopic on a forum suffices.
Left ONLY BECAUSE to you already something answered.

25

Re: To understand what not so in another's program (MS). API returns an error, but what not so does not speak.

77 wrote:

That it to install and adjust under itself 3 years ago at me month,

left with all gadgets likely
In this situation  all should be. Broke? Roll away!
And it is even better  everyone on pure , and that suddenly at you after monthly adjustment somewhere something appeared is broken, whether and you will sit and think to pass to me on 1709 now or in 5 years