Use the GetBuffer function but remember to use the ReleaseBuffer after you are done.