PathProcessCommand function
Deprecated. Processes a string that contains a command line and generates a suitably quoted string, with arguments attached if required.
Syntax
LONG PathProcessCommand(
_In_ PCWSTR pszSrc,
_Out_ PWSTR pszDest,
int iDestMax,
DWORD dwFlags
);
Parameters
- pszSrc [in]
-
Type: PCWSTR
A pointer to a null-terminated string that contains the command line to process.
- pszDest [out]
-
Type: PWSTR
Pointer to a buffer that receives a null-terminated Unicode string with the appropriate quotation marks. To determine how large this buffer must be, set this parameter to NULL. The function returns the required buffer size.
- iDestMax
-
Type: int
The maximum number of characters that can be put in pszDest, not including the terminating null character. If this value is too small, the function fails.
- dwFlags
-
Type: DWORD
Flags that control the procedure. One or more of the following values:
Return value
Type: LONG
Returns a positive value if successful. If lpDest is set to NULL, the function returns the required buffer size in characters, including the terminating null character. If the call fails, the function returns a negative value.
Remarks
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|