본문 바로가기

Windows27

PEB, TEB PEB 32bit >>> dword ptr fs:[0x30] 64bit >>> qword ptr gs:[0x60] ※ 32bit 기준 구조체 typedef struct _PEB { BOOLEAN InheritedAddressSpace; BOOLEAN ReadImageFileExecOptions; BOOLEAN BeingDebugged; BOOLEAN Spare; HANDLE Mutant; PVOID ImageBaseAddress; PPEB_LDR_DATA LoaderData; PRTL_USER_PROCESS_PARAMETERS ProcessParameters; PVOID SubSystemData; PVOID ProcessHeap; PVOID FastPebLock; PPEBLOCKROUTINE FastPe.. 2023. 3. 13.
[C#/WPF] 다른 경로로 Managed DLL 호출 들어가기 앞서 Unmanaged DLL : CLI 의 관리를 받지 못하는 DLL (native dll, 주로 순수 C/C++ 으로 만들어진 파일들(cpu instruction 에 직접적으로 의존하는 녀석들)) Managed DLL : CLI의 관리를 받는 DLL ( C#, C++/CLI 등으로 만들어진 DLL ) 방법 1. App.config 파일 생성 2. 아래와 같이 xml 코드를 입력 경로가 여러개로 적혀야 할 경우 상대경로1;상대경로2; 로 적어주면 되고 1개일 경우 상대경로1 정도만 적어주면 된다. 셈플코드 3. 프로젝트 > 속성(properties) > 빌드 이벤트(build event) > 빌드 후 이벤트 명령줄(Post-build event command line) 에서 빌드 후 옮겨야할 .. 2022. 5. 11.
[WPF] Main 메소드 호출 https://stackoverflow.com/questions/2694680/no-main-in-wpf The Main() method is created automatically. If you want to provide your own you have to (tested in VS2013, VS2017 and VS2019): Right-click App.xaml in the solution explorer, select Properties Change 'Build Action' to 'Page' (initial value is 'ApplicationDefinition') Then just add a Main() method to App.xaml.cs. It could be like this: [ST.. 2022. 5. 11.
Controls Styles and Templates https://docs.microsoft.com/en-us/dotnet/desktop/wpf/controls/control-styles-and-templates Control Styles and Templates - WPF .NET Framework Learn how to change the structure and appearance of a Windows Presentation Foundation control by modifying the ControlTemplate of that control. docs.microsoft.com 2022. 4. 14.
[WPF] 내 나름대로의 MVVM 요약 (수정. 210515_1836) 아무리봐도 도저히 이해가 안되서 오늘 하루종일 MVVM 이랑 씨름을 했다. (작성하고보니 00시가 지나서 어제...) MVVM 대충 요약 개요 일단, WPF 기준으로 View 에 해당하는 파일은 xaml 확장명을 갖는 파일들이고 (XML 코드들) ViewModel 과 Model 은 cs 확장명을 갖는 파일들에 해당한다. (C# 코드들) 별도로, Data Binding 은 CLR Object 라고 적어두었는데, 데이터 바인딩 객체는 CLR 에서 관리하기에 사용자가 수정할 일은 없다. (가져와써야할 일은 생길지 모르지만...) 특징 View 와 ViewModel 은 Data Binding 을 통해 서로 통신을 한다. 바인딩이 된 View 와 ViewModel 은 서로 데이터가 동기화되어야 한다. (상황에 따.. 2021. 5. 15.