private PacDriveSingleton()
        {
            PacAttachedCallbackPtr = new PAC_ATTACHED_CALLBACK(PacAttachedCallback);
            PacRemovedCallbackPtr  = new PAC_REMOVED_CALLBACK(PacRemovedCallback);

            PacSetCallbacks(PacAttachedCallbackPtr, PacRemovedCallbackPtr);
            Initialize();
        }
 private static void PacSetCallbacks(PAC_ATTACHED_CALLBACK pacAttachedCallback, PAC_REMOVED_CALLBACK pacRemovedCallback)
 {
     if (IntPtr.Size == 8)
     {
         PacSetCallbacks64(pacAttachedCallback, pacRemovedCallback);
     }
     else
     {
         PacSetCallbacks32(pacAttachedCallback, pacRemovedCallback);
     }
 }
Exemple #3
0
 private static extern void PacSetCallbacks32(PAC_ATTACHED_CALLBACK pacAttachedCallback, PAC_REMOVED_CALLBACK pacRemovedCallback);
Exemple #4
0
        public PacDrive(Control ctrl)
        {
            m_ctrl = ctrl;
            m_mode64 = Is64BitMode();

            PacAttachedCallbackPtr = new PAC_ATTACHED_CALLBACK(PacAttachedCallback);
            PacRemovedCallbackPtr = new PAC_REMOVED_CALLBACK(PacRemovedCallback);

            if(m_mode64)
                PacSetCallbacks64(PacAttachedCallbackPtr, PacRemovedCallbackPtr);
            else
                PacSetCallbacks32(PacAttachedCallbackPtr, PacRemovedCallbackPtr);
        }
        private PacDriveSingleton()
        {


            PacAttachedCallbackPtr = new PAC_ATTACHED_CALLBACK(PacAttachedCallback);
            PacRemovedCallbackPtr = new PAC_REMOVED_CALLBACK(PacRemovedCallback);

            PacSetCallbacks(PacAttachedCallbackPtr, PacRemovedCallbackPtr);
            Initialize();
        }
Exemple #6
0
 private static extern void PacSetCallbacks(PAC_ATTACHED_CALLBACK pacAttachedCallback, PAC_REMOVED_CALLBACK pacRemovedCallback);