Guest User

Untitled

a guest
Apr 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.93 KB | None | 0 0
  1. #ifndef __asiolist__
  2. #define __asiolist__
  3.  
  4. #define DRVERR          -5000
  5. #define DRVERR_INVALID_PARAM        DRVERR-1
  6. #define DRVERR_DEVICE_ALREADY_OPEN  DRVERR-2
  7. #define DRVERR_DEVICE_NOT_FOUND     DRVERR-3
  8.  
  9. #define MAXPATHLEN          512
  10. #define MAXDRVNAMELEN       128
  11.  
  12. struct asiodrvstruct
  13. {
  14.     int                     drvID;
  15.     CLSID                   clsid;
  16.     char                    dllpath[MAXPATHLEN];
  17.     char                    drvname[MAXDRVNAMELEN];
  18.     LPVOID                  asiodrv;
  19.     struct asiodrvstruct    *next;
  20. };
  21.  
  22. typedef struct asiodrvstruct ASIODRVSTRUCT;
  23. typedef ASIODRVSTRUCT   *LPASIODRVSTRUCT;
  24.  
  25. class AsioDriverList {
  26. public:
  27.     AsioDriverList();
  28.     ~AsioDriverList();
  29.    
  30.     LONG asioOpenDriver (int,VOID **);
  31.     LONG asioCloseDriver (int);
  32.  
  33.     // nice to have
  34.     LONG asioGetNumDev (VOID);
  35.     c      
  36.     LONG asioGetDriverPath (int,char *,int);
  37.     LONG asioGetDriverCLSID (int,CLSID *);
  38.  
  39.     // or use directly access
  40.     LPASIODRVSTRUCT lpdrvlist;
  41.     int             numdrv;
  42. };
  43.  
  44. typedef class AsioDriverList *LPASIODRIVERLIST;
  45.  
  46. #endif
Add Comment
Please, Sign In to add comment