부모글 보이기/감추기 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 비밀번호 댓글 작성자 ... 91 92 93 94 95 [96] 97 98 99 100 101 102 103 104 105 ... NoWriterDateCnt.TitleFile(s) 11627정성태7/25/201823906개발 환경 구성: 390. C# - 컴파일러 옵션 OSS signing / Public Signing11626정성태7/25/201821755오류 유형: 471. .C++ 함수를 const로 바꾼 경우 C2440 컴파일 오류가 발생한다면?11625정성태7/24/201821474Math: 49. GeoGebra 기하 (25) - 타원의 중심점 찾기111624정성태7/24/201826949개발 환경 구성: 389. C# - 재현 가능한 빌드(reproducible builds) == Deterministic builds [4]11623정성태7/24/201825918Math: 48. C# - 가우시안 함수의 이산형(discrete) 커널 값 생성111622정성태7/23/201824969개발 환경 구성: 388. Windows 환경에서 Octave 패키지 설치하는 방법11621정성태7/23/201824074VC++: 127. 멤버 함수에 대한 포인터를 외부에서 호출하는 방법111620정성태7/22/201825912Graphics: 11. Unity로 실습하는 Shader (7) - Blur (평균값, 가우스, 중간값) 필터 [1]111619정성태7/21/201825874Graphics: 10. Unity로 실습하는 Shader (6) - Mosaic Shading11618정성태7/20/201822088개발 환경 구성: 387. 삼성 오디세이(Odyssey) 노트북의 운영체제를 새로 설치하는 방법11617정성태7/20/201822683Team Foundation Server: 50. TFS 소스 코드 관리 기능 (5) - "Rollback", "Rollback Entire Changeset"11616정성태7/17/201821334Graphics: 9. Unity Shader - 전역 변수의 초기화11615정성태7/17/201825829.NET Framework: 788. RawInput을 이용한 키보드/마우스 입력 모니터링111614정성태7/17/201829668Graphics: 8. Unity Shader - Texture의 UV 좌표에 대응하는 Pixel 좌표11613정성태7/16/201826728Graphics: 7. Unity로 실습하는 Shader (5) - Flat Shading11612정성태7/16/201823661Windows: 148. Windows - Raw Input의 Top level collection 의미11611정성태7/15/201824566Graphics: 6. Unity로 실습하는 Shader (4) - 퐁 셰이딩(phong shading)11610정성태7/15/201822942Graphics: 5. Unity로 실습하는 Shader (3) - 고로 셰이딩(gouraud shading) + 퐁 모델(Phong model) + Texture11609정성태7/15/201825234Graphics: 4. Unity로 실습하는 Shader (2) - 고로 셰이딩(gouraud shading) + 퐁 모델(Phong model)11608정성태7/15/201828014Graphics: 3. Unity로 실습하는 Shader (1) - 컬러 반전 및 상하/좌우 뒤집기11607정성태7/14/201828187Graphics: 2. Unity로 실습하는 Shader [1]11606정성태7/13/201829495사물인터넷: 19. PC에 연결해 동작하는 자신만의 USB 장치 만들어 보기111605정성태7/13/201826188사물인터넷: 18. New NodeMCU v3 아두이노 호환 보드의 내장 LED 및 입력 핀 사용법 [1]111604정성태7/12/201825691Math: 47. GeoGebra 기하 (24) - 정다각형111603정성태7/12/201819298Math: 46. GeoGebra 기하 (23) - sqrt(n) 제곱근111602정성태7/11/201820502Math: 45. GeoGebra 기하 (22) - 반전기하학의 원에 관한 반사변환1 ... 91 92 93 94 95 [96] 97 98 99 100 101 102 103 104 105 ...