AcquireRootMenu() 개인적인 메소드

private AcquireRootMenu ( ) : IntPtr
리턴 System.IntPtr
예제 #1
0
 internal static void Initialize()
 {
     if (mInitialized)
     {
         return;
     }
     API.AcquireRootMenu();
     ConnectEvents();
     API.Gestalt(GestaltSelector.SystemVersionMajor, out osMajor);
     API.Gestalt(GestaltSelector.SystemVersionMinor, out osMinor);
     API.Gestalt(GestaltSelector.SystemVersionBugFix, out osBugfix);
     Debug.Print("Running on Mac OS X {0}.{1}.{2}.", osMajor, osMinor, osBugfix);
     TransformProcessToForeground();
 }
예제 #2
0
        internal static void Initialize()
        {
            if (Application.mInitialized)
            {
                return;
            }
            API.AcquireRootMenu();
            Application.ConnectEvents();
            int num1 = (int)API.Gestalt(GestaltSelector.SystemVersionMajor, out Application.osMajor);
            int num2 = (int)API.Gestalt(GestaltSelector.SystemVersionMinor, out Application.osMinor);
            int num3 = (int)API.Gestalt(GestaltSelector.SystemVersionBugFix, out Application.osBugfix);

            Application.TransformProcessToForeground();
        }