SHARE
TWEET

Untitled

a guest Feb 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top