次の方法で共有


WinExecError function

[This function is no longer implemented.]

Retrieves the error value generated if the WinExec function cannot run a specified application.

Syntax

VOID WinExecError(
  _In_ HWND    hwnd,
  _In_ int     error,
  _In_ LPCTSTR lpstrFileName,
  _In_ LPCTSTR lpstrTitle
);

Parameters

  • hwnd [in]
    Type: HWND

    Handle to the window that ran the WinExec function.

  • error [in]
    Type: int

    Value of type int that specifies the error.

  • lpstrFileName [in]
    Type: LPCTSTR

    Pointer to a string that contains the name of the file where the error occurred.

  • lpstrTitle [in]
    Type: LPCTSTR

    Pointer to a string that contains the title of the file where the error occurred.

Return value

This function does not return a value.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shellapi.h

Library

Shell32.lib

DLL

None