Reading and exporting the surfaceID from WM