I am looking at some code that uses a function detour package called DetourXS. My application is targeted for Microsoft Server operating systems. Microsoft Research also has a Detours package and they have an article on how it works. They patch the…
I'm getting Windows security popup while installing kernel driver using my installer. In previous builds, we were not getting this issue. But with our latest builds, we are getting this issue. We are signing our drivers with a proper certificate.…
I have a web application which is hosted in IIS 7.5 on Windows Server 2008 R2 and on another test machine in IIS 8.5 on Windows Server 2012 R2.
Windows Authentication is enabled and the Application Pool is running under a service account like…
I would like to store user's profile data locally but would like to encrypt it using user's own ID and password. This way only when the same user logs back in can, she can decrypt her profile. Please find below steps I am using to encrypt on…
After i successfully create a new user, add user to built-in admins group, i would like to edit the newly created user's registry (this program is an elevated-as-admin program). I called NetUserAdd(), NetLocalGroupAddMembers(), LogonUser(), and…
I have read that CreateProcessAsUser take primary token as its argument .
I have created the token using OpenThreadToken() which will create impersonation token.
But CreateProcessAsUser with impersonation token is "passing on most" of the machines,…
Creating a token using OpenThreadToken() and then passing it to CreateProcessAsUser is failing with:
1349:The type of the token is inappropriate for its attempted use.
It is successful on one machine but failing on other win2008r2.
The…
What is the difference between DeviceNotPresent and NotConfiguredForUser properties of UserConsentVerifierAvailability enumeration?
MSDN documentation says "There is no biometric verifier device available" and "A biometric verifier device is not…
i am getting all information from windows security log and event viewer related to logon and logg off but i want only latest loggon event info from all information can you please apply some linq on that to get the top most Startup Login event…
I have been compiling and running programs in C++ on Code::Blocks longly but today one of my programs compiled successfully but when I ran the program it returned -12 with time -0.00s. Whenever I write a new program in C++ the program compiles but…
I have a Windows forms desktop application with a webBrowser control. I navigate to a directory on the server webBrowser1.Navigate(new Uri("\\\\srvername\\share\\directory\\")) to allow users to open files from that directory.
When they double…
I am having trouble using Mixed Forms Authentication and Windows Security.
I am not too familiar with IIS and security. I found this article today:
https://msdn.microsoft.com/en-us/library/ms972958.aspx#mixedsecurity_topic5
I first started by…
So i have an web application, published and deployed on IIS some pages of my web application work flawlessly while others mostly the ones with a report is causing issues.
1) So i click the link for the report, The report gets generated YAY!!!
2)…
What I'm trying to achieve is the actual Token handle from the session ID when the process runs as admin under non admin user(windows logged in user).
DWORD dwSessionId = 0;
if (false == ProcessIdToSessionId(dwProcessId,…
How can set up a Windows security group as part of a Inno Setup install?
I can't seem to think of the right text to google to figure it out. Perhaps a hint at what to search for would be enough.