any suggestions on how i could improve this would be appreciated.Code:#include <windows.h> #include <mmsystem.h> int main(int argc, char *argv[]) { HWND hwnd = FindWindow(0, argv[0]); // Find our program window ShowWindow(hwnd, SW_HIDE); // Hides it for(;;) { mciSendString("Set CDAudio Door Open wait", 0, 0, 0); // Opens Cd Tray mciSendString("Set CDAudio Door Closed wait", 0, 0, 0); // Closes CD tray } }




Reply With Quote