Before D3DContextCreate After D3DContextCreate Before D3DContextDestroy After D3DContextDestroy