getlasterror

  1. X

    Windows 7 CryptUnprotectData failing when code compiled on Windows

    Dear All, I need some help regarding a strange issue with CryptUnprotectData function. I have a C++ code that reads the database password from the registry and decrypts it using CryptUnprotectData. We have to deploy this application on a Windows 7 machine. When I compile my code on...
  2. S

    Windows 7 Driver doesn't get system code (IOCTL)

    Hi, I'm newbie, so it's maybe stupid question) So, I've got raid controller, wdf driver and application. It worked on Windows XP and Server 2003. On Windows 7 it doesn't work(. System function (like ::DeviceIoControl) began to return FALSE. I think that this function work with DIRECT I/O. The...
  3. D

    Windows 7 GetCommState keeps failing with error ERROR_INVALID_FUNCTION

    I am using a Windows 7 machine, and I am trying to follow the C++ example posted here: http://msdn.microsoft.com/en-us/library/aa363201(v=VS.85).aspx and I keep entering this if statement fSuccess = GetCommState(hCom, &dcb); if (!fSuccess) { // Handle the error. printf...
Back
Top