somma / _mylib Goto Github PK
View Code? Open in Web Editor NEWwindows utility code
License: GNU General Public License v2.0
windows utility code
License: GNU General Public License v2.0
curl을 이용해서 post하는 기능 추가해야한다.
is_executable_file_w() 를 filepath와 handle을 받는 함수로 분리한다.
기존
bool is_executable_file_w(In const wchar_t* path, Out IMAGE_TYPE& type);
변경
is_executable_file_w(path) 내부에서 is_executable_file_w(handle)을 호출해서 처리
bool is_executable_file_w(In const wchar_t* path, Out IMAGE_TYPE& type);
bool is_executable_file_w(In HANDLE file_handle, Out IMAGE_TYPE& type);
AES256을 이용한 문자열 암,복호화 기능 추가
initialize_log() 호출시 log파일이 있는경우 로그 파일을 backup을 하고 log파일을 새로 만든다.
하지만 backup파일의 이름이 날짜형태로만 되어있어 해당 로그를 구분하기 어렵다.
[현재 log backup파일]
2017-12-18_21-09-35.00325.log = Monster.log
2017-12-18_17-34-15.00844.log = MonsterTray.log
[변경]
Monster.log.2017-12-19_18-00-52
MonsterTray.log.2017-12-19_18-00-52
파일의 리소스 섹션이 없는경우 get_file_version()는 항상 실패하게 된다.
때문에, file_version을 ""로 설정하고 true를 return 한다.
그 외의 에러인 경우는 false를 return한다.
SC_MANAGER_ALL_ACCESS
권한을 가지고 있어서 관리자 권한을 가지고 있지 않는 프로그램에서 사용할 경우 실패한다.문자열로 받은 레지스트리 경로를 root_key와 sub_key로 분리 하는 기능 추가
C2733 에러가 다수 발생한다.
1> RegistryUtil.cpp
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(243): error C2733: 'lstrcatA': second C linkage of overloaded function not allowed
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\winbase.h(2706): note: see declaration of 'lstrcatA'
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(247): error C2733: 'vsprintf': second C linkage of overloaded function not allowed
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\ucrt\stdio.h(1467): note: see declaration of 'vsprintf'
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(249): error C2733: 'wsprintfW': second C linkage of overloaded function not allowed
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\winuser.h(309): note: see declaration of 'wsprintfW'
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(380): warning C4005: 'StrCatBuff': macro redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\dontuse.h(192): note: see previous definition of 'StrCatBuff'
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(382): warning C4005: 'wvnsprintf': macro redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\dontuse.h(190): note: see previous definition of 'wvnsprintf'
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(383): warning C4005: 'wnsprintf': macro redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\dontuse.h(191): note: see previous definition of 'wnsprintf'
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(486): warning C4005: 'StrNCpy': macro redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\dontuse.h(189): note: see previous definition of 'StrNCpy'
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\shlwapi.h(494): warning C4005: 'StrCpyN': macro redefinition
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\dontuse.h(181): note: see previous definition of 'StrCpyN'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.