Depending on bAll, hides all vertices and faces or just the selection. MESH_NO_VERTS or MESH_NO_TRIS can be passed in the flags parameter to prevent hiding vertices or faces.
HRESULT Hide(BOOL bAll, DWORD dwFlags);
Parameters
bAll
[in] A non-zero value will perform the operation on the entire mesh, otherwise the operation applies to only the selection.