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"); } }