Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Disable Alt-Enter

By: a guest on Mar 7th, 2010  |  syntax: C++  |  size: 0.68 KB  |  views: 718  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. HR(D3D10CreateDevice(
  2.         0,                 //default adapter
  3.         md3dDriverType,
  4.         0,                 // no software device
  5.         createDeviceFlags,
  6.         D3D10_SDK_VERSION,
  7.         &md3dDevice) );
  8.  
  9. IDXGIDevice * pDXGIDevice;
  10. HR( md3dDevice->QueryInterface(__uuidof(IDXGIDevice), (void **)&pDXGIDevice) );
  11.  
  12. IDXGIAdapter * pDXGIAdapter;
  13. HR( pDXGIDevice->GetParent(__uuidof(IDXGIAdapter), (void **)&pDXGIAdapter) );
  14.  
  15. IDXGIFactory * pIDXGIFactory;
  16. pDXGIAdapter->GetParent(__uuidof(IDXGIFactory), (void **)&pIDXGIFactory);
  17.  
  18. HR(pIDXGIFactory->CreateSwapChain(md3dDevice, &sd, &mSwapChain));
  19. pIDXGIFactory->MakeWindowAssociation(mhMainWnd, DXGI_MWA_NO_ALT_ENTER);