neroFiddles.cpp 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /******************************************************************************
  2. |* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. |* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. |* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. |* PARTICULAR PURPOSE.
  6. |*
  7. |* Copyright 1995-2005 Nero AG. All Rights Reserved.
  8. |*-----------------------------------------------------------------------------
  9. |* PROJECT: NeroFiddles NeroAPI Example
  10. |*
  11. |* FILE: NeroFiddles.cpp
  12. |*
  13. |* PURPOSE: Defines the class behaviors for the application.
  14. ******************************************************************************/
  15. #include "stdafx.h"
  16. #include "neroFiddles.h"
  17. #include "neroFiddlesDlg.h"
  18. #include "..\\..\\..\\..\\..\\..\\kernelcode\\Burndisc\\Burndisc\\DiscItem.h"
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CNeroFiddlesApp
  26. BEGIN_MESSAGE_MAP(CNeroFiddlesApp, CWinApp)
  27. //{{AFX_MSG_MAP(CNeroFiddlesApp)
  28. // NOTE - the ClassWizard will add and remove mapping macros here.
  29. // DO NOT EDIT what you see in these blocks of generated code!
  30. //}}AFX_MSG
  31. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  32. END_MESSAGE_MAP()
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CNeroFiddlesApp construction
  35. CNeroFiddlesApp::CNeroFiddlesApp()
  36. {
  37. // TODO: add construction code here,
  38. // Place all significant initialization in InitInstance
  39. }
  40. /////////////////////////////////////////////////////////////////////////////
  41. // The one and only CNeroFiddlesApp object
  42. CNeroFiddlesApp theApp;
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CNeroFiddlesApp initialization
  45. void Test()
  46. {
  47. CDiscItem tagDiscItem;
  48. tagDiscItem.AddSiblingRootItem(_T("光盘根目录"),TRUE);
  49. /*
  50. tagDiscItem.AddPath2Path(_T("光盘根目录"), _T("光盘2级目录-A"));
  51. tagDiscItem.AddPath2Path(_T("光盘根目录"), _T("光盘2级目录-B"));
  52. tagDiscItem.AddPath2Path(_T("光盘根目录"), _T("光盘2级目录-C"));
  53. tagDiscItem.AddPath2Path(_T("光盘根目录"), _T("光盘2级目录-D"));
  54. tagDiscItem.AddFile2Path(_T("光盘根目录"),_T("F:\\刻录驱动.rar"));
  55. tagDiscItem.AddFile2Path(_T("光盘根目录"),_T("C:\\Users\\IT\\Downloads\\QQ7.9Light.exe"));
  56. tagDiscItem.AddFile2Path(_T("光盘根目录"),_T("C:\\Users\\IT\\Downloads\\CDBurn_imapi.rar"));
  57. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A"),_T("F:\\刻录驱动.rar"));
  58. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-B"),_T("F:\\刻录驱动.rar"));
  59. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-C"),_T("F:\\刻录驱动.rar"));
  60. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-D"),_T("F:\\刻录驱动.rar"));
  61. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-A"), _T("光盘3级目录-A"));
  62. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-A"), _T("光盘3级目录-B"));
  63. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-A"), _T("光盘3级目录-C"));
  64. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-A"), _T("光盘3级目录-D"));
  65. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B"), _T("光盘3级目录-A"));
  66. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B"), _T("光盘3级目录-B"));
  67. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B"), _T("光盘3级目录-C"));
  68. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B"), _T("光盘3级目录-D"));
  69. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-C"), _T("光盘3级目录-A"));
  70. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-C"), _T("光盘3级目录-B"));
  71. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-C"), _T("光盘3级目录-C"));
  72. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-C"), _T("光盘3级目录-D"));
  73. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D"), _T("光盘3级目录-A"));
  74. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D"), _T("光盘3级目录-B"));
  75. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D"), _T("光盘3级目录-C"));
  76. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D"), _T("光盘3级目录-D"));
  77. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-A"),_T("F:\\刻录驱动.rar"));
  78. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-B"),_T("F:\\刻录驱动.rar"));
  79. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-C"),_T("F:\\刻录驱动.rar"));
  80. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-D"),_T("F:\\刻录驱动.rar"));
  81. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B\\光盘3级目录-B"), _T("光盘4级目录-A"));
  82. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B\\光盘3级目录-B"), _T("光盘4级目录-B"));
  83. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B\\光盘3级目录-B"), _T("光盘4级目录-C"));
  84. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-B\\光盘3级目录-B"), _T("光盘4级目录-D"));
  85. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D\\光盘3级目录-B"), _T("光盘4级目录-A"));
  86. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D\\光盘3级目录-B"), _T("光盘4级目录-B"));
  87. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D\\光盘3级目录-B"), _T("光盘4级目录-C"));
  88. tagDiscItem.AddPath2Path(_T("光盘根目录\\光盘2级目录-D\\光盘3级目录-B"), _T("光盘4级目录-D"));
  89. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-A\\光盘4级目录-A"),_T("F:\\刻录驱动.rar"));
  90. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-A\\光盘4级目录-B"),_T("F:\\刻录驱动.rar"));
  91. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-A\\光盘4级目录-C"),_T("F:\\刻录驱动.rar"));
  92. tagDiscItem.AddFile2Path(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-A\\光盘4级目录-D"),_T("F:\\刻录驱动.rar"));
  93. tagDiscItem.AddSiblingPath(_T("光盘根目录"),_T("光盘根目录2"));
  94. tagDiscItem.AddSiblingPath(_T("光盘根目录"),_T("光盘根目录3"));
  95. tagDiscItem.AddSiblingPath(_T("光盘根目录"),_T("光盘根目录4"));
  96. tagDiscItem.AddSiblingPath(_T("光盘根目录"),_T("光盘根目录5"));
  97. tagDiscItem.AddSiblingPath(_T("光盘根目录"),_T("光盘根目录6"));
  98. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录2"),_T("光盘根目录21"));
  99. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录3"),_T("光盘根目录31"));
  100. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录4"),_T("光盘根目录41"));
  101. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录5"),_T("光盘根目录51"));
  102. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录6"),_T("光盘根目录61"));
  103. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录2"),_T("光盘根目录22"));
  104. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录3"),_T("光盘根目录32"));
  105. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录4"),_T("光盘根目录42"));
  106. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录5"),_T("光盘根目录52"));
  107. tagDiscItem.AddSiblingPath(_T("光盘根目录\\光盘根目录6"),_T("光盘根目录62"));
  108. */
  109. tagDiscItem.AddPath(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-A\\"));
  110. tagDiscItem.AddPath(_T("光盘根目录\\光盘2级目录-A\\光盘3级目录-A\\光盘4级目录-A\\光盘5级目录\\光盘6级目录\\光盘7级目录\\光盘8级目录"));
  111. tagDiscItem.AddPath(_T("光盘根目录2\\光盘2级目录-A\\光盘3级目录-A\\光盘4级目录-A\\光盘5级目录\\光盘6级目录\\光盘7级目录\\光盘8级目录"));
  112. tagDiscItem.AddPath(_T("光盘根目录7\\光盘2级目录-B\\光盘3级目录-A\\光盘4级目录-A\\光盘5级目录\\光盘6级目录\\光盘7级目录\\光盘8级目录"));
  113. tagDiscItem.RemoveRootItem();
  114. }
  115. BOOL CNeroFiddlesApp::InitInstance()
  116. {
  117. // Standard initialization
  118. // If you are not using these features and wish to reduce the size
  119. // of your final executable, you should remove from the following
  120. // the specific initialization routines you do not need.
  121. #if 1
  122. Test();
  123. return FALSE;
  124. #endif
  125. #ifdef _AFXDLL
  126. Enable3dControls(); // Call this when using MFC in a shared DLL
  127. #else
  128. Enable3dControlsStatic(); // Call this when linking to MFC statically
  129. #endif
  130. CNeroFiddlesDlg dlg;
  131. m_pMainWnd = &dlg;
  132. int nResponse = dlg.DoModal();
  133. if (nResponse == IDOK)
  134. {
  135. // TODO: Place code here to handle when the dialog is
  136. // dismissed with OK
  137. }
  138. else if (nResponse == IDCANCEL)
  139. {
  140. // TODO: Place code here to handle when the dialog is
  141. // dismissed with Cancel
  142. }
  143. // Since the dialog has been closed, return FALSE so that we exit the
  144. // application, rather than start the application's message pump.
  145. return FALSE;
  146. }