목록소스 팁/C, C++, C# (27)
인디노트
퍼옴 : http://pyrasis.com/blog/entry/ServiceDeleteFlag
지난장에서는 SERVICE_CONTROL_SESSIONCHANGE 를 받아서, 어떠한 이벤트가 떨어지는지 그리고 그러한 정보를 추출해서 필요한 로그를 남기는 작업을 진행하여 보았다. 그렇다면, 이번에는 누군가 컴퓨터에 로그인을 하면, 해당 정보를 출력해주는 환영인사를 남겨보자. 아래 그림은 MessageBox.exe 라는 유틸성 다이알로그를 하나 만들어 놓고, 사용자가 로그인을 하면 해당 정보를 추출하여, 메시지 박스를 띄워 주도록 구성되었다. 동작을 그려보면 다음과 같다. 대충 보면, 윈도우 시작프로그램에 MessageBox.exe를 등록해 놓고 뿌려주는것과 기능은 같다고 할 수 있겠지만 실제로 구현하는 레벨이 좀 다르다. 아무튼 여기서는 CreateProcessToDesktop 라고 하는 유틸성 함수..
Directory Structuredocumentations: Doxygen documentationdokan: dokan1.dll userspace librarydokan_control: userspace program dokanctl.exe, used for unmounting, listing mountpoints etc.dokan_fuse: userspace wrapper library dokanfuse1.dll implementing the FUSE API known from POSIX-OSes (Linux, MacOS, BSD...)dokan_np: userspace network provider dokannp1.dll, needed for mounting as network share or n..
BSTR CString CString BSTRToCString(BSTR bstr) { char* pbstr; USES_CONVERSION; // , convert를 위한 macro pbstr = OLE2A(bstr); // BSTR -> char return CString(bstr); } BSTR CStringToBSTR(CString str) { return str.AllocSysString(); // CString to BSTR } BSTR char* // BSTR to char* BSTR bstr char* pbstr; USES_CONVERSION; // , convert를 위한 macro pbstr = OLE2A(bstr); // BSTR -> char // char to BSTR TCHAR sz..
출처 : https://www.lesstif.com/pages/viewpage.action?pageId=6291508 개요빌드 사전 준비빌드Unix / Linux 빌드 방법Windows 용 빌드 방법TroubleShootingPre Compiled Binary 개요OpenSSL 은 Eric A. Young 이 만든 SSLeay 라이브러리를 기반으로 상용수준의 데이타암복호/SSL/TLS 라이브러리를 만들기 위한 프로젝트이다.Linux 라면 apt-get이나 yum 으로 한방에 설치 가능하지만 Un*x 나 Windows 에서는 컴파일 할 일이 가끔 생겨서 빌드 방법을 정리해 본다. 빌드 사전 준비C/C++ Compiler가 필요하다. Windows 에서는 Visual Studio 2010 Express 버전..
Reference from : https://www.codeproject.com/Articles/43586/File-System-Filter-Driver-Tutorial This tutorial will show you how to develop a simple file system filter driver.Download FsFilter.zip - 16.31 KBNote: This articles describes fundamentals of file system filter drivers and is very welcome to read. But for production consider using minifilter framework as it is more error-proof and availa..
C# Non-ActiveX를 위한 Web Socket Server 만들기-vtortola 이용ActiveX 를 사용한 프로그램은 사라져야 합니다. 하지만, 웹 만으로는 통제하지 못하는 경우가 있기 때문에 실행파일(exe)이 필요한 경우가 있는데요, 이 때에, 로컬 머신에서 실행되는 프로그램과 웹 간의 통신이 필요하게 됩니다. 이미지 출처 : html5korea.com 헷갈리면 안 될 게, 웹 소켓 코딩의 "프로그램과 웹 간의 통신" 이라는 말에서 "웹"은 말 자체로는 서버가 될 것 같지만 웹이지 브라우저에서 실행되므로 클라이언트가 됩니다. 그러므로 exe 에 웹소켓 서버가 내장 되어야 합니다. 이러한 부분에 있어서 TcpClient 등의 기본 클래스로 구현하고자 하였으나, 아무래도 직접 구현해 보니 처음..