This is usually 0
hwnd: the parent window that will receive the possible mailbox. This parameter is usually 0.
This applies to the top-level window: the opened window does not have a parent element and is the main window for the running application.
When you switch between applications (ALT-TAB), you show the next top-level window (the next application with the parent descriptor is 0) in z-order (for example).
Of course, the parent of your application cannot be the desktop window itself :
GetDesktopWindow(), . - MessageBox(), , , , - .
, : " ' ... ' "
"'C:\\Documents and Settings\\Lab1\\My Documents\\Test.xls'"
() : " "" ... "" "
"""C:\\Documents and Settings\\Lab1\\My Documents\\Test.xls"""
.
, Andy Mesidin, ShellExecute .
ShellExecute( NULL, "open",
"Test.xls", "C:\\Documents and Settings\\Lab1\\My Documents\\",
NULL, SW_SHOWNORMAL);
, Excel .xls.