Relative Content

Tag Archive for winapi

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 ?

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.

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…