O.S. : Windows XP and up
Language : C++
Hey guys, I am making an application which will be sent out on a multiple DVD set. All the DVDs will have their own autorun.inf file (cannot change this) and once the program is started, it requires different DVDs to be inserted. This poses the unacceptable annoyance of having the autoplay run for each DVD. I know Windows provides a way to cancel this (http://msdn.microsoft.com/en-us/library/cc144204%28VS.85%29.aspx
but I am unsure how to use this (I am not too familiar with C++).
Just copying the first part about registering the windows messages
uMessage = RegisterWindowMessage(TEXT
provides a compilation error of missing a type. I am unsure what the type would be, or if I am missing some #include or linked library. Also, the next part of the provided code :
UINT g_uQueryCancelAutoPlay = 0;
BOOL DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
g_uQueryCancelAutoPlay = RegisterWindowMessage(TEXT
if (uMsg == g_uQueryCancelAutoPlay)
SetWindowLong(hDlg, DWL_MSGRESULT, TRUE);
does not work with the "..." and undefined "hDlg"
Any suggestions on how to implement this into a project (or other ideas, changing the registry is not exactly my best option, with the ever-present chance of not being able to assure changed the key back)? My apologies for my ineptitude.
Thanks in advance!