Click here to Skip to main content
15,894,955 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to show "Press any key to Continue" Pin
yakupc30-Oct-09 4:18
yakupc30-Oct-09 4:18 
AnswerRe: How to show "Press any key to Continue" PinPopular
Luc Pattyn30-Oct-09 3:56
sitebuilderLuc Pattyn30-Oct-09 3:56 
GeneralRe: How to show "Press any key to Continue" Pin
dojohansen31-Oct-09 22:42
dojohansen31-Oct-09 22:42 
AnswerRe: How to show "Press any key to Continue" Pin
vtchris-peterson30-Oct-09 4:31
vtchris-peterson30-Oct-09 4:31 
AnswerRe: How to show "Press any key to Continue" Pin
PIEBALDconsult30-Oct-09 4:40
mvePIEBALDconsult30-Oct-09 4:40 
GeneralRe: How to show "Press any key to Continue" Pin
Luc Pattyn30-Oct-09 6:28
sitebuilderLuc Pattyn30-Oct-09 6:28 
GeneralRe: How to show "Press any key to Continue" Pin
PIEBALDconsult30-Oct-09 7:18
mvePIEBALDconsult30-Oct-09 7:18 
QuestionSQLite Pin
jashimu30-Oct-09 3:04
jashimu30-Oct-09 3:04 
AnswerRe: SQLite Pin
Not Active30-Oct-09 3:20
mentorNot Active30-Oct-09 3:20 
AnswerMessage Closed Pin
30-Oct-09 4:04
stancrm30-Oct-09 4:04 
GeneralRe: SQLite Pin
jashimu30-Oct-09 5:09
jashimu30-Oct-09 5:09 
AnswerRe: SQLite Pin
Amit Patel198530-Oct-09 4:10
Amit Patel198530-Oct-09 4:10 
AnswerRe: SQLite Pin
Eddy Vluggen30-Oct-09 5:53
professionalEddy Vluggen30-Oct-09 5:53 
QuestionHow can I get the use ratio of the network of local PC? Pin
sinron30-Oct-09 2:58
sinron30-Oct-09 2:58 
AnswerMessage Closed Pin
30-Oct-09 4:56
stancrm30-Oct-09 4:56 
GeneralRe: How can I get the use ratio of the network of local PC? Pin
sinron30-Oct-09 20:10
sinron30-Oct-09 20:10 
Questionusing DHCPSetOptionValueV5 to set the option on subnet Pin
Ganesh_T30-Oct-09 2:23
Ganesh_T30-Oct-09 2:23 
QuestionCD Wrinting Pin
Amit Patel198530-Oct-09 2:05
Amit Patel198530-Oct-09 2:05 
AnswerRe: CD Wrinting Pin
Covean30-Oct-09 2:07
Covean30-Oct-09 2:07 
AnswerMessage Closed Pin
30-Oct-09 2:08
stancrm30-Oct-09 2:08 
GeneralRe: CD Wrinting Pin
Amit Patel198530-Oct-09 2:22
Amit Patel198530-Oct-09 2:22 
inside Do i m doing this following thing
//
            // Create and initialize the IDiscRecorder2 object
            //
            MsftDiscRecorder2 discRecorder = new MsftDiscRecorder2();
            BurnData burnData = (BurnData)e.Argument;
            discRecorder.InitializeDiscRecorder(burnData.uniqueRecorderId);
            discRecorder.AcquireExclusiveAccess(true, m_clientName);

            //
            // Create and initialize the IDiscFormat2Data
            //
            MsftDiscFormat2Data discFormatData = new MsftDiscFormat2Data();
            discFormatData.Recorder = discRecorder;
            discFormatData.ClientName = m_clientName;
            discFormatData.ForceMediaToBeClosed = checkBoxCloseMedia.Checked;

            //
            // Check if media is blank, (for RW media)
            //
            object[] multisessionInterfaces = null;
            if (!discFormatData.MediaHeuristicallyBlank)
            {
                multisessionInterfaces = discFormatData.MultisessionInterfaces;
            }

            //
            // Create the file system
            //
            IStream fileSystem = null;
                    if (!CreateMediaFileSystem(discRecorder, multisessionInterfaces, out fileSystem))
            {
                e.Result = -1;
                return;
            }

            //
            // add the Update event handler
            //
            discFormatData.Update += new DiscFormat2Data_EventHandler(discFormatData_Update);

            //
            // Write the data here
            //
            try
            {

                discFormatData.Write(fileSystem);
                e.Result = 0;
            }
            catch (COMException ex)
            {
                e.Result = ex.ErrorCode;
                MessageBox.Show(ex.Message, "IDiscFormat2Data.Write failed",
                    MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }

            //
            // remove the Update event handler
            //
            discFormatData.Update -= new DiscFormat2Data_EventHandler(discFormatData_Update);

            if (this.checkBoxEject.Checked)
            {
                discRecorder.EjectMedia();
            }


inside discFormatData.Write(fileSystem);

this call the follwing m_UpdateDelegate(sender, args);

this calles the

void discFormatData_Update([In, MarshalAs(UnmanagedType.IDispatch)] object sender, [In, MarshalAs(UnmanagedType.IDispatch)] object progress)
       {
           //
           // Check if we've cancelled
           //
           if (backgroundBurnWorker.CancellationPending)
           {
               IDiscFormat2Data format2Data = (IDiscFormat2Data)sender;
               format2Data.CancelWrite();
               return;
           }

           IDiscFormat2DataEventArgs eventArgs = (IDiscFormat2DataEventArgs)progress;

           m_burnData.task = BURN_MEDIA_TASK.BURN_MEDIA_TASK_WRITING;

           // IDiscFormat2DataEventArgs Interface
           m_burnData.elapsedTime = eventArgs.ElapsedTime;
           m_burnData.remainingTime = eventArgs.RemainingTime;
           m_burnData.totalTime = eventArgs.TotalTime;

           // IWriteEngine2EventArgs Interface
           m_burnData.currentAction = eventArgs.CurrentAction;
           m_burnData.startLba = eventArgs.StartLba;
           m_burnData.sectorCount = eventArgs.SectorCount;
           m_burnData.lastReadLba = eventArgs.LastReadLba;
           m_burnData.lastWrittenLba = eventArgs.LastWrittenLba;
           m_burnData.totalSystemBuffer = eventArgs.TotalSystemBuffer;
           m_burnData.usedSystemBuffer = eventArgs.UsedSystemBuffer;
           m_burnData.freeSystemBuffer = eventArgs.FreeSystemBuffer;

           //
           // Report back to the UI
           //
           backgroundBurnWorker.ReportProgress(0, m_burnData);
       }

GeneralRe: CD Wrinting Pin
Henry Minute30-Oct-09 2:29
Henry Minute30-Oct-09 2:29 
AnswerRe: CD Wrinting Pin
Amit Patel198530-Oct-09 3:11
Amit Patel198530-Oct-09 3:11 
Questionhow create quick spark game.. Pin
harish chander baswapuram30-Oct-09 1:57
harish chander baswapuram30-Oct-09 1:57 
AnswerRe: how create quick spark game.. Pin
J4amieC30-Oct-09 2:00
J4amieC30-Oct-09 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.