PDA

View Full Version : حرفه ای: مقدار برگشتي shellExecute



yalameh
یک شنبه 26 دی 1389, 10:56 صبح
دوستان اگر يک فايل با پسوند cpl. (اپلتهاي کنترل پانل ) داشته باشيم و بخواهيم با ShellExecute آنرا اجرا کنيم ولي قادر به اجراي آن نباشد مقدار برگشتي آن چه خواهد بود ؟
مقدار برگشتي shellExecute در صورت اجراي يک فايل يا عدم اجراي يک فايل چند است ؟

vcldeveloper
یک شنبه 26 دی 1389, 11:40 صبح
http://msdn.microsoft.com/en-us/library/bb762153%28v=vs.85%29.aspx

Return Value

Type: HINSTANCE
If the function succeeds, it returns a value greater than 32. If the function fails, it returns an error value that indicates the cause of the failure. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. It can be cast only to an int and compared to either 32 or the following error codes below.