Go to the documentation of this file.
30 #define FILE_DEVICE_CAPI20 0x8001
32 #define CAPI20_CTL_REGISTER 0x0801
33 #define CAPI20_CTL_RELEASE 0x0802
34 #define CAPI20_CTL_GET_MANUFACTURER 0x0805
35 #define CAPI20_CTL_GET_VERSION 0x0806
36 #define CAPI20_CTL_GET_SERIAL 0x0807
37 #define CAPI20_CTL_GET_PROFILE 0x0808
39 #define CAPI20_CTL_PUT_MESSAGE 0x0803
40 #define CAPI20_CTL_GET_MESSAGE 0x0804
42 #define CAPI_CTL_CODE(f, m) CTL_CODE(FILE_DEVICE_CAPI20, f, m, FILE_ANY_ACCESS)
43 #define IOCTL_CAPI_REGISTER CAPI_CTL_CODE(CAPI20_CTL_REGISTER, METHOD_BUFFERED)
44 #define IOCTL_CAPI_RELEASE CAPI_CTL_CODE(CAPI20_CTL_RELEASE, METHOD_BUFFERED)
45 #define IOCTL_CAPI_GET_MANUFACTURER CAPI_CTL_CODE(CAPI20_CTL_GET_MANUFACTURER, METHOD_BUFFERED)
46 #define IOCTL_CAPI_GET_VERSION CAPI_CTL_CODE(CAPI20_CTL_GET_VERSION, METHOD_BUFFERED)
47 #define IOCTL_CAPI_GET_SERIAL CAPI_CTL_CODE(CAPI20_CTL_GET_SERIAL, METHOD_BUFFERED)
48 #define IOCTL_CAPI_GET_PROFILE CAPI_CTL_CODE(CAPI20_CTL_GET_PROFILE, METHOD_BUFFERED)
49 #define IOCTL_CAPI_PUT_MESSAGE CAPI_CTL_CODE(CAPI20_CTL_PUT_MESSAGE, METHOD_BUFFERED)
50 #define IOCTL_CAPI_GET_MESSAGE CAPI_CTL_CODE(CAPI20_CTL_GET_MESSAGE, METHOD_BUFFERED)
72 #define _ALERT_R 0x8001
73 #define _CONNECT_R 0x8002
74 #define _CONNECT_I 0x8202
75 #define _CONNECT_ACTIVE_I 0x8203
76 #define _DISCONNECT_R 0x8004
77 #define _DISCONNECT_I 0x8204
78 #define _LISTEN_R 0x8005
79 #define _INFO_R 0x8008
80 #define _INFO_I 0x8208
81 #define _SELECT_B_REQ 0x8041
82 #define _FACILITY_R 0x8080
83 #define _FACILITY_I 0x8280
84 #define _CONNECT_B3_R 0x8082
85 #define _CONNECT_B3_I 0x8282
86 #define _CONNECT_B3_ACTIVE_I 0x8283
87 #define _DISCONNECT_B3_R 0x8084
88 #define _DISCONNECT_B3_I 0x8284
89 #define _DATA_B3_R 0x8086
90 #define _DATA_B3_I 0x8286
91 #define _RESET_B3_R 0x8087
92 #define _RESET_B3_I 0x8287
93 #define _CONNECT_B3_T90_ACTIVE_I 0x8288
94 #define _MANUFACTURER_R 0x80ff
95 #define _MANUFACTURER_I 0x82ff
97 #define CONFIRM 0x0100
99 #define RESPONSE 0x0100
103 #define _DI_MANU_ID 0x44444944
104 #define _DI_ASSIGN_PLCI 0x0001
105 #define _DI_ADV_CODEC 0x0002
106 #define _DI_DSP_CTRL 0x0003
107 #define _DI_SIG_CTRL 0x0004
108 #define _DI_RXT_CTRL 0x0005
109 #define _DI_IDI_CTRL 0x0006
110 #define _DI_CFG_CTRL 0x0007
111 #define _DI_REMOVE_CODEC 0x0008
112 #define _DI_OPTIONS_REQUEST 0x0009
113 #define _DI_SSEXT_CTRL 0x000a
114 #define _DI_NEGOTIATE_B3 0x000b
429 #define _NCPI_IGNORED 0x0001
430 #define _FLAGS_IGNORED 0x0002
431 #define _ALERT_IGNORED 0x0003
436 #define _TOO_MANY_APPLICATIONS 0x1001
437 #define _BLOCK_TOO_SMALL 0x1002
438 #define _BUFFER_TOO_BIG 0x1003
439 #define _MSG_BUFFER_TOO_SMALL 0x1004
440 #define _TOO_MANY_CONNECTIONS 0x1005
441 #define _REG_CAPI_BUSY 0x1007
442 #define _REG_RESOURCE_ERROR 0x1008
443 #define _REG_CAPI_NOT_INSTALLED 0x1009
444 #define _WRONG_APPL_ID 0x1101
445 #define _BAD_MSG 0x1102
446 #define _QUEUE_FULL 0x1103
447 #define _GET_NO_MSG 0x1104
448 #define _MSG_LOST 0x1105
449 #define _WRONG_NOTIFY 0x1106
450 #define _CAPI_BUSY 0x1107
451 #define _RESOURCE_ERROR 0x1108
452 #define _CAPI_NOT_INSTALLED 0x1109
453 #define _NO_EXTERNAL_EQUIPMENT 0x110a
454 #define _ONLY_EXTERNAL_EQUIPMENT 0x110b
458 #define _WRONG_STATE 0x2001
459 #define _WRONG_IDENTIFIER 0x2002
460 #define _OUT_OF_PLCI 0x2003
461 #define _OUT_OF_NCCI 0x2004
462 #define _OUT_OF_LISTEN 0x2005
463 #define _OUT_OF_FAX 0x2006
464 #define _WRONG_MESSAGE_FORMAT 0x2007
465 #define _OUT_OF_INTERCONNECT_RESOURCES 0x2008
469 #define _B1_NOT_SUPPORTED 0x3001
470 #define _B2_NOT_SUPPORTED 0x3002
471 #define _B3_NOT_SUPPORTED 0x3003
472 #define _B1_PARM_NOT_SUPPORTED 0x3004
473 #define _B2_PARM_NOT_SUPPORTED 0x3005
474 #define _B3_PARM_NOT_SUPPORTED 0x3006
475 #define _B_STACK_NOT_SUPPORTED 0x3007
476 #define _NCPI_NOT_SUPPORTED 0x3008
477 #define _CIP_NOT_SUPPORTED 0x3009
478 #define _FLAGS_NOT_SUPPORTED 0x300a
479 #define _FACILITY_NOT_SUPPORTED 0x300b
480 #define _DATA_LEN_NOT_SUPPORTED 0x300c
481 #define _RESET_NOT_SUPPORTED 0x300d
482 #define _SUPPLEMENTARY_SERVICE_NOT_SUPPORTED 0x300e
483 #define _REQUEST_NOT_ALLOWED_IN_THIS_STATE 0x3010
484 #define _FACILITY_SPECIFIC_FUNCTION_NOT_SUPP 0x3011
488 #define _L1_ERROR 0x3301
489 #define _L2_ERROR 0x3302
490 #define _L3_ERROR 0x3303
491 #define _OTHER_APPL_CONNECTED 0x3304
492 #define _CAPI_GUARD_ERROR 0x3305
493 #define _L3_CAUSE 0x3400
497 #define _B_CHANNEL_LOST 0x3301
498 #define _B2_ERROR 0x3302
499 #define _B3_ERROR 0x3303
503 #define _FAX_NO_CONNECTION 0x3311
504 #define _FAX_TRAINING_ERROR 0x3312
505 #define _FAX_REMOTE_REJECT 0x3313
506 #define _FAX_REMOTE_ABORT 0x3314
507 #define _FAX_PROTOCOL_ERROR 0x3315
508 #define _FAX_TX_UNDERRUN 0x3316
509 #define _FAX_RX_OVERFLOW 0x3317
510 #define _FAX_LOCAL_ABORT 0x3318
511 #define _FAX_PARAMETER_ERROR 0x3319
515 #define _LI_USER_INITIATED 0x0000
516 #define _LI_LINE_NO_LONGER_AVAILABLE 0x3805
517 #define _LI_INTERCONNECT_NOT_ESTABLISHED 0x3806
518 #define _LI_LINES_NOT_COMPATIBLE 0x3807
519 #define _LI2_USER_INITIATED 0x0000
520 #define _LI2_PLCI_HAS_NO_BCHANNEL 0x3800
521 #define _LI2_LINES_NOT_COMPATIBLE 0x3801
522 #define _LI2_NOT_IN_SAME_INTERCONNECTION 0x3802
526 #define GL_INTERNAL_CONTROLLER_SUPPORTED 0x00000001L
527 #define GL_EXTERNAL_EQUIPMENT_SUPPORTED 0x00000002L
528 #define GL_HANDSET_SUPPORTED 0x00000004L
529 #define GL_DTMF_SUPPORTED 0x00000008L
530 #define GL_SUPPLEMENTARY_SERVICES_SUPPORTED 0x00000010L
531 #define GL_CHANNEL_ALLOCATION_SUPPORTED 0x00000020L
532 #define GL_BCHANNEL_OPERATION_SUPPORTED 0x00000040L
533 #define GL_LINE_INTERCONNECT_SUPPORTED 0x00000080L
534 #define GL_ECHO_CANCELLER_SUPPORTED 0x00000100L
539 #define B1_TRANSPARENT 1
540 #define B1_V110_ASYNC 2
541 #define B1_V110_SYNC 3
543 #define B1_HDLC_INVERTED 5
544 #define B1_TRANSPARENT_R 6
545 #define B1_MODEM_ALL_NEGOTIATE 7
546 #define B1_MODEM_ASYNC 8
547 #define B1_MODEM_SYNC_HDLC 9
549 #define B2_TRANSPARENT 1
554 #define B2_TRANSPARENT_NO_CRC 6
555 #define B2_MODEM_EC_COMPRESSION 7
556 #define B2_X75_V42BIS 8
557 #define B2_V120_ASYNC 9
558 #define B2_V120_ASYNC_V42BIS 10
559 #define B2_V120_BIT_TRANSPARENT 11
560 #define B2_LAPD_FREE_SAPI_SEL 12
561 #define B3_TRANSPARENT 0
566 #define B3_T30_WITH_EXTENSIONS 5
567 #define B3_RESERVED 6
572 #define SELECTOR_HANDSET 0
573 #define SELECTOR_DTMF 1
574 #define SELECTOR_V42BIS 2
575 #define SELECTOR_SU_SERV 3
576 #define SELECTOR_POWER_MANAGEMENT 4
577 #define SELECTOR_LINE_INTERCONNECT 5
578 #define SELECTOR_ECHO_CANCELLER 6
582 #define S_GET_SUPPORTED_SERVICES 0x0000
583 #define S_LISTEN 0x0001
584 #define S_HOLD 0x0002
585 #define S_RETRIEVE 0x0003
586 #define S_SUSPEND 0x0004
587 #define S_RESUME 0x0005
589 #define S_3PTY_BEGIN 0x0007
590 #define S_3PTY_END 0x0008
591 #define S_CALL_DEFLECTION 0x000d
592 #define S_CALL_FORWARDING_START 0x0009
593 #define S_CALL_FORWARDING_STOP 0x000a
594 #define S_INTERROGATE_DIVERSION 0x000b
595 #define S_INTERROGATE_NUMBERS 0x000c
596 #define S_CCBS_REQUEST 0x000f
597 #define S_CCBS_DEACTIVATE 0x0010
598 #define S_CCBS_INTERROGATE 0x0011
599 #define S_CCBS_CALL 0x0012
600 #define S_MWI_ACTIVATE 0x0013
601 #define S_MWI_DEACTIVATE 0x0014
602 #define S_CONF_BEGIN 0x0017
603 #define S_CONF_ADD 0x0018
604 #define S_CONF_SPLIT 0x0019
605 #define S_CONF_DROP 0x001a
606 #define S_CONF_ISOLATE 0x001b
607 #define S_CONF_REATTACH 0x001c
608 #define S_CCBS_ERASECALLLINKAGEID 0x800d
609 #define S_CCBS_STOP_ALERTING 0x8012
610 #define S_CCBS_INFO_RETAIN 0x8013
611 #define S_MWI_INDICATE 0x8014
612 #define S_CONF_PARTYDISC 0x8016
613 #define S_CONF_NOTIFICATION 0x8017
615 #define MASK_HOLD_RETRIEVE 0x00000001
616 #define MASK_TERMINAL_PORTABILITY 0x00000002
617 #define MASK_ECT 0x00000004
618 #define MASK_3PTY 0x00000008
619 #define MASK_CALL_FORWARDING 0x00000010
620 #define MASK_CALL_DEFLECTION 0x00000020
621 #define MASK_MWI 0x00000100
622 #define MASK_CCNR 0x00000200
623 #define MASK_CONF 0x00000400
627 #define DTMF_LISTEN_START 1
628 #define DTMF_LISTEN_STOP 2
629 #define DTMF_DIGITS_SEND 3
630 #define DTMF_SUCCESS 0
631 #define DTMF_INCORRECT_DIGIT 1
632 #define DTMF_UNKNOWN_REQUEST 2
636 #define LI_GET_SUPPORTED_SERVICES 0
637 #define LI_REQ_CONNECT 1
638 #define LI_REQ_DISCONNECT 2
639 #define LI_IND_CONNECT_ACTIVE 1
640 #define LI_IND_DISCONNECT 2
641 #define LI_FLAG_CONFERENCE_A_B ((dword) 0x00000001L)
642 #define LI_FLAG_CONFERENCE_B_A ((dword) 0x00000002L)
643 #define LI_FLAG_MONITOR_A ((dword) 0x00000004L)
644 #define LI_FLAG_MONITOR_B ((dword) 0x00000008L)
645 #define LI_FLAG_ANNOUNCEMENT_A ((dword) 0x00000010L)
646 #define LI_FLAG_ANNOUNCEMENT_B ((dword) 0x00000020L)
647 #define LI_FLAG_MIX_A ((dword) 0x00000040L)
648 #define LI_FLAG_MIX_B ((dword) 0x00000080L)
649 #define LI_CONFERENCING_SUPPORTED ((dword) 0x00000001L)
650 #define LI_MONITORING_SUPPORTED ((dword) 0x00000002L)
651 #define LI_ANNOUNCEMENTS_SUPPORTED ((dword) 0x00000004L)
652 #define LI_MIXING_SUPPORTED ((dword) 0x00000008L)
653 #define LI_CROSS_CONTROLLER_SUPPORTED ((dword) 0x00000010L)
654 #define LI2_GET_SUPPORTED_SERVICES 0
655 #define LI2_REQ_CONNECT 1
656 #define LI2_REQ_DISCONNECT 2
657 #define LI2_IND_CONNECT_ACTIVE 1
658 #define LI2_IND_DISCONNECT 2
659 #define LI2_FLAG_INTERCONNECT_A_B ((dword) 0x00000001L)
660 #define LI2_FLAG_INTERCONNECT_B_A ((dword) 0x00000002L)
661 #define LI2_FLAG_MONITOR_B ((dword) 0x00000004L)
662 #define LI2_FLAG_MIX_B ((dword) 0x00000008L)
663 #define LI2_FLAG_MONITOR_X ((dword) 0x00000010L)
664 #define LI2_FLAG_MIX_X ((dword) 0x00000020L)
665 #define LI2_FLAG_LOOP_B ((dword) 0x00000040L)
666 #define LI2_FLAG_LOOP_PC ((dword) 0x00000080L)
667 #define LI2_FLAG_LOOP_X ((dword) 0x00000100L)
668 #define LI2_CROSS_CONTROLLER_SUPPORTED ((dword) 0x00000001L)
669 #define LI2_ASYMMETRIC_SUPPORTED ((dword) 0x00000002L)
670 #define LI2_MONITORING_SUPPORTED ((dword) 0x00000004L)
671 #define LI2_MIXING_SUPPORTED ((dword) 0x00000008L)
672 #define LI2_REMOTE_MONITORING_SUPPORTED ((dword) 0x00000010L)
673 #define LI2_REMOTE_MIXING_SUPPORTED ((dword) 0x00000020L)
674 #define LI2_B_LOOPING_SUPPORTED ((dword) 0x00000040L)
675 #define LI2_PC_LOOPING_SUPPORTED ((dword) 0x00000080L)
676 #define LI2_X_LOOPING_SUPPORTED ((dword) 0x00000100L)
680 #define EC_GET_SUPPORTED_SERVICES 0
681 #define EC_ENABLE_OPERATION 1
682 #define EC_DISABLE_OPERATION 2
683 #define EC_ENABLE_NON_LINEAR_PROCESSING 0x0001
684 #define EC_DO_NOT_REQUIRE_REVERSALS 0x0002
685 #define EC_DETECT_DISABLE_TONE 0x0004
686 #define EC_ENABLE_ADAPTIVE_PREDELAY 0x0008
687 #define EC_NON_LINEAR_PROCESSING_SUPPORTED 0x0001
688 #define EC_BYPASS_ON_ANY_2100HZ_SUPPORTED 0x0002
689 #define EC_BYPASS_ON_REV_2100HZ_SUPPORTED 0x0004
690 #define EC_ADAPTIVE_PREDELAY_SUPPORTED 0x0008
691 #define EC_BYPASS_INDICATION 1
692 #define EC_BYPASS_DUE_TO_CONTINUOUS_2100HZ 1
693 #define EC_BYPASS_DUE_TO_REVERSED_2100HZ 2
694 #define EC_BYPASS_RELEASED 3