IAmsiStream::Read method (amsi.h)
Requests a buffer-full of content to be read.
Syntax
HRESULT Read(
[in] ULONGLONG position,
[in] ULONG size,
[out] unsigned char *buffer,
[out] ULONG *readSize
);
Parameters
[in] position
The zero-based index into the content at which the read is to begin.
[in] size
The number of bytes to read from the content.
[out] buffer
Buffer into which the content is to be read.
[out] readSize
The number of bytes read into buffer.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
One or more argument is invalid. |
|
The object is not initialized. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | amsi.h |