Why LowLevelMouseProc get negative values when moving the cursor quickly
Waiting of creating WinApi mutex
I need to start a child process and wait for the creation of a shared synchronization object (preferably a mutex or an event). I connect to these synchronization objects through OpenEvent or OpenMutex. This means that as long as this process is not created, the main program should be blocked. Right now, I use something like this:
Is GetLastError() sticky?
Is GetLastError() sticky, i.e. the error code isn’t modified until an error actually happens ? Or do Win32-functions set the last error code to ERROR_SUCCESS
(0
) for any successful operation ?
How do you get the NVMe NSID in Windows?
Linux has ioctl NVME_IOCTL_ID
to easily retrieve the NSID for an NVMe drive. How do you do it in Windows?
IOCTL_SCSI_PASS_THROUGH translation SATA/NVMe?
I’m trying to figure out what actually exists and what actually doesn’t in regards to SCSI translation to SATA/NVMe. I haven’t found anything for SATA in regards to windows, IIRC, in the past I had read something. Just focusing in on the Sanitize
Command, on NVMe I found this information which doesn’t match this information.
LsaAddAccountRights() doesn’t actually grant account rights
Full code: https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/security/lsapolicy/lsaprivs
Win32 LoadLibrary, prepend search path for transitive dependencies, without removing PATH env variable
I have a case where I need to load Win32 DLLs into a process. For dependencies of those DLLs, I need the ‘default search path’ to be in effect, which ends by searching the PATH environmental variable. However, I also need to have the directory of the parent library itself searched.
Get minimized/maximized state of a suspended/not responding window
I’m looking to determine whether a window is minimized/maximized/neither, which can normally be done a few different ways:
CryptUnprotectData won’t recognise data
This is sorta a repost but this covers different issues and problems than my old post.
Windows API CryptUnrpotectData fails to decrypt chrome data
Title says it all, i need to know how to use win CryptUnprotectData for a credential manager project im working on but whenever i input any data whether it be the literal encrypted key or the key data received from the sqlite3 library it gives an error or the data is completely blank, even given samples in python dont even work…