--- np2/win9xc/commng.h 2003/10/16 17:59:19 1.1.1.1 +++ np2/win9xc/commng.h 2003/10/25 09:08:24 1.2 @@ -18,6 +18,8 @@ enum { enum { COMMSG_MIDIRESET = 0, + COMMSG_SETFLAG, + COMMSG_GETFLAG, COMMSG_USER }; @@ -30,29 +32,31 @@ struct _commng { UINT (*read)(COMMNG self, BYTE *data); UINT (*write)(COMMNG self, BYTE data); BYTE (*getstat)(COMMNG self); - UINT (*msg)(COMMNG self, UINT msg, long param); + long (*msg)(COMMNG self, UINT msg, long param); void (*release)(COMMNG self); }; +typedef struct { + UINT32 size; + UINT32 sig; + UINT32 ver; + UINT32 param; +} _COMFLAG, *COMFLAG; + #ifdef __cplusplus extern "C" { #endif -UINT commng_ncread(COMMNG self, BYTE *data); -UINT commng_ncwrite(COMMNG self, BYTE data); -BYTE commng_ncgetstat(COMMNG self); -UINT commng_ncmsg(COMMNG self, UINT msg, long param); - COMMNG commng_create(UINT device); void commng_destroy(COMMNG hdl); +#ifdef __cplusplus +} +#endif + // ---- void commng_initialize(void); -#ifdef __cplusplus -} -#endif -