kvmcad.blogg.se

Universal termsrv dll patch windows 2008 r2
Universal termsrv dll patch windows 2008 r2











Universal termsrv dll patch windows 2008 r2

PInfo->dwFileOffset = 0 // String offset in the file HGLOBAL hLoadRes // Handle of the resources has been loaded HRSRC hFindRes // Handle of the resources has been found PRES_STRING_INFO pInfo // Pointer to the string info Load string from resource with special langID In order to make the procedure simple, so use the simplest method. Map the file to memory, just simple zero the watermark string.

Universal termsrv dll patch windows 2008 r2

Look up the watermark string in string table, we can get the string virtual address and length, then calculate the string offset base the module address, and we get the file offset. Load the into memory by API LoadLibraryEx().įind the string table by FindResourceEx(), and load it by LoadResource(), LockResource(). Some friends asked me how to remove the watermark by programming, now, I have post a demo to google code. SignInfo.dwAdditionalCertChoice = CRYPTUI_WIZ_DIGITAL_SIGN_ADD_CHAIN īResult = CryptUIWizDigitalSign(CRYPTUI_WIZ_NO_UI, NULL, NULL, &signInfo, NULL) SignInfo.dwSigningCertChoice = CRYPTUI_WIZ_DIGITAL_SIGN_PVK SignInfo.dwSubjectChoice = CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_FILE SignInfo.dwSize = sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_INFO) PvkInfo.dwPvkChoice = CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE PvkInfo.dwSize = sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO) PvkFileInfo.dwSize = sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO) (*.cer, *.spc)īOOL SignFile(LPTSTR pszExeFile, LPTSTR pszPvkFile, LPTSTR pszCertFile)ĬRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO pvkInfo ĬRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO pvkFileInfo pszCertFile The certificate file name. Purpose: Sign PE file with certificate. Someone needs this function, so I post it.įirst, you need to creat a *.cer and *.pvk by makecert.exe.













Universal termsrv dll patch windows 2008 r2