SetFrontProcess() private method

private SetFrontProcess ( Carbon &psn ) : int
psn Carbon
return 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);
        }