부모글 보이기/감추기 AD BLOCK 해제 요청 이 글에는 광고가 많이 들어가 있지 않습니다. adblock을 해제하셔도 글을 읽는데 그다지 부담이 없으니 해제를 부탁드립니다. EmptyWorkingSet Win32 API를 사용하는 C# 예제 그냥... 아래의 질문에 대한 답으로 작성한 간단한 예제입니다. [c#] EmptyWorkingSet 사용 중 에러 ; http://social.msdn.microsoft.com/Forums/ko-KR/6dff23f4-ece9-43a4-8f6b-3528cca5b4c4/c-emptyworkingset-?forum=dotnetko 참고로, 아래의 코드는 자신의 프로세스에 대한 메모리를 조정하는 것이므로 관리자 권한으로 승격된 프로세스가 아니어도 잘 동작합니다. using System; using System.Diagnostics; using System.Runtime.InteropServices; namespace ConsoleApplication1 { class Program { [DllImport("psapi.dll")] public static extern int EmptyWorkingSet(IntPtr hProcess); static void Main(string[] args) { IntPtr processHandle = Process.GetCurrentProcess().Handle; Console.WriteLine("WorkingSet Mem Size: " + Process.GetCurrentProcess().WorkingSet64); Console.ReadLine(); int result = EmptyWorkingSet(processHandle); Console.WriteLine("Result: " + ((result != 0) ? "Success" : "Failed")); Console.WriteLine("WorkingSet Mem Size: " + Process.GetCurrentProcess().WorkingSet64); } } } 예제 코드는 첨부 파일로 넣어두었습니다. [이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.] [다음 글] 오류 유형: 237. Windows Media Player cannot access the file. The file might be in use, you might not have access to the computer where the file is stored, or your proxy settings might not be correct.[이전 글] Windows: 99. INetCache 폴더가 다르게 보이는 이유 [최초 등록일: 8/13/2014] [최종 수정일: 8/14/2014] 이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다. by SeongTae Jeong, mailto:techsharer at outlook.com 비밀번호 댓글 작성자 ... 181 182 183 184 185 186 187 188 189 190 [191] 192 193 194 195 ... NoWriterDateCnt.TitleFile(s) 208정성태10/21/200617430Windows: 1. 성태도 ^^ Vista 설치 해봤습니다.212정성태10/20/200617106 Windows: 1.1. Vista 에서 WinFX 런타임 구동207정성태4/13/200626136VC++: 23. VC++ RGS 파일에 사용자 정의 파라미터 추가205정성태4/13/200623285VS.NET IDE: 37. devenv.exe를 이용한 Command Line 컴파일 [1]204정성태5/8/200618372웹: 2. Server Unavailable - Server Application Unavailable203정성태4/13/200617228웹: 1. IIS 설정 옵션: Verify(Check) that file exists202정성태4/13/200616927VS.NET IDE: 36. Automatically synchronize with an Internet time server201정성태4/13/200620137기타: 12. XMLHTTP Failure and SUS Admin200정성태4/13/200619369.NET Framework: 58. 웹 서비스 메서드 호출 오류 유형 - text/html; charset=xxx, but expected 'text/xml'199정성태4/13/200620744스크립트: 6. XHTML or HTML 4.01 표준 준수194정성태4/13/200619960VC++: 22. IDL Library 절193정성태4/13/200620384.NET Framework: 57. IComponentChangeService 인터페이스192정성태6/1/200617688VC++: 21. Visual C++ struct와 class의 차이점189정성태4/13/200625334VC++: 20. ActiveX CAB 파일 오류 유형 - 파일을 대상 디렉터리로 복사할 수 없음. [6]187정성태11/24/200519817VS.NET IDE: 35. VS.NET 2005 IDE Tip - 2번째 : XML / XSL 지원 강화186정성태11/23/200517128.NET Framework: 56. VS.NET 2005 IDE Tip182정성태11/21/200517267.NET Framework: 55. 에러가 발생할 것만 같은 코드181정성태11/20/200546203.NET Framework: 54. 한글이 포함된 ANSI, UTF-8, UNICODE 텍스트 파일 읽기 [3]1197정성태12/25/200521606 .NET Framework: 54.4. [관련 문제] A 태그의 href에서의 문제.198정성태12/27/200519275 .NET Framework: 54.5. [추가]: VS.NET으로 UTF-8 홈페이지 구성하기179정성태11/8/200516976.NET Framework: 53. .NET Remoting: 메시지 교체178정성태11/5/200517751기타: 11. Dual Core 장만. ^^177정성태11/2/200517576COM 개체 관련: 17. CoGetClassObjectFromURL1176정성태3/29/200622848.NET Framework: 52. covariance? [1]1175정성태10/31/200518328.NET Framework: 51. MSXML 6.0에서 디지털 서명 기능을 제거!180정성태11/15/200518606 VS.NET IDE: 51.1. MSXML 6.0 정식 릴리스 ... 181 182 183 184 185 186 187 188 189 190 [191] 192 193 194 195 ...