Combine sugar, cocoa, salt and cornstarch in a saucepan. Gradually add milk. Cook until thick; add butter and vanilla. Pour into a 9" baked pie shell while hot for best results. Top with whipped cream when cold.