Advertisement
Guest User

Windows.Devices.PointOfService in Windows Blue 9374

a guest
Apr 22nd, 2013
582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 23.52 KB | None | 0 0
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using Windows.Foundation;
  4. using Windows.Foundation.Collections;
  5. using Windows.Foundation.Metadata;
  6. using Windows.Storage.Streams;
  7. namespace Windows.Devices.PointOfService
  8. {
  9.     [MarshalingBehavior(MarshalingType.Agile), Static(typeof(IBarcodeScannerStatics), 100859904u), Threading(ThreadingModel.Both), Version(100859904u)]
  10.     public sealed class BarcodeScanner : IBarcodeScanner
  11.     {
  12.         public extern event TypedEventHandler<BarcodeScanner, BarcodeScannerErrorOccurredEventArgs> ErrorOccurred
  13.         {
  14.             add;
  15.             remove;
  16.         }
  17.         public extern BarcodeScannerCapabilities Capabilities
  18.         {
  19.             get;
  20.         }
  21.         public extern string DeviceId
  22.         {
  23.             get;
  24.         }
  25.         public extern IAsyncOperation<ClaimedBarcodeScanner> ClaimScannerAsync();
  26.         public extern IAsyncOperation<string> CheckHealthAsync([In] UnifiedPosHealthCheckLevel level);
  27.         public extern IAsyncAction ResetStatisticsAsync([In] IIterable<string> statisticsCategories);
  28.         public extern IAsyncOperation<IBuffer> RetrieveStatisticsAsync([In] IIterable<string> statisticsCategories);
  29.         public extern IAsyncAction UpdateStatisticsAsync([In] IIterable<IKeyValuePair<string, string>> statistics);
  30.         public extern IVectorView<string> GetSupportedProfiles();
  31.         public extern bool IsProfileSupported([In] string profile);
  32.         public extern IAsyncAction SetActiveProfileAsync([In] string profile);
  33.         public static extern IAsyncOperation<BarcodeScanner> GetDefaultAsync();
  34.         public static extern IAsyncOperation<BarcodeScanner> FromIdAsync([In] string deviceId);
  35.         public static extern string GetDeviceSelector();
  36.     }
  37. }
  38.  
  39. using System;
  40. using Windows.Foundation.Metadata;
  41. namespace Windows.Devices.PointOfService
  42. {
  43.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  44.     public sealed class BarcodeScannerCapabilities : IBarcodeScannerCapabilities
  45.     {
  46.         public extern bool IsImagePreviewSupported
  47.         {
  48.             get;
  49.         }
  50.         public extern bool IsStatisticsReportingSupported
  51.         {
  52.             get;
  53.         }
  54.         public extern bool IsStatisticsUpdatingSupported
  55.         {
  56.             get;
  57.         }
  58.         public extern UnifiedPosPowerReportingType PowerReportingType
  59.         {
  60.             get;
  61.         }
  62.     }
  63. }
  64.  
  65. using System;
  66. using Windows.Foundation.Metadata;
  67. namespace Windows.Devices.PointOfService
  68. {
  69.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  70.     public sealed class BarcodeScannerDataReceivedEventArgs : IBarcodeScannerDataReceivedEventArgs
  71.     {
  72.         public extern BarcodeScannerReport Report
  73.         {
  74.             get;
  75.         }
  76.     }
  77. }
  78.  
  79. using System;
  80. using Windows.Foundation.Metadata;
  81. namespace Windows.Devices.PointOfService
  82. {
  83.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  84.     public sealed class BarcodeScannerErrorOccurredEventArgs : IBarcodeScannerErrorOccurredEventArgs
  85.     {
  86.         public extern UnifiedPosErrorData ErrorData
  87.         {
  88.             get;
  89.         }
  90.         public extern bool IsRetriable
  91.         {
  92.             get;
  93.         }
  94.         public extern BarcodeScannerReport PartialInputData
  95.         {
  96.             get;
  97.         }
  98.     }
  99. }
  100.  
  101. using System;
  102. using Windows.Foundation.Metadata;
  103. using Windows.Storage.Streams;
  104. namespace Windows.Devices.PointOfService
  105. {
  106.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  107.     public sealed class BarcodeScannerImagePreviewReceivedEventArgs : IBarcodeScannerImagePreviewReceivedEventArgs
  108.     {
  109.         public extern IRandomAccessStreamWithContentType Preview
  110.         {
  111.             get;
  112.         }
  113.     }
  114. }
  115.  
  116. using System;
  117. using Windows.Foundation.Metadata;
  118. using Windows.Storage.Streams;
  119. namespace Windows.Devices.PointOfService
  120. {
  121.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  122.     public sealed class BarcodeScannerReport : IBarcodeScannerReport
  123.     {
  124.         public extern IBuffer ScanData
  125.         {
  126.             get;
  127.         }
  128.         public extern IBuffer ScanDataLabel
  129.         {
  130.             get;
  131.         }
  132.         public extern uint ScanDataType
  133.         {
  134.             get;
  135.         }
  136.     }
  137. }
  138.  
  139. using System;
  140. using Windows.Foundation.Metadata;
  141. namespace Windows.Devices.PointOfService
  142. {
  143.     [MarshalingBehavior(MarshalingType.Agile), Static(typeof(IBarcodeSymbologiesStatics), 100859904u), Threading(ThreadingModel.Both), Version(100859904u)]
  144.     public static class BarcodeSymbologies
  145.     {
  146.         public static extern uint AusPostal
  147.         {
  148.             get;
  149.         }
  150.         public static extern uint Aztec
  151.         {
  152.             get;
  153.         }
  154.         public static extern uint Bookland
  155.         {
  156.             get;
  157.         }
  158.         public static extern uint CanPostal
  159.         {
  160.             get;
  161.         }
  162.         public static extern uint Cca
  163.         {
  164.             get;
  165.         }
  166.         public static extern uint Ccb
  167.         {
  168.             get;
  169.         }
  170.         public static extern uint Ccc
  171.         {
  172.             get;
  173.         }
  174.         public static extern uint Chinese2of5
  175.         {
  176.             get;
  177.         }
  178.         public static extern uint Codabar
  179.         {
  180.             get;
  181.         }
  182.         public static extern uint Code11
  183.         {
  184.             get;
  185.         }
  186.         public static extern uint Code128
  187.         {
  188.             get;
  189.         }
  190.         public static extern uint Code128Parsed
  191.         {
  192.             get;
  193.         }
  194.         public static extern uint Code32
  195.         {
  196.             get;
  197.         }
  198.         public static extern uint Code39
  199.         {
  200.             get;
  201.         }
  202.         public static extern uint Code93
  203.         {
  204.             get;
  205.         }
  206.         public static extern uint CompositeAB
  207.         {
  208.             get;
  209.         }
  210.         public static extern uint CompositeC
  211.         {
  212.             get;
  213.         }
  214.         public static extern uint Coupon
  215.         {
  216.             get;
  217.         }
  218.         public static extern uint CueCode
  219.         {
  220.             get;
  221.         }
  222.         public static extern uint DataMatrix
  223.         {
  224.             get;
  225.         }
  226.         public static extern uint Doccap
  227.         {
  228.             get;
  229.         }
  230.         public static extern uint DutchPostal
  231.         {
  232.             get;
  233.         }
  234.         public static extern uint Ean128
  235.         {
  236.             get;
  237.         }
  238.         public static extern uint Ean13S
  239.         {
  240.             get;
  241.         }
  242.         public static extern uint Ean8S
  243.         {
  244.             get;
  245.         }
  246.         public static extern uint EanJan13
  247.         {
  248.             get;
  249.         }
  250.         public static extern uint EanJan8
  251.         {
  252.             get;
  253.         }
  254.         public static extern uint ExtendedBase
  255.         {
  256.             get;
  257.         }
  258.         public static extern uint GS1DataBar
  259.         {
  260.             get;
  261.         }
  262.         public static extern uint GS1DataBarExpanded
  263.         {
  264.             get;
  265.         }
  266.         public static extern uint GS1DataBarExpandedStacked
  267.         {
  268.             get;
  269.         }
  270.         public static extern uint GS1DataBarStackedOmnidirectional
  271.         {
  272.             get;
  273.         }
  274.         public static extern uint Iata2of5
  275.         {
  276.             get;
  277.         }
  278.         public static extern uint Image
  279.         {
  280.             get;
  281.         }
  282.         public static extern uint Isbt128
  283.         {
  284.             get;
  285.         }
  286.         public static extern uint Itf
  287.         {
  288.             get;
  289.         }
  290.         public static extern uint JapPostal
  291.         {
  292.             get;
  293.         }
  294.         public static extern uint Korean3of5
  295.         {
  296.             get;
  297.         }
  298.         public static extern uint Macromicropdf
  299.         {
  300.             get;
  301.         }
  302.         public static extern uint Macropdf
  303.         {
  304.             get;
  305.         }
  306.         public static extern uint Matrix2of5
  307.         {
  308.             get;
  309.         }
  310.         public static extern uint Maxicode
  311.         {
  312.             get;
  313.         }
  314.         public static extern uint MicroPdf417
  315.         {
  316.             get;
  317.         }
  318.         public static extern uint MicroQRCode
  319.         {
  320.             get;
  321.         }
  322.         public static extern uint Micropdf
  323.         {
  324.             get;
  325.         }
  326.         public static extern uint Msi
  327.         {
  328.             get;
  329.         }
  330.         public static extern uint Ocra
  331.         {
  332.             get;
  333.         }
  334.         public static extern uint Ocrb
  335.         {
  336.             get;
  337.         }
  338.         public static extern uint Pdf417
  339.         {
  340.             get;
  341.         }
  342.         public static extern uint QRCode
  343.         {
  344.             get;
  345.         }
  346.         public static extern uint Rss14
  347.         {
  348.             get;
  349.         }
  350.         public static extern uint Rssexp
  351.         {
  352.             get;
  353.         }
  354.         public static extern uint Rsslim
  355.         {
  356.             get;
  357.         }
  358.         public static extern uint Signature
  359.         {
  360.             get;
  361.         }
  362.         public static extern uint TF
  363.         {
  364.             get;
  365.         }
  366.         public static extern uint Tlc39
  367.         {
  368.             get;
  369.         }
  370.         public static extern uint Trioptic39
  371.         {
  372.             get;
  373.         }
  374.         public static extern uint US4statefics
  375.         {
  376.             get;
  377.         }
  378.         public static extern uint UkPostal
  379.         {
  380.             get;
  381.         }
  382.         public static extern uint Unknown
  383.         {
  384.             get;
  385.         }
  386.         public static extern uint Upca
  387.         {
  388.             get;
  389.         }
  390.         public static extern uint Upcas
  391.         {
  392.             get;
  393.         }
  394.         public static extern uint Upcd1
  395.         {
  396.             get;
  397.         }
  398.         public static extern uint Upcd2
  399.         {
  400.             get;
  401.         }
  402.         public static extern uint Upcd3
  403.         {
  404.             get;
  405.         }
  406.         public static extern uint Upcd4
  407.         {
  408.             get;
  409.         }
  410.         public static extern uint Upcd5
  411.         {
  412.             get;
  413.         }
  414.         public static extern uint Upce
  415.         {
  416.             get;
  417.         }
  418.         public static extern uint Upce0
  419.         {
  420.             get;
  421.         }
  422.         public static extern uint Upce1
  423.         {
  424.             get;
  425.         }
  426.         public static extern uint Upces
  427.         {
  428.             get;
  429.         }
  430.         public static extern uint Us4state
  431.         {
  432.             get;
  433.         }
  434.         public static extern uint UsPlanet
  435.         {
  436.             get;
  437.         }
  438.         public static extern uint UsPostNet
  439.         {
  440.             get;
  441.         }
  442.         public static extern uint Webcode
  443.         {
  444.             get;
  445.         }
  446.     }
  447. }
  448.  
  449. using System;
  450. using System.Runtime.InteropServices;
  451. using Windows.Foundation;
  452. using Windows.Foundation.Collections;
  453. using Windows.Foundation.Metadata;
  454. namespace Windows.Devices.PointOfService
  455. {
  456.     [MarshalingBehavior(MarshalingType.Agile), Threading(ThreadingModel.Both), Version(100859904u)]
  457.     public sealed class ClaimedBarcodeScanner : IClaimedBarcodeScanner, IClosable
  458.     {
  459.         public extern event TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerDataReceivedEventArgs> DataReceived
  460.         {
  461.             add;
  462.             remove;
  463.         }
  464.         public extern event TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerImagePreviewReceivedEventArgs> ImagePreviewReceived
  465.         {
  466.             add;
  467.             remove;
  468.         }
  469.         public extern event EventHandler<ClaimedBarcodeScanner> ReleaseDeviceRequested
  470.         {
  471.             add;
  472.             remove;
  473.         }
  474.         public extern event EventHandler<ClaimedBarcodeScanner> TriggerPressed
  475.         {
  476.             add;
  477.             remove;
  478.         }
  479.         public extern event EventHandler<ClaimedBarcodeScanner> TriggerReleased
  480.         {
  481.             add;
  482.             remove;
  483.         }
  484.         public extern bool IsDisabledOnDataReceived
  485.         {
  486.             get;
  487.             set;
  488.         }
  489.         public extern bool IsDecodeDataEnabled
  490.         {
  491.             get;
  492.             set;
  493.         }
  494.         public extern string DeviceId
  495.         {
  496.             get;
  497.         }
  498.         public extern bool IsEnabled
  499.         {
  500.             get;
  501.         }
  502.         public extern IAsyncAction EnableAsync();
  503.         public extern IAsyncAction DisableAsync();
  504.         public extern void RetainDevice();
  505.         public extern IAsyncOperation<IVectorView<uint>> GetSupportedSymbologiesAsync();
  506.         public extern IAsyncAction SetActiveSymbologiesAsync([In] IIterable<uint> symbologies);
  507.         public extern IAsyncOperation<bool> IsSymbologySupportedAsync([In] uint barcodeSymbology);
  508.         public extern void Close();
  509.     }
  510. }
  511.  
  512. using System;
  513. using System.Runtime.InteropServices;
  514. using Windows.Foundation;
  515. using Windows.Foundation.Metadata;
  516. namespace Windows.Devices.PointOfService
  517. {
  518.     [MarshalingBehavior(MarshalingType.Agile), Threading(ThreadingModel.Both), Version(100859904u)]
  519.     public sealed class ClaimedMagneticStripeReader : IClaimedMagneticStripeReader, IClosable
  520.     {
  521.         public extern event TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderAamvaCardDataReceivedEventArgs> AamvaCardDataReceived
  522.         {
  523.             add;
  524.             remove;
  525.         }
  526.         public extern event TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderBankCardDataReceivedEventArgs> BankCardDataReceived
  527.         {
  528.             add;
  529.             remove;
  530.         }
  531.         public extern event EventHandler<ClaimedMagneticStripeReader> ReleaseDeviceRequested
  532.         {
  533.             add;
  534.             remove;
  535.         }
  536.         public extern event TypedEventHandler<ClaimedMagneticStripeReader, MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs> VendorSpecificDataReceived
  537.         {
  538.             add;
  539.             remove;
  540.         }
  541.         public extern bool IsDisabledOnDataReceived
  542.         {
  543.             get;
  544.             set;
  545.         }
  546.         public extern bool IsDecodeDataEnabled
  547.         {
  548.             get;
  549.             set;
  550.         }
  551.         public extern uint DataEncryptionAlgorithm
  552.         {
  553.             get;
  554.             set;
  555.         }
  556.         public extern string DeviceId
  557.         {
  558.             get;
  559.         }
  560.         public extern bool IsDeviceAuthenticated
  561.         {
  562.             get;
  563.         }
  564.         public extern bool IsEnabled
  565.         {
  566.             get;
  567.         }
  568.         public extern IAsyncAction EnableAsync();
  569.         public extern IAsyncAction DisableAsync();
  570.         public extern void RetainDevice();
  571.         public extern byte[] RetrieveDeviceAuthenticationDataAsync();
  572.         public extern void AuthenticateDeviceAsync([In] byte[] responseToken);
  573.         public extern void DeAuthenticateDeviceAsync([In] byte[] responseToken);
  574.         public extern void UpdateKeyAsync([In] string key, [In] string keyName);
  575.         public extern void Close();
  576.     }
  577. }
  578.  
  579. using System;
  580. using System.Runtime.InteropServices;
  581. using Windows.Foundation;
  582. using Windows.Foundation.Collections;
  583. using Windows.Foundation.Metadata;
  584. using Windows.Storage.Streams;
  585. namespace Windows.Devices.PointOfService
  586. {
  587.     [MarshalingBehavior(MarshalingType.Agile), Static(typeof(IMagneticStripeReaderStatics), 100859904u), Threading(ThreadingModel.Both), Version(100859904u)]
  588.     public sealed class MagneticStripeReader : IMagneticStripeReader
  589.     {
  590.         public extern event TypedEventHandler<MagneticStripeReader, MagneticStripeReaderErrorOccurredEventArgs> ErrorOccurred
  591.         {
  592.             add;
  593.             remove;
  594.         }
  595.         public extern event TypedEventHandler<MagneticStripeReader, MagneticStripeReaderStatusUpdatedEventArgs> StatusUpdated
  596.         {
  597.             add;
  598.             remove;
  599.         }
  600.         public extern MagneticStripeReaderTrackIds TracksToRead
  601.         {
  602.             get;
  603.             set;
  604.         }
  605.         public extern bool IsTransmitSentinelsEnabled
  606.         {
  607.             get;
  608.             set;
  609.         }
  610.         public extern MagneticStripeReaderErrorReportingType ErrorReportingType
  611.         {
  612.             get;
  613.             set;
  614.         }
  615.         public extern MagneticStripeReaderCapabilities Capabilities
  616.         {
  617.             get;
  618.         }
  619.         public extern MagneticStripeReaderAuthenticationProtocol DeviceAuthenticationProtocol
  620.         {
  621.             get;
  622.         }
  623.         public extern string DeviceId
  624.         {
  625.             get;
  626.         }
  627.         public extern uint[] SupportedCardTypes
  628.         {
  629.             get;
  630.         }
  631.         public extern IAsyncOperation<string> CheckHealthAsync([In] UnifiedPosHealthCheckLevel level);
  632.         public extern IAsyncOperation<ClaimedMagneticStripeReader> ClaimReaderAsync();
  633.         public extern IAsyncAction ResetStatisticsAsync([In] IIterable<string> statisticsCategories);
  634.         public extern IAsyncOperation<IBuffer> RetrieveStatisticsAsync([In] IIterable<string> statisticsCategories);
  635.         public extern IAsyncAction UpdateStatisticsAsync([In] IIterable<IKeyValuePair<string, string>> statistics);
  636.         public static extern IAsyncOperation<MagneticStripeReader> GetDefaultAsync();
  637.         public static extern IAsyncOperation<MagneticStripeReader> FromIdAsync([In] string deviceId);
  638.         public static extern string GetDeviceSelector();
  639.     }
  640. }
  641.  
  642. using System;
  643. using Windows.Foundation.Metadata;
  644. namespace Windows.Devices.PointOfService
  645. {
  646.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  647.     public sealed class MagneticStripeReaderAamvaCardDataReceivedEventArgs : IMagneticStripeReaderAamvaCardDataReceivedEventArgs
  648.     {
  649.         public extern string Address
  650.         {
  651.             get;
  652.         }
  653.         public extern string BirthDate
  654.         {
  655.             get;
  656.         }
  657.         public extern string City
  658.         {
  659.             get;
  660.         }
  661.         public extern string Class
  662.         {
  663.             get;
  664.         }
  665.         public extern string Endorsements
  666.         {
  667.             get;
  668.         }
  669.         public extern string ExpirationDate
  670.         {
  671.             get;
  672.         }
  673.         public extern string EyeColor
  674.         {
  675.             get;
  676.         }
  677.         public extern string FirstName
  678.         {
  679.             get;
  680.         }
  681.         public extern string Gender
  682.         {
  683.             get;
  684.         }
  685.         public extern string HairColor
  686.         {
  687.             get;
  688.         }
  689.         public extern string Height
  690.         {
  691.             get;
  692.         }
  693.         public extern string LicenseNumber
  694.         {
  695.             get;
  696.         }
  697.         public extern string PostalCode
  698.         {
  699.             get;
  700.         }
  701.         public extern MagneticStripeReaderReport Report
  702.         {
  703.             get;
  704.         }
  705.         public extern string Restrictions
  706.         {
  707.             get;
  708.         }
  709.         public extern string State
  710.         {
  711.             get;
  712.         }
  713.         public extern string Suffix
  714.         {
  715.             get;
  716.         }
  717.         public extern string Surname
  718.         {
  719.             get;
  720.         }
  721.         public extern string Weight
  722.         {
  723.             get;
  724.         }
  725.     }
  726. }
  727.  
  728. using System;
  729. using Windows.Foundation.Metadata;
  730. namespace Windows.Devices.PointOfService
  731. {
  732.     [Version(100859904u)]
  733.     public enum MagneticStripeReaderAuthenticationLevel
  734.     {
  735.         NotSupported,
  736.         Optional,
  737.         Required
  738.     }
  739. }
  740.  
  741. using System;
  742. using Windows.Foundation.Metadata;
  743. namespace Windows.Devices.PointOfService
  744. {
  745.     [Version(100859904u)]
  746.     public enum MagneticStripeReaderAuthenticationProtocol
  747.     {
  748.         None,
  749.         ChallengeResponse
  750.     }
  751. }
  752.  
  753. using System;
  754. using Windows.Foundation.Metadata;
  755. namespace Windows.Devices.PointOfService
  756. {
  757.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  758.     public sealed class MagneticStripeReaderBankCardDataReceivedEventArgs : IMagneticStripeReaderBankCardDataReceivedEventArgs
  759.     {
  760.         public extern string AccountNumber
  761.         {
  762.             get;
  763.         }
  764.         public extern string ExpirationDate
  765.         {
  766.             get;
  767.         }
  768.         public extern string FirstName
  769.         {
  770.             get;
  771.         }
  772.         public extern string MiddleInitial
  773.         {
  774.             get;
  775.         }
  776.         public extern MagneticStripeReaderReport Report
  777.         {
  778.             get;
  779.         }
  780.         public extern string ServiceCode
  781.         {
  782.             get;
  783.         }
  784.         public extern string Suffix
  785.         {
  786.             get;
  787.         }
  788.         public extern string Surname
  789.         {
  790.             get;
  791.         }
  792.         public extern string Title
  793.         {
  794.             get;
  795.         }
  796.     }
  797. }
  798.  
  799. using System;
  800. using Windows.Foundation.Metadata;
  801. namespace Windows.Devices.PointOfService
  802. {
  803.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  804.     public sealed class MagneticStripeReaderCapabilities : IMagneticStripeReaderCapabilities
  805.     {
  806.         public extern MagneticStripeReaderAuthenticationLevel AuthenticationLevel
  807.         {
  808.             get;
  809.         }
  810.         public extern string CardAuthentication
  811.         {
  812.             get;
  813.         }
  814.         public extern bool IsIsoSupported
  815.         {
  816.             get;
  817.         }
  818.         public extern bool IsJisOneSupported
  819.         {
  820.             get;
  821.         }
  822.         public extern bool IsJisTwoSupported
  823.         {
  824.             get;
  825.         }
  826.         public extern bool IsStatisticsReportingSupported
  827.         {
  828.             get;
  829.         }
  830.         public extern bool IsStatisticsUpdatingSupported
  831.         {
  832.             get;
  833.         }
  834.         public extern bool IsTrackDataMaskingSupported
  835.         {
  836.             get;
  837.         }
  838.         public extern bool IsTransmitSentinelsSupported
  839.         {
  840.             get;
  841.         }
  842.         public extern UnifiedPosPowerReportingType PowerReportingType
  843.         {
  844.             get;
  845.         }
  846.         public extern uint SupportedEncryptionAlgorithms
  847.         {
  848.             get;
  849.         }
  850.     }
  851. }
  852.  
  853. using System;
  854. using Windows.Foundation.Metadata;
  855. namespace Windows.Devices.PointOfService
  856. {
  857.     [MarshalingBehavior(MarshalingType.Agile), Static(typeof(IMagneticStripeReaderCardTypesStatics), 100859904u), Threading(ThreadingModel.Both), Version(100859904u)]
  858.     public static class MagneticStripeReaderCardTypes
  859.     {
  860.         public static extern uint Aamva
  861.         {
  862.             get;
  863.         }
  864.         public static extern uint Bank
  865.         {
  866.             get;
  867.         }
  868.         public static extern uint ExtendedBase
  869.         {
  870.             get;
  871.         }
  872.         public static extern uint Unknown
  873.         {
  874.             get;
  875.         }
  876.     }
  877. }
  878.  
  879. using System;
  880. using Windows.Foundation.Metadata;
  881. namespace Windows.Devices.PointOfService
  882. {
  883.     [MarshalingBehavior(MarshalingType.Agile), Static(typeof(IMagneticStripeReaderEncryptionAlgorithmsStatics), 100859904u), Threading(ThreadingModel.Both), Version(100859904u)]
  884.     public static class MagneticStripeReaderEncryptionAlgorithms
  885.     {
  886.         public static extern uint ExtendedBase
  887.         {
  888.             get;
  889.         }
  890.         public static extern uint None
  891.         {
  892.             get;
  893.         }
  894.         public static extern uint TripleDesDukpt
  895.         {
  896.             get;
  897.         }
  898.     }
  899. }
  900.  
  901. using System;
  902. using Windows.Foundation.Metadata;
  903. namespace Windows.Devices.PointOfService
  904. {
  905.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  906.     public sealed class MagneticStripeReaderErrorOccurredEventArgs : IMagneticStripeReaderErrorOccurredEventArgs
  907.     {
  908.         public extern UnifiedPosErrorData ErrorData
  909.         {
  910.             get;
  911.         }
  912.         public extern MagneticStripeReaderReport PartialInputData
  913.         {
  914.             get;
  915.         }
  916.         public extern MagneticStripeReaderTrackErrorType Track1Status
  917.         {
  918.             get;
  919.         }
  920.         public extern MagneticStripeReaderTrackErrorType Track2Status
  921.         {
  922.             get;
  923.         }
  924.         public extern MagneticStripeReaderTrackErrorType Track3Status
  925.         {
  926.             get;
  927.         }
  928.         public extern MagneticStripeReaderTrackErrorType Track4Status
  929.         {
  930.             get;
  931.         }
  932.     }
  933. }
  934.  
  935. using System;
  936. using Windows.Foundation.Metadata;
  937. namespace Windows.Devices.PointOfService
  938. {
  939.     [Version(100859904u)]
  940.     public enum MagneticStripeReaderErrorReportingType
  941.     {
  942.         CardLevel,
  943.         TrackLevel
  944.     }
  945. }
  946.  
  947. using System;
  948. using Windows.Foundation.Collections;
  949. using Windows.Foundation.Metadata;
  950. using Windows.Storage.Streams;
  951. namespace Windows.Devices.PointOfService
  952. {
  953.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  954.     public sealed class MagneticStripeReaderReport : IMagneticStripeReaderReport
  955.     {
  956.         public extern IBuffer AdditionalSecurityInformation
  957.         {
  958.             get;
  959.         }
  960.         public extern IBuffer CardAuthenticationData
  961.         {
  962.             get;
  963.         }
  964.         public extern uint CardType
  965.         {
  966.             get;
  967.         }
  968.         public extern IMapView<string, string> Properties
  969.         {
  970.             get;
  971.         }
  972.         public extern MagneticStripeReaderTrackData Track1
  973.         {
  974.             get;
  975.         }
  976.         public extern MagneticStripeReaderTrackData Track2
  977.         {
  978.             get;
  979.         }
  980.         public extern MagneticStripeReaderTrackData Track3
  981.         {
  982.             get;
  983.         }
  984.         public extern MagneticStripeReaderTrackData Track4
  985.         {
  986.             get;
  987.         }
  988.     }
  989. }
  990.  
  991. using System;
  992. using Windows.Foundation.Metadata;
  993. namespace Windows.Devices.PointOfService
  994. {
  995.     [Version(100859904u)]
  996.     public enum MagneticStripeReaderStatus
  997.     {
  998.         Unathenticated,
  999.         Authenticated,
  1000.         Extended
  1001.     }
  1002. }
  1003.  
  1004. using System;
  1005. using Windows.Foundation.Metadata;
  1006. namespace Windows.Devices.PointOfService
  1007. {
  1008.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  1009.     public sealed class MagneticStripeReaderStatusUpdatedEventArgs : IMagneticStripeReaderStatusUpdatedEventArgs
  1010.     {
  1011.         public extern uint ExtendedStatus
  1012.         {
  1013.             get;
  1014.         }
  1015.         public extern MagneticStripeReaderStatus Status
  1016.         {
  1017.             get;
  1018.         }
  1019.     }
  1020. }
  1021.  
  1022. using System;
  1023. using Windows.Foundation.Metadata;
  1024. using Windows.Storage.Streams;
  1025. namespace Windows.Devices.PointOfService
  1026. {
  1027.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  1028.     public sealed class MagneticStripeReaderTrackData : IMagneticStripeReaderTrackData
  1029.     {
  1030.         public extern IBuffer Data
  1031.         {
  1032.             get;
  1033.         }
  1034.         public extern IBuffer DiscretionaryData
  1035.         {
  1036.             get;
  1037.         }
  1038.         public extern IBuffer EncryptedData
  1039.         {
  1040.             get;
  1041.         }
  1042.     }
  1043. }
  1044.  
  1045. using System;
  1046. using Windows.Foundation.Metadata;
  1047. namespace Windows.Devices.PointOfService
  1048. {
  1049.     [Version(100859904u)]
  1050.     public enum MagneticStripeReaderTrackErrorType
  1051.     {
  1052.         None,
  1053.         StartSentinelError,
  1054.         EndSentinelError,
  1055.         ParityError,
  1056.         LrcError,
  1057.         Unknown = -1
  1058.     }
  1059. }
  1060.  
  1061. using System;
  1062. using Windows.Foundation.Metadata;
  1063. namespace Windows.Devices.PointOfService
  1064. {
  1065.     [Version(100859904u)]
  1066.     public enum MagneticStripeReaderTrackIds
  1067.     {
  1068.         None,
  1069.         Track1,
  1070.         Track2,
  1071.         Track3 = 4,
  1072.         Track4 = 8
  1073.     }
  1074. }
  1075.  
  1076. using System;
  1077. using Windows.Foundation.Metadata;
  1078. namespace Windows.Devices.PointOfService
  1079. {
  1080.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  1081.     public sealed class MagneticStripeReaderVendorSpecificCardDataReceivedEventArgs : IMagneticStripeReaderVendorSpecificCardDataReceivedEventArgs
  1082.     {
  1083.         public extern MagneticStripeReaderReport Report
  1084.         {
  1085.             get;
  1086.         }
  1087.     }
  1088. }
  1089.  
  1090. using System;
  1091. using Windows.Foundation.Metadata;
  1092. namespace Windows.Devices.PointOfService
  1093. {
  1094.     [MarshalingBehavior(MarshalingType.Agile), Version(100859904u)]
  1095.     public sealed class UnifiedPosErrorData : IUnifiedPosErrorData
  1096.     {
  1097.         public extern uint ExtendedReason
  1098.         {
  1099.             get;
  1100.         }
  1101.         public extern string Message
  1102.         {
  1103.             get;
  1104.         }
  1105.         public extern UnifiedPosErrorReason Reason
  1106.         {
  1107.             get;
  1108.         }
  1109.         public extern UnifiedPosErrorSeverity Severity
  1110.         {
  1111.             get;
  1112.         }
  1113.     }
  1114. }
  1115.  
  1116. using System;
  1117. using Windows.Foundation.Metadata;
  1118. namespace Windows.Devices.PointOfService
  1119. {
  1120.     [Version(100859904u)]
  1121.     public enum UnifiedPosErrorReason
  1122.     {
  1123.         UnknownErrorReason,
  1124.         NoService,
  1125.         Disabled,
  1126.         Illegal,
  1127.         NoHardware,
  1128.         Closed,
  1129.         Offline,
  1130.         Failure,
  1131.         Timeout,
  1132.         Busy,
  1133.         Extended
  1134.     }
  1135. }
  1136.  
  1137. using System;
  1138. using Windows.Foundation.Metadata;
  1139. namespace Windows.Devices.PointOfService
  1140. {
  1141.     [Version(100859904u)]
  1142.     public enum UnifiedPosErrorSeverity
  1143.     {
  1144.         UnknownErrorSeverity,
  1145.         Warning,
  1146.         Recoverable,
  1147.         Unrecoverable,
  1148.         AssistanceRequired,
  1149.         Fatal
  1150.     }
  1151. }
  1152.  
  1153. using System;
  1154. using Windows.Foundation.Metadata;
  1155. namespace Windows.Devices.PointOfService
  1156. {
  1157.     [Version(100859904u)]
  1158.     public enum UnifiedPosHealthCheckLevel
  1159.     {
  1160.         UnknownHealthCheckLevel,
  1161.         POSInternal,
  1162.         External,
  1163.         Interactive
  1164.     }
  1165. }
  1166.  
  1167. using System;
  1168. using Windows.Foundation.Metadata;
  1169. namespace Windows.Devices.PointOfService
  1170. {
  1171.     [Version(100859904u)]
  1172.     public enum UnifiedPosPowerReportingType
  1173.     {
  1174.         UnknownPowerReportingType,
  1175.         Standard,
  1176.         Advanced
  1177.     }
  1178. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement