부모글 보이기/감추기 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) 285정성태6/20/200622617오류 유형: 9. [TFS] Report 관련 서비스를 조회할 때 rsErrorImpersonatingUser 오류 메시지 발생 [1]284정성태6/19/200620376VS.NET IDE: 40. FxCop - IDE 에서 제공해 주는 SuppressMessage 코드283정성태1/19/200721218Team Foundation Server: 8. 소스 세이프에서 TFS SourceControl 로 마이그레이션 [2]279정성태12/27/200626657개발 환경 구성: 3. VS.NET 원격 디버깅 [1]280정성태6/12/200626083 개발 환경 구성: 3.1. VS.NET 2003 원격 디버깅 설정281정성태8/11/200627577 개발 환경 구성: 3.2. VS.NET 2005 원격 디버깅 설정315정성태8/11/200628196 개발 환경 구성: 3.3. VS.NET 2005 원격 디버깅 설정 - ASP.NET F5 디버깅278정성태6/11/200624737오류 유형: 8. [Outlook] 0x8004011D 에러 - "Exchange over the Internet" 환경276정성태6/7/200618225Team Foundation Server: 7. 외부 빌드 머신 구성287정성태6/24/200615841 Team Foundation Server: 7.1. 외부 빌드 머신 구성 - 다른 블로그 자료275정성태6/7/200623777디버깅 기술: 4. VC++ 8.0 원격 디버깅 구성 - Side-by-Side DLL 문제.269정성태6/6/200620985Team Foundation Server: 6. HTTPS를 통한 Team Server 접근 [1]270정성태6/5/200617924 Team Foundation Server: 6.1. HTTPS를 통한 Team Server 접근 [1]273정성태6/6/200620639 Team Foundation Server: 6.2. 두번째 방법 - HTTPS 를 통한 Team Server 접근 [1]267정성태6/4/200619950Team Foundation Server: 5. 인터넷으로 Team Server 접근 [2]266정성태6/8/200616538오류 유형: 7. [설치] mpoai9.dll 관련 오류265정성태6/1/200624251디버깅 기술: 3. 원격 컴퓨터 디버깅 - VPC 설정314정성태8/11/200621325 디버깅 기술: 3.1. Managed 원격 디버깅과 WinDBG 원격 디버깅264정성태6/1/200630420오류 유형: 6. [VC++ 컴파일] already defined in ntdll.lib(ntdll.dll)263정성태6/1/200631437디버깅 기술: 2. 커널 구조체 살펴보기 [5]262정성태6/1/200623748오류 유형: 5. [설치] WinFX Beta2 - 설치시 문제점 해결261정성태6/1/200620212웹: 3. IIS 6.0 - AppPool을 활용하여 실 서버(운영 서버)에서 디버깅258정성태6/1/200628129디버깅 기술: 1. 디버깅 방법 - CLR 프로파일러 [1]1274정성태6/7/200621035 디버깅 기술: 1.1. 디버깅 방법 - CLR 프로파일러 ( on Vista )254정성태6/1/200617537개발 환경 구성: 2. VPC에 Vista 설치하는 방법 [2]255정성태6/1/200617184 개발 환경 구성: 2.1. msconfig 설정과 Windows Activation ... 181 182 183 184 185 186 [187] 188 189 190 191 192 193 194 195 ...