Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shellexecute and its return values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00993229
Message ID:
00993234
Vues:
24
Borislav,

thanks! I was looking for "greater than 32 if successful".
I had been able to find the other values.

Regards,

Ron

>From Visual Studio Help:
>
>Opens or prints a specified file.
>
>Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. The following table lists the error values. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. 0 The operating system is out of memory or resources.
>
>ERROR_FILE_NOT_FOUND    The specified file was not found.
>ERROR_PATH_NOT_FOUND    The specified path was not found.
>ERROR_BAD_FORMAT        The .exe file is invalid (non-Win32® .exe or error in .exe image).
>SE_ERR_ACCESSDENIED     The operating system denied access to the specified file.
>SE_ERR_ASSOCINCOMPLETE  The file name association is incomplete or invalid.
>SE_ERR_DDEBUSY          The DDE transaction could not be completed because other DDE transactions
>                        were being processed.
>SE_ERR_DDEFAIL          The DDE transaction failed.
>SE_ERR_DDETIMEOUT       The DDE transaction could not be completed because the request timed out.
>SE_ERR_DLLNOTFOUND      The specified dynamic-link library was not found.
>SE_ERR_FNF              The specified file was not found.
>SE_ERR_NOASSOC          There is no application associated with the given file name extension.
>SE_ERR_OOM              There was not enough memory to complete the operation.
>SE_ERR_PNF              The specified path was not found.
>SE_ERR_SHARE             A sharing violation occurred
>
>
>#define ERROR_FILE_NOT_FOUND        2
>#define ERROR_PATH_NOT_FOUND        3
>#define ERROR_BAD_FORMAT           11
>#define SE_ERR_FNF                  2       // file not found
>#define SE_ERR_PNF                  3       // path not found
>#define SE_ERR_ACCESSDENIED         5       // access denied
>#define SE_ERR_OOM                  8       // out of memory
>#define SE_ERR_DLLNOTFOUND         32
>
>#define SE_ERR_SHARE               26
>#define SE_ERR_ASSOCINCOMPLETE     27
>#define SE_ERR_DDETIMEOUT          28
>#define SE_ERR_DDEFAIL             29
>#define SE_ERR_DDEBUSY             30
>#define SE_ERR_NOASSOC             31
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform