Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <strmif.h>
  3. #include <uuids.h>
  4.  
  5. int main()
  6. {
  7. std::cout << "Start" << std::endl;
  8.  
  9. HRESULT hr = CoInitialize(NULL);
  10.  
  11. printf("CoInitialize = 0x%xn", hr);
  12.  
  13. void* ptr = NULL;
  14. hr = CoCreateInstance(CLSID_DSoundRender, NULL, CLSCTX_INPROC, IID_IBaseFilter, (void**)&ptr);
  15.  
  16. printf("CoCreateInstance = 0x%xn", hr);
  17.  
  18. CoUninitialize();
  19.  
  20. std::cout << "End" << std::endl;
  21.  
  22. std::cin.get();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement