Category : win32-process

I have a cpp program that uses fopen_s to open and read a file created under the directory C:WindowsSystem32configsystemprofileAppDataRoaming. My program needs to be compatible with winx64 and win32. When I run this program with a system account (run using PSToolsPSExec -i -s C:windowssystem32cmd.exe) and the Win32 compiled version of the program, fopen_s() on any ..

Read more

void WriteEventViewerLog(LPCWSTR message, const WORD eventType = EVENTLOG_SUCCESS) { auto logName = "abc.exe"; HANDLE event_log = RegisterEventSource(NULL, logName); ReportEvent(event_log, eventType, 0, 0, NULL, 1, 0, &message, NULL); } With this code I am able to write in event viewer, but in general tab I am getting "The operation completed successfully." How to change this general ..

Read more