Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Jun 11, 2026
Ad icon
Wechat qr verification
Pawan2005
Updated:
Jun 11, 2026
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Jun 10, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Rom Fantasy!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Core" data-source="post: 7647819" data-attributes="member: 263471"><p><em>IF you have Visual Studio 2008< C++ then copy this to</em></p><p><em>Win32 and Compile and Run.!</em></p><p><em></em></p><p><em>Remember this is for fun </em></p><p><em>don't change the codes and make malware programs by this</em></p><p><em>and it may be very annoying cause every time Disk tray will eject and close then eject and close lolz</em></p><p><em></em></p><p><em>if u got any question regarding this then PM me.!</em></p><p><em></em></p><p><em><strong>How to Eject and Close the CD Tray by Simple C++ Win32 Commands</strong></em></p><p><em><strong>remember this is ISO/IEC Implementation not C++/CLI so don't try on CLI and get screwed <img src="/styles/default/xenforo/smilies/default/angry.gif" class="smilie" loading="lazy" alt=":angry:" title="Angry :angry:" data-shortname=":angry:" /></strong></em></p><p><em></em></p><p><em></em></p><p><em></em></p><p><em>#include <iostream></em></p><p><em>#include <windows.h> </em></p><p><em>#include <mmsystem.h> </em></p><p><em>#include <windows.h> </em></p><p><em>#pragma comment(lib, "winmm.lib")</em></p><p><em></em></p><p><em>using namespace std; </em></p><p><em></em></p><p><em>int main()</em></p><p><em>{</em></p><p><em> int _line,_final;</em></p><p><em></em></p><p><em> cout << "Pree any key to continue ,Hide or Show the Console 0/1.?" ;</em></p><p><em> cin >> _line;</em></p><p><em></em></p><p><em> if(_line == 0)</em></p><p><em> {</em></p><p><em>FreeConsole();</em></p><p><em> }</em></p><p><em></em></p><p><em> int num1= 10000;</em></p><p><em></em></p><p><em> for(int i=0;i<num1;i++)</em></p><p><em> {</em></p><p><em>cout << "Now Opening the DISK Tray...\a" << endl;</em></p><p><em>mciSendString("set CDAudio door open", NULL, 0, NULL);</em></p><p><em>cout << "Now Closing the DISK Tray in 500 milliseconds..." << endl;</em></p><p><em></em><em>cout << endl;</em></p><p><em>Sleep(500);</em></p><p><em>mciSendString("set CDAudio door closed", NULL, 0, NULL);</em></p><p><em> }</em></p><p><em></em></p><p><em> cout << "Elakiri.com 2010/06/13";</em></p><p><em> cin >> _final;</em></p><p><em></em></p><p><em>return 0;</em></p><p><em>}</em></p><p><em></em></p><p><em><span style="font-size: 12px"></span></em></p><p><em><span style="font-size: 12px"><span style="font-size: 9px">Side Note</span></span></em></p><p><em><span style="font-size: 12px"><span style="font-size: 9px"></span></span></em><em><span style="font-size: 9px">C++ Win32 is much lower level than other languages so it can be also used to write cracks.but it's upto you.!</span></em></p><p><em> </em></p><p></p><p>No Reference.!</p></blockquote><p></p>
[QUOTE="Core, post: 7647819, member: 263471"] [I]IF you have Visual Studio 2008< C++ then copy this to Win32 and Compile and Run.! Remember this is for fun don't change the codes and make malware programs by this and it may be very annoying cause every time Disk tray will eject and close then eject and close lolz if u got any question regarding this then PM me.! [B]How to Eject and Close the CD Tray by Simple C++ Win32 Commands remember this is ISO/IEC Implementation not C++/CLI so don't try on CLI and get screwed :angry:[/B] #include <iostream> #include <windows.h> #include <mmsystem.h> #include <windows.h> #pragma comment(lib, "winmm.lib") using namespace std; int main() { int _line,_final; cout << "Pree any key to continue ,Hide or Show the Console 0/1.?" ; cin >> _line; if(_line == 0) { FreeConsole(); } int num1= 10000; for(int i=0;i<num1;i++) { cout << "Now Opening the DISK Tray...\a" << endl; mciSendString("set CDAudio door open", NULL, 0, NULL); cout << "Now Closing the DISK Tray in 500 milliseconds..." << endl; [/I][I]cout << endl;[/I] [I]Sleep(500); mciSendString("set CDAudio door closed", NULL, 0, NULL); } cout << "Elakiri.com 2010/06/13"; cin >> _final; return 0; } [SIZE=3] [SIZE=1]Side Note [/SIZE][/SIZE][/I][I][SIZE=1]C++ Win32 is much lower level than other languages so it can be also used to write cracks.but it's upto you.![/SIZE] [/I] No Reference.! [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom