» An ultimate catalog of computer data
Forum posts for lsass.exe
CreateFile fails on opening lsass.exe
I'm working on a program, which collects some statistics about processes, which are running on the system.
I've got a code, which retrieves some routine information, such as executable file version, publisher and so on.
The code works fine for me until I open lsass.exe.
When I try to open file for reading, CreateFile fails with error ERROR_FILE_NOT_FOUND.
Here is the code:
auto FileHandle
= CreateFile(file_to_process.c_str(), // C:WindowsSystem32lsass.exe
GENERIC_READ,
FILE_SHARE_DELETE|FILE_SHARE_READ|FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
if ( INVALID_HANDLE_VALUE == FileHandle )
{
int err_v = GetLastError(); // ERROR_FILE_NOT_FOUND
}
This code is a part of a system service, which is running with 'SYSTEM' privileges.
View complete forum thread with replies
Other posts related to lsass.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
lsass.exe cousumes a lot of memory and CPU
Can I block HTTP request sended from winlogon.exe and lsass.exe?
Visual Studio 2013 locks up when files are saved
Windows Server crashes unexpectedly , lsass.exe, failed with status code 255 [closed]
How to get debugging information when custom SSP crashes on customer machine at boot?
lsass.exe starts maxing CPU after ASP.NET web app deployment
CreateFile fails on opening lsass.exe
get a process id from process name