Getting property value:
Automation:
bool
value = obj.
ReadOnly;
Native (C++):
HRESULT
get_
ReadOnly
(
[out, retval]
VARIANT_BOOL *
val)
;
Parameters
valPointer to a variable that receives a property value.Return Value
Automation:True if document is read only, False otherwise.Native:
S_OK or standard OLE error code.