![]() ![]() If (te.dwSize >= (FIELD_OFFSET(THREADENTRY32, th32OwnerProcessID) + sizeof(te. HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0) //TH32CS_SNAPMODULE, 0) NOTE: hard-coded for testing - be sure not to overflow the array if > 5 threads exist * Of course, if the operation creates any new threads that don't exit, then you have a problem. ![]() * 4) Wait for any new threads using WaitForMultipleObjects ![]() Create a password for the document, re-enter it, then change the encryption method to AES-256, then press OK. * 1) Enumerate current threads in the process using Thread32First/Thread32Next 7-Zip can password protect and encrypt any file you put in a zip folder, regardless of the file extension. HResult = pToFolder->CopyHere(vFile, vOpt) //NOTE: this appears to always return S_OK even on error VOpt.lVal = 4 // Do not display a progress dialog box MultiByteToWideChar(CP_ACP, 0, szFrom, -1, strptr2, strlen) Strlen = MultiByteToWideChar(CP_ACP, 0, szFrom, -1, 0, 0) HResult = pISD->NameSpace(vDir, &pToFolder) MultiByteToWideChar(CP_ACP, 0, szTo, -1, strptr1, strlen) Strlen = MultiByteToWideChar(CP_ACP, 0, szTo, -1, 0, 0) HResult = CoCreateInstance(&CLSID_Shell, NULL, CLSCTX_INPROC_SERVER, &IID_IShellDispatch, (void**)&pISD)
0 Comments
Leave a Reply. |