Steward
分享是一種喜悅、更是一種幸福
驅動程式 - Windows Driver Model (WDM) - 如何移除已經簽章的驅動程式
main.cpp
#include <stdafx.h>
#include <windows.h>
#include <imagehlp.h>
#pragma comment(lib, "Imagehlp.lib")
int main(int argc, char** argv)
{
HANDLE hFile;
hFile = CreateFile(argv[1], GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
ImageRemoveCertificate(hFile, 0);
CloseHandle(hFile);
return 0;
}