Returns the text attributes for a script.
Syntax
HRESULT GetScriptTextAttributes( LPCOLESTR pstrCode, ULONG uNumCodeChars, LPCOLESTR pstrDelimiter, DWORD dwFlags, SOURCE_TEXT_ATTR *pattr );
Parameters
- pstrCode
- [in] Address of an OLE string that contains the script block text.
- uNumCodeChars
- [in] Integer that specifies the number of characters in the script block text.
- pstrDelimiter
- [in] Address of an OLE string that contains the delimiter for script block text.
- dwFlags
- [In] Unsigned long integer value that specifies SOURCE_TEXT_ATTR flags.
- pattr
- [in] Address of a buffer to contain the returned attributes.
Return Value
Returns S_OK if successful, or an error code otherwise.