advapi32

Wincred not working properly with Git Bash(Git for Windows) when executing certain commands like “prune”

别来无恙 提交于 2019-12-04 20:20:40
I have setup GitforWindows in my Windows 7 64Bit pretty well with Credential manager as "Wincred". Yet when I run some commands like git remote prune origin in GitBash, it gives following error in console, though runs the command: Failed to load advapi32.dll Why is that ? If there is something need to be done with Credential manager settings, then I need full explanation of how to do those settings and what each setting means. Note: This problem I have only with some commands, other commands are running just fine without any errors. If you are using the latest Git for Windows , make sure to

Where can I find a good example of ReportEvent function usage?

廉价感情. 提交于 2019-12-04 05:49:53
As with most "legacy" MSDN pages, the page for ReportEvent has too little information for me to make much sense of it. I've tried searching, but can't find a good, clean, simple example of the function's usage. Could anyone suggest one? I ended up using this: HANDLE eventLog; WORD type; const char* msg; // ... snip ... ReportEvent(eventLog, type, 0, 1, NULL, 1, 0, &LPCTSTR(msg), NULL); Seems to work well enough. subdeveloper Well this seems to be a very old thread, landed here looking for a good example of Report Event... but figured out you have not received any replies...and would have

Using MS crypto library on server 2012 - CryptCreateHash error code 87: ERROR_INVALID_PARAMETER

天大地大妈咪最大 提交于 2019-12-01 12:41:11
I am attempting to host a web application on a new Windows server 2012 environment, however I am receiving an unprecidented error. This code has existed in our codebase for years and no problems have been experienced on any other platform. The code in question calls the CryptCreateHash function of advapi32.dll - a Microsoft crypto library. When calling the function I am returned a 0 to denote the call failed, subsequently Err.LastDllError returns the error code 87, which is ERROR_INVALID_PARAMETER. As I said before this code has worked perfectly for many years on a variety of environments -

Using MS crypto library on server 2012 - CryptCreateHash error code 87: ERROR_INVALID_PARAMETER

这一生的挚爱 提交于 2019-12-01 11:22:01
问题 I am attempting to host a web application on a new Windows server 2012 environment, however I am receiving an unprecidented error. This code has existed in our codebase for years and no problems have been experienced on any other platform. The code in question calls the CryptCreateHash function of advapi32.dll - a Microsoft crypto library. When calling the function I am returned a 0 to denote the call failed, subsequently Err.LastDllError returns the error code 87, which is ERROR_INVALID