to add the  CreateSwapChain hook function