次の方法で共有


GetStdioPathW (Compact 2013)

3/28/2014

This function obtains the name of the device driver being used for a standard input, output, or error output operation.

Syntax

BOOL GetStdioPathW(
  DWORD id,
  PWSTR pwszBuf,
  LPDWORD lpdwLen
);

Parameters

  • id
    [in] Specifies the standard stream.

    The following table describes possible values.

    Value

    Description

    0

    Input

    1

    Output

    2

    Error output

  • pwszBuf
    [out] Specifies the buffer that returns the name of the device driver being written to, read from, or being sent error output.
  • lpdwLen
    [in] Specifies the length of the buffer.

Return Value

TRUE indicates success. FALSE indicates failure. To get extended error information, call the GetLastError function.

Remarks

If the command processor output is redirected to the debug port as described in Command Processor Registry Settings, then a return value of FALSE with a last error value of ERROR_INVALID_PARAMETER indicates that the name of the device driver being used could not be obtained.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Kernel Functions
SetStdioPathW