Giter Club home page Giter Club logo

_mylib's Issues

CURL http_post 멤버함수 오버로딩

  • http_post 멤버함수 오버로딩
    • Out 파라미터 std::map<std::string, std::string> 형태를 리턴해주는 멤버함수 오버로딩
  • 내부 멤버함수 perform 멤버함수 오버로딩
    • 위에 멤버함수가 올바르게 동작하려면 내부에서 사용하는 멤버 함수 오버로딩
    • CURLOPT_HEADERFUNCTION, CURLOPT_HEADERDATA 해당 옵션 설정필요.
    • On_Callback_response_header 콜백함수 제작
      • Response Header 를 콜백으로 받는다.
      • 해당 콜백함수에서 Out으로 전달해줄 std::map형태로 조립

is_executable_file_w() 분리

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);

로그 백업파일 이름 변경

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()에서 에러를 구분해야한다.

파일의 리소스 섹션이 없는경우 get_file_version()는 항상 실패하게 된다.
때문에, file_version을 ""로 설정하고 true를 return 한다.
그 외의 에러인 경우는 false를 return한다.

[FEATURE] 서비스 Query 권한 에러

이슈 상세 내용

  • service_started() 함수에서 서비스 상태만 체크하더라도 OpenSCManagerW()에서 SC_MANAGER_ALL_ACCESS 권한을 가지고 있어서 관리자 권한을 가지고 있지 않는 프로그램에서 사용할 경우 실패한다.

RegistryUtil.cpp 컴파일 에러

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.