PHSendCommandLine (Windows Embedded CE 6.0)
1/6/2010
This function will send a command line message to the desired application, or failing that, will launch a process, using the application name.
Syntax
HRESULT PHSendCommandLine(
PH_APPLICATION Id,
WCHAR* pArguments
);
Parameters
- Id
[in] Application to send the command line to. It must be one of the ones in the enumeration, PH_APPLICATION.
- pArguments
[in] Arguments to pass in the command line message or during the launch process invocation.
Return Value
The function returns a variety of HRESULT values, depending on whether the call succeeded or failed. The following table shows additional possible return values.
Value | Description |
---|---|
E_FAIL |
Failure. |
S_OK |
Success. |
E_INVALIDARG |
The application requested is not in the enumeration list, PH_APPLICATION. |
Remarks
Note
This documentation applies to functionality implemented in sample code for PhCommon. For more information, see PhCommon Reference.
Requirements
Header | commandapi.hpp |
Library | PhCommon.dll |
Windows Embedded CE | Windows Embedded CE 6.0 and later |