You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i cannot open
killdefender.exe pid
.cpp only and cant build it by g++ saying
g++ killdefender.cpp
killdefender.cpp: In function 'int getpid(LPCWSTR)':
killdefender.cpp:56:40: error: cannot convert 'CHAR [260] {aka char [260]}' to 'LPCWSTR {aka const wchar_t*}' in assignment
processName = processEntry.szExeFile;
^~~~~~~~~
killdefender.cpp: In function 'BOOL SetPrivilege(HANDLE, LPCTSTR, BOOL)':
killdefender.cpp:86:39: error: 'SE_PRIVILEGE_REMOVED' was not declared in this scope
tp.Privileges[0].Attributes = SE_PRIVILEGE_REMOVED;
^~~~~~~~~~~~~~~~~~~~
killdefender.cpp:88:39: error: 'SE_PRIVILEGE_REMOVED' was not declared in this scope
tp.Privileges[0].Attributes = SE_PRIVILEGE_REMOVED;
^~~~~~~~~~~~~~~~~~~~
killdefender.cpp: In function 'int main(int, char**)':
killdefender.cpp:196:4: error: 'TOKEN_MANDATORY_LABEL' was not declared in this scope
TOKEN_MANDATORY_LABEL tokenIntegrityLevel = {};
^~~~~~~~~~~~~~~~~~~~~
killdefender.cpp:197:4: error: 'tokenIntegrityLevel' was not declared in this scope
tokenIntegrityLevel.Label.Attributes = SE_GROUP_INTEGRITY;
^~~~~~~~~~~~~~~~~~~
killdefender.cpp:202:8: error: 'TokenIntegrityLevel' was not declared in this scope
TokenIntegrityLevel,
^~~~~~~~~~~~~~~~~~~
i hope you help me
The text was updated successfully, but these errors were encountered:
i cannot open
killdefender.exe pid
.cpp only and cant build it by g++ saying
g++ killdefender.cpp
killdefender.cpp: In function 'int getpid(LPCWSTR)':
killdefender.cpp:56:40: error: cannot convert 'CHAR [260] {aka char [260]}' to 'LPCWSTR {aka const wchar_t*}' in assignment
processName = processEntry.szExeFile;
^~~~~~~~~
killdefender.cpp: In function 'BOOL SetPrivilege(HANDLE, LPCTSTR, BOOL)':
killdefender.cpp:86:39: error: 'SE_PRIVILEGE_REMOVED' was not declared in this scope
tp.Privileges[0].Attributes = SE_PRIVILEGE_REMOVED;
^~~~~~~~~~~~~~~~~~~~
killdefender.cpp:88:39: error: 'SE_PRIVILEGE_REMOVED' was not declared in this scope
tp.Privileges[0].Attributes = SE_PRIVILEGE_REMOVED;
^~~~~~~~~~~~~~~~~~~~
killdefender.cpp: In function 'int main(int, char**)':
killdefender.cpp:196:4: error: 'TOKEN_MANDATORY_LABEL' was not declared in this scope
TOKEN_MANDATORY_LABEL tokenIntegrityLevel = {};
^~~~~~~~~~~~~~~~~~~~~
killdefender.cpp:197:4: error: 'tokenIntegrityLevel' was not declared in this scope
tokenIntegrityLevel.Label.Attributes = SE_GROUP_INTEGRITY;
^~~~~~~~~~~~~~~~~~~
killdefender.cpp:202:8: error: 'TokenIntegrityLevel' was not declared in this scope
TokenIntegrityLevel,
^~~~~~~~~~~~~~~~~~~
i hope you help me
The text was updated successfully, but these errors were encountered: