Hi Zhiqing Li!
You're almost there (I had the same problem...).
Once you've set the MaskOutlineVertices, what you already did, you still need to set the stream value.
So, at line 31:
ERR(suites.StreamSuite4()->AEGP_SetStreamValue( aegp_plugin_id, maskStream, &outlineValue));
Cheers,
François