Help with the driver.

turned off the digital signature when the system was booted, turned on the test mode, turned off the digital signature verification in Group Policy, started it from the administrator, created a test certificate (manually and through VS) and specified the locations manually and automatically = ERROR CODE: 1275 (Access Denied);

HOW TO RUN YOUR DRIVER ?????????? WINDOWS 10

void install_NDIS_driver() { SC_HANDLE hSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_CREATE_SERVICE); if (hSCManager == NULL) printf("OpenSCManager Failed with error code: %i\n",GetLastError()); else printf("OpenSCManager Sucessfully\n"); SC_HANDLE mService = CreateService(hSCManager, "TESTDRIVER", "TESTDRIVER", SC_MANAGER_ALL_ACCESS, SERVICE_KERNEL_DRIVER, SERVICE_AUTO_START, SERVICE_ERROR_NORMAL, "C:\\Users\\Exidios\\source\\repos\\TESTDRIVER\\x64\\Release\\TESTDRIVER.sys", NULL, NULL, NULL, NULL, NULL ); SC_HANDLE mOpenService = OpenService(hSCManager, "TESTDRIVER", SERVICE_ALL_ACCESS); if (mOpenService == NULL) { CloseServiceHandle(hSCManager); printf("OpenService Failed with error code: %i\n",GetLastError()); } else { printf("Sucessfully OpenService\n"); BOOL b = StartServiceA(mOpenService, NULL, NULL); if (!b) printf("fail StartServiceA: %i\n",GetLastError()); else printf("StartServiceA sucessfully\n"); } } 
  • one
    Suggest to guess which of the four places you have an error is displayed? - Vladimir Martyanov
  • I said, Acess Denied to launch the driver. (1275); "if (! b) printf (" fail StartServiceA:% i \ n ", GetLastError ());" - XaskeL
  • Where did you say that? My eyes are tired at night, I do not see. Regardless, I strongly recommend reading about the return value of CreateService and see how you check it in the code. - Vladimir Martyanov
  • Oh, before sending here forgot to remove unnecessary. Sorry. I mean it: Where it goes: printf ("Sucessfully OpenService \ n"); BOOL b = StartServiceA (mOpenService, NULL, NULL); For unknown reasons, ERROR CODE (1275: ACCESS DENIED) issues a digital signature on StartServiceA, turned off the digital signature, turned on the test mode, turned off the digital signature verification in the group policy, made a digital signature and so on, but still there is an error and I already broke my head above her. - XaskeL
  • So does anyone know how to run your driver without resorting to Windows 7? - XaskeL 10:39 pm

0