/* 타이틀 바 이름 바꾸기 */
[DllImport("user32.dll", EntryPoint = "SetWindowText")]
public static extern bool SetWindowText(System.IntPtr hwnd, System.String lpString);
[DllImport("user32.dll", EntryPoint = "SetWindowTextW")]
public static extern bool SetWindowTextW(System.IntPtr hwnd, System.IntPtr lpString);
[DllImport("user32.dll", EntryPoint = "SetWindowTextA")]
public static extern bool SetWindowTextA(System.IntPtr hwnd, System.IntPtr lpString);
/* 프로세스 찾아주기용 */
[DllImport("user32.dll", EntryPoint = "FindWindow")]
public static extern System.IntPtr FindWindow(System.String className, string windowName);
/* IntPtr 변환 */
public static System.IntPtr StringToIntPtr(string a_strTitleName) { return Marshal.StringToCoTaskMemAuto(a_strTitleName); }
'Programming > Unity 3D' 카테고리의 다른 글
C#, Unity3D, 외부 프로세스 실행시키기 (0) | 2023.03.07 |
---|---|
SteamVR Error - "No pose action set for this component" (0) | 2020.05.11 |
Vive Controller Binding 검은화면 띄우는 문제... (1) | 2018.12.11 |
스크립트템플릿 변경 (0) | 2014.08.25 |
Unity3D + Kinect + OpenNI (0) | 2012.01.31 |