Returns one of the following values:
0 if the entry contains the virtual attribute specified by type.
In this case a points to the virtual attribute, and buffer_flags holds SLAPI_VIRTUALATTRS_RETURNED_COPIES meaning the structure a must be freed, or SLAPI_VIRTUALATTRS_RETURNED_POINTERS and it should not be freed.
-1 if the entry does not contain the attribute.