SetFrontProcess() приватный Метод

private SetFrontProcess ( Carbon &psn ) : int
psn Carbon
Результат int
Пример #1
0
 private static void TransformProcessToForeground()
 {
     Carbon.ProcessSerialNumber psn = new ProcessSerialNumber();
     Debug.Print("Setting process to be foreground application.");
     API.GetCurrentProcess(ref psn);
     API.TransformProcessType(ref psn, ProcessApplicationTransformState.kProcessTransformToForegroundApplication);
     API.SetFrontProcess(ref psn);
 }
Пример #2
0
        private static void TransformProcessToForeground()
        {
            ProcessSerialNumber psn = new ProcessSerialNumber();

            API.GetCurrentProcess(ref psn);
            API.TransformProcessType(ref psn, ProcessApplicationTransformState.kProcessTransformToForegroundApplication);
            API.SetFrontProcess(ref psn);
        }