-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathiOSapi.SystemConfiguration.pas
2935 lines (2582 loc) · 99.9 KB
/
iOSapi.SystemConfiguration.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{ *********************************************************** }
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2012-2014 Embarcadero Technologies, Inc. }
{ }
{ *********************************************************** }
//
// Delphi-Objective-C Bridge
// Interfaces for Cocoa framework SystemConfiguration
//
unit iOSapi.SystemConfiguration;
interface
uses
Macapi.CoreFoundation,
Macapi.CoreServices,
Macapi.Dispatch,
Macapi.Foundation,
Macapi.Mach,
Macapi.ObjCRuntime,
Macapi.ObjectiveC,
Macapi.QuartzCore,
iOSapi.CocoaTypes,
iOSapi.Foundation;
const
kSCNetworkFlagsTransientConnection = 1 shl 0;
kSCNetworkFlagsReachable = 1 shl 1;
kSCNetworkFlagsConnectionRequired = 1 shl 2;
kSCNetworkFlagsConnectionAutomatic = 1 shl 3;
kSCNetworkFlagsInterventionRequired = 1 shl 4;
kSCNetworkFlagsIsLocalAddress = 1 shl 16;
kSCNetworkFlagsIsDirect = 1 shl 17;
kSCStatusOK = 0;
kSCStatusFailed = 1001;
kSCStatusInvalidArgument = 1002;
kSCStatusAccessError = 1003;
kSCStatusNoKey = 1004;
kSCStatusKeyExists = 1005;
kSCStatusLocked = 1006;
kSCStatusNeedLock = 1007;
kSCStatusNoStoreSession = 2001;
kSCStatusNoStoreServer = 2002;
kSCStatusNotifierActive = 2003;
kSCStatusNoPrefsSession = 3001;
kSCStatusPrefsBusy = 3002;
kSCStatusNoConfigFile = 3003;
kSCStatusNoLink = 3004;
kSCStatusStale = 3005;
kSCStatusMaxLink = 3006;
kSCStatusReachabilityUnknown = 4001;
kSCStatusConnectionNoService = 5001;
kSCStatusConnectionIgnore = 5002;
kSCPreferencesNotificationCommit = 1 shl 0;
kSCPreferencesNotificationApply = 1 shl 1;
kSCNetworkReachabilityFlagsTransientConnection = 1 shl 0;
kSCNetworkReachabilityFlagsReachable = 1 shl 1;
kSCNetworkReachabilityFlagsConnectionRequired = 1 shl 2;
kSCNetworkReachabilityFlagsConnectionOnTraffic = 1 shl 3;
kSCNetworkReachabilityFlagsInterventionRequired = 1 shl 4;
kSCNetworkReachabilityFlagsConnectionOnDemand = 1 shl 5;
kSCNetworkReachabilityFlagsIsLocalAddress = 1 shl 16;
kSCNetworkReachabilityFlagsIsDirect = 1 shl 17;
kSCNetworkReachabilityFlagsIsWWAN = 1 shl 18;
kSCNetworkReachabilityFlagsConnectionAutomatic =
kSCNetworkReachabilityFlagsConnectionOnTraffic;
kSCNetworkConnectionInvalid = -1;
kSCNetworkConnectionDisconnected = 0;
kSCNetworkConnectionConnecting = 1;
kSCNetworkConnectionConnected = 2;
kSCNetworkConnectionDisconnecting = 3;
kSCNetworkConnectionPPPDisconnected = 0;
kSCNetworkConnectionPPPInitializing = 1;
kSCNetworkConnectionPPPConnectingLink = 2;
kSCNetworkConnectionPPPDialOnTraffic = 3;
kSCNetworkConnectionPPPNegotiatingLink = 4;
kSCNetworkConnectionPPPAuthenticating = 5;
kSCNetworkConnectionPPPWaitingForCallBack = 6;
kSCNetworkConnectionPPPNegotiatingNetwork = 7;
kSCNetworkConnectionPPPConnected = 8;
kSCNetworkConnectionPPPTerminating = 9;
kSCNetworkConnectionPPPDisconnectingLink = 10;
kSCNetworkConnectionPPPHoldingLinkOff = 11;
kSCNetworkConnectionPPPSuspended = 12;
kSCNetworkConnectionPPPWaitingForRedial = 13;
kSCBondStatusOK = 0;
kSCBondStatusLinkInvalid = 1;
kSCBondStatusNoPartner = 2;
kSCBondStatusNotInActiveGroup = 3;
kSCBondStatusUnknown = 999;
type
// ===== Framework typedefs =====
{$M+}
CFArrayRef = Pointer;
Boolean = Byte;
CFStringRef = Pointer;
CFDictionaryRef = Pointer;
CFIndex = LongInt;
SCDynamicStoreRef = Pointer;
TSystemConfigurationRetain = function(param1: Pointer): Pointer; cdecl;
TSystemConfigurationRelease = procedure(param1: Pointer); cdecl;
TSystemConfigurationCopyDescription = function(param1: Pointer)
: CFStringRef; cdecl;
SCDynamicStoreContext = record
version: CFIndex;
info: Pointer;
retain: TSystemConfigurationRetain;
release: TSystemConfigurationRelease;
copyDescription: TSystemConfigurationCopyDescription;
end;
PSCDynamicStoreContext = ^SCDynamicStoreContext;
SCDynamicStoreCallBack = procedure(param1: SCDynamicStoreRef;
param2: CFArrayRef; param3: Pointer); cdecl;
CFTypeID = LongWord;
CFAllocatorRef = Pointer;
CFRunLoopSourceRef = Pointer;
dispatch_queue_t = Pointer;
CFTypeRef = Pointer;
CFPropertyListRef = CFTypeRef;
CFDataRef = Pointer;
CFDateRef = Pointer;
SCNetworkConnectionFlags = LongWord;
__darwin_socklen_t = LongWord;
AuthorizationRef = Pointer;
SCPreferencesRef = Pointer;
SCPreferencesNotification = LongWord;
SCPreferencesContext = record
version: CFIndex;
info: Pointer;
retain: TSystemConfigurationRetain;
release: TSystemConfigurationRelease;
copyDescription: TSystemConfigurationCopyDescription;
end;
PSCPreferencesContext = ^SCPreferencesContext;
SCPreferencesCallBack = procedure(param1: SCPreferencesRef;
param2: SCPreferencesNotification; param3: Pointer); cdecl;
CFRunLoopRef = Pointer;
CFStringEncoding = UInt32;
SCNetworkReachabilityRef = Pointer;
SCNetworkReachabilityContext = record
version: CFIndex;
info: Pointer;
retain: TSystemConfigurationRetain;
release: TSystemConfigurationRelease;
copyDescription: TSystemConfigurationCopyDescription;
end;
PSCNetworkReachabilityContext = ^SCNetworkReachabilityContext;
SCNetworkReachabilityFlags = LongWord;
SCNetworkReachabilityCallBack = procedure(param1: SCNetworkReachabilityRef;
param2: SCNetworkReachabilityFlags; param3: Pointer); cdecl;
SCNetworkConnectionRef = Pointer;
SCNetworkConnectionContext = record
version: CFIndex;
info: Pointer;
retain: TSystemConfigurationRetain;
release: TSystemConfigurationRelease;
copyDescription: TSystemConfigurationCopyDescription;
end;
PSCNetworkConnectionContext = ^SCNetworkConnectionContext;
SCNetworkConnectionStatus = Int32;
SCNetworkConnectionPPPStatus = Int32;
SCNetworkConnectionCallBack = procedure(param1: SCNetworkConnectionRef;
param2: SCNetworkConnectionStatus; param3: Pointer); cdecl;
CFErrorRef = Pointer;
SCNetworkInterfaceRef = Pointer;
SCBondInterfaceRef = SCNetworkInterfaceRef;
SCBondStatusRef = Pointer;
SCVLANInterfaceRef = SCNetworkInterfaceRef;
SCNetworkProtocolRef = Pointer;
SCNetworkServiceRef = Pointer;
SCNetworkSetRef = Pointer;
CFNumberRef = Pointer;
// ===== Exported string consts =====
function kCNNetworkInfoKeySSIDData: Pointer;
function kCNNetworkInfoKeySSID: Pointer;
function kCNNetworkInfoKeyBSSID: Pointer;
function kSCDynamicStoreUseSessionKeys: Pointer;
function kSCResvLink: Pointer;
function kSCResvInactive: Pointer;
function kSCPropInterfaceName: Pointer;
function kSCPropMACAddress: Pointer;
function kSCPropUserDefinedName: Pointer;
function kSCPropVersion: Pointer;
function kSCPrefCurrentSet: Pointer;
function kSCPrefNetworkServices: Pointer;
function kSCPrefSets: Pointer;
function kSCPrefSystem: Pointer;
function kSCCompNetwork: Pointer;
function kSCCompService: Pointer;
function kSCCompGlobal: Pointer;
function kSCCompHostNames: Pointer;
function kSCCompInterface: Pointer;
function kSCCompSystem: Pointer;
function kSCCompUsers: Pointer;
function kSCCompAnyRegex: Pointer;
function kSCEntNetAirPort: Pointer;
function kSCEntNetAppleTalk: Pointer;
function kSCEntNetDHCP: Pointer;
function kSCEntNetDNS: Pointer;
function kSCEntNetEthernet: Pointer;
function kSCEntNetFireWire: Pointer;
function kSCEntNetInterface: Pointer;
function kSCEntNetIPSec: Pointer;
function kSCEntNetIPv4: Pointer;
function kSCEntNetIPv6: Pointer;
function kSCEntNetL2TP: Pointer;
function kSCEntNetLink: Pointer;
function kSCEntNetModem: Pointer;
function kSCEntNetNetInfo: Pointer;
function kSCEntNetPPP: Pointer;
function kSCEntNetPPPoE: Pointer;
function kSCEntNetPPPSerial: Pointer;
function kSCEntNetPPTP: Pointer;
function kSCEntNetProxies: Pointer;
function kSCEntNetSMB: Pointer;
function kSCEntNet6to4: Pointer;
function kSCPropNetOverridePrimary: Pointer;
function kSCPropNetServiceOrder: Pointer;
function kSCPropNetPPPOverridePrimary: Pointer;
function kSCPropNetInterfaces: Pointer;
function kSCPropNetLocalHostName: Pointer;
function kSCPropNetAirPortAllowNetCreation: Pointer;
function kSCPropNetAirPortAuthPassword: Pointer;
function kSCPropNetAirPortAuthPasswordEncryption: Pointer;
function kSCPropNetAirPortJoinMode: Pointer;
function kSCPropNetAirPortPowerEnabled: Pointer;
function kSCPropNetAirPortPreferredNetwork: Pointer;
function kSCPropNetAirPortSavePasswords: Pointer;
function kSCValNetAirPortJoinModeAutomatic: Pointer;
function kSCValNetAirPortJoinModePreferred: Pointer;
function kSCValNetAirPortJoinModeRanked: Pointer;
function kSCValNetAirPortJoinModeRecent: Pointer;
function kSCValNetAirPortJoinModeStrongest: Pointer;
function kSCValNetAirPortAuthPasswordEncryptionKeychain: Pointer;
function kSCPropNetAppleTalkComputerName: Pointer;
function kSCPropNetAppleTalkComputerNameEncoding: Pointer;
function kSCPropNetAppleTalkConfigMethod: Pointer;
function kSCPropNetAppleTalkDefaultZone: Pointer;
function kSCPropNetAppleTalkNetworkID: Pointer;
function kSCPropNetAppleTalkNetworkRange: Pointer;
function kSCPropNetAppleTalkNodeID: Pointer;
function kSCPropNetAppleTalkSeedNetworkRange: Pointer;
function kSCPropNetAppleTalkSeedZones: Pointer;
function kSCValNetAppleTalkConfigMethodNode: Pointer;
function kSCValNetAppleTalkConfigMethodRouter: Pointer;
function kSCValNetAppleTalkConfigMethodSeedRouter: Pointer;
function kSCPropNetDNSDomainName: Pointer;
function kSCPropNetDNSOptions: Pointer;
function kSCPropNetDNSSearchDomains: Pointer;
function kSCPropNetDNSSearchOrder: Pointer;
function kSCPropNetDNSServerAddresses: Pointer;
function kSCPropNetDNSServerPort: Pointer;
function kSCPropNetDNSServerTimeout: Pointer;
function kSCPropNetDNSSortList: Pointer;
function kSCPropNetDNSSupplementalMatchDomains: Pointer;
function kSCPropNetDNSSupplementalMatchOrders: Pointer;
function kSCPropNetEthernetMediaSubType: Pointer;
function kSCPropNetEthernetMediaOptions: Pointer;
function kSCPropNetEthernetMTU: Pointer;
function kSCPropNetInterfaceDeviceName: Pointer;
function kSCPropNetInterfaceHardware: Pointer;
function kSCPropNetInterfaceType: Pointer;
function kSCPropNetInterfaceSubType: Pointer;
function kSCPropNetInterfaceSupportsModemOnHold: Pointer;
function kSCValNetInterfaceTypeEthernet: Pointer;
function kSCValNetInterfaceTypeFireWire: Pointer;
function kSCValNetInterfaceTypePPP: Pointer;
function kSCValNetInterfaceType6to4: Pointer;
function kSCValNetInterfaceTypeIPSec: Pointer;
function kSCValNetInterfaceSubTypePPPoE: Pointer;
function kSCValNetInterfaceSubTypePPPSerial: Pointer;
function kSCValNetInterfaceSubTypePPTP: Pointer;
function kSCValNetInterfaceSubTypeL2TP: Pointer;
function kSCPropNetIPSecAuthenticationMethod: Pointer;
function kSCPropNetIPSecLocalCertificate: Pointer;
function kSCPropNetIPSecLocalIdentifier: Pointer;
function kSCPropNetIPSecLocalIdentifierType: Pointer;
function kSCPropNetIPSecSharedSecret: Pointer;
function kSCPropNetIPSecSharedSecretEncryption: Pointer;
function kSCPropNetIPSecConnectTime: Pointer;
function kSCPropNetIPSecRemoteAddress: Pointer;
function kSCPropNetIPSecStatus: Pointer;
function kSCPropNetIPSecXAuthEnabled: Pointer;
function kSCPropNetIPSecXAuthName: Pointer;
function kSCPropNetIPSecXAuthPassword: Pointer;
function kSCPropNetIPSecXAuthPasswordEncryption: Pointer;
function kSCValNetIPSecAuthenticationMethodSharedSecret: Pointer;
function kSCValNetIPSecAuthenticationMethodCertificate: Pointer;
function kSCValNetIPSecAuthenticationMethodHybrid: Pointer;
function kSCValNetIPSecLocalIdentifierTypeKeyID: Pointer;
function kSCValNetIPSecSharedSecretEncryptionKeychain: Pointer;
function kSCValNetIPSecXAuthPasswordEncryptionKeychain: Pointer;
function kSCValNetIPSecXAuthPasswordEncryptionPrompt: Pointer;
function kSCPropNetIPv4Addresses: Pointer;
function kSCPropNetIPv4ConfigMethod: Pointer;
function kSCPropNetIPv4DHCPClientID: Pointer;
function kSCPropNetIPv4Router: Pointer;
function kSCPropNetIPv4SubnetMasks: Pointer;
function kSCPropNetIPv4DestAddresses: Pointer;
function kSCPropNetIPv4BroadcastAddresses: Pointer;
function kSCValNetIPv4ConfigMethodAutomatic: Pointer;
function kSCValNetIPv4ConfigMethodBOOTP: Pointer;
function kSCValNetIPv4ConfigMethodDHCP: Pointer;
function kSCValNetIPv4ConfigMethodINFORM: Pointer;
function kSCValNetIPv4ConfigMethodLinkLocal: Pointer;
function kSCValNetIPv4ConfigMethodManual: Pointer;
function kSCValNetIPv4ConfigMethodPPP: Pointer;
function kSCPropNetIPv6Addresses: Pointer;
function kSCPropNetIPv6ConfigMethod: Pointer;
function kSCPropNetIPv6DestAddresses: Pointer;
function kSCPropNetIPv6Flags: Pointer;
function kSCPropNetIPv6PrefixLength: Pointer;
function kSCPropNetIPv6Router: Pointer;
function kSCValNetIPv6ConfigMethodAutomatic: Pointer;
function kSCValNetIPv6ConfigMethodLinkLocal: Pointer;
function kSCValNetIPv6ConfigMethodManual: Pointer;
function kSCValNetIPv6ConfigMethodRouterAdvertisement: Pointer;
function kSCValNetIPv6ConfigMethod6to4: Pointer;
function kSCPropNet6to4Relay: Pointer;
function kSCPropNetLinkActive: Pointer;
function kSCPropNetLinkDetaching: Pointer;
function kSCPropNetModemAccessPointName: Pointer;
function kSCPropNetModemConnectionPersonality: Pointer;
function kSCPropNetModemConnectionScript: Pointer;
function kSCPropNetModemConnectSpeed: Pointer;
function kSCPropNetModemDataCompression: Pointer;
function kSCPropNetModemDeviceContextID: Pointer;
function kSCPropNetModemDeviceModel: Pointer;
function kSCPropNetModemDeviceVendor: Pointer;
function kSCPropNetModemDialMode: Pointer;
function kSCPropNetModemErrorCorrection: Pointer;
function kSCPropNetModemHoldCallWaitingAudibleAlert: Pointer;
function kSCPropNetModemHoldDisconnectOnAnswer: Pointer;
function kSCPropNetModemHoldEnabled: Pointer;
function kSCPropNetModemHoldReminder: Pointer;
function kSCPropNetModemHoldReminderTime: Pointer;
function kSCPropNetModemNote: Pointer;
function kSCPropNetModemPulseDial: Pointer;
function kSCPropNetModemSpeaker: Pointer;
function kSCPropNetModemSpeed: Pointer;
function kSCValNetModemDialModeIgnoreDialTone: Pointer;
function kSCValNetModemDialModeManual: Pointer;
function kSCValNetModemDialModeWaitForDialTone: Pointer;
function kSCPropNetNetInfoBindingMethods: Pointer;
function kSCPropNetNetInfoServerAddresses: Pointer;
function kSCPropNetNetInfoServerTags: Pointer;
function kSCPropNetNetInfoBroadcastServerTag: Pointer;
function kSCValNetNetInfoBindingMethodsBroadcast: Pointer;
function kSCValNetNetInfoBindingMethodsDHCP: Pointer;
function kSCValNetNetInfoBindingMethodsManual: Pointer;
function kSCValNetNetInfoDefaultServerTag: Pointer;
function kSCPropNetPPPACSPEnabled: Pointer;
function kSCPropNetPPPConnectTime: Pointer;
function kSCPropNetPPPDeviceLastCause: Pointer;
function kSCPropNetPPPDialOnDemand: Pointer;
function kSCPropNetPPPDisconnectOnFastUserSwitch: Pointer;
function kSCPropNetPPPDisconnectOnIdle: Pointer;
function kSCPropNetPPPDisconnectOnIdleTimer: Pointer;
function kSCPropNetPPPDisconnectOnLogout: Pointer;
function kSCPropNetPPPDisconnectOnSleep: Pointer;
function kSCPropNetPPPDisconnectTime: Pointer;
function kSCPropNetPPPIdleReminderTimer: Pointer;
function kSCPropNetPPPIdleReminder: Pointer;
function kSCPropNetPPPLastCause: Pointer;
function kSCPropNetPPPLogfile: Pointer;
function kSCPropNetPPPPlugins: Pointer;
function kSCPropNetPPPRetryConnectTime: Pointer;
function kSCPropNetPPPSessionTimer: Pointer;
function kSCPropNetPPPStatus: Pointer;
function kSCPropNetPPPUseSessionTimer: Pointer;
function kSCPropNetPPPVerboseLogging: Pointer;
function kSCPropNetPPPAuthEAPPlugins: Pointer;
function kSCPropNetPPPAuthName: Pointer;
function kSCPropNetPPPAuthPassword: Pointer;
function kSCPropNetPPPAuthPasswordEncryption: Pointer;
function kSCPropNetPPPAuthPrompt: Pointer;
function kSCPropNetPPPAuthProtocol: Pointer;
function kSCValNetPPPAuthPasswordEncryptionKeychain: Pointer;
function kSCValNetPPPAuthPasswordEncryptionToken: Pointer;
function kSCValNetPPPAuthPromptBefore: Pointer;
function kSCValNetPPPAuthPromptAfter: Pointer;
function kSCValNetPPPAuthProtocolCHAP: Pointer;
function kSCValNetPPPAuthProtocolEAP: Pointer;
function kSCValNetPPPAuthProtocolMSCHAP1: Pointer;
function kSCValNetPPPAuthProtocolMSCHAP2: Pointer;
function kSCValNetPPPAuthProtocolPAP: Pointer;
function kSCPropNetPPPCommAlternateRemoteAddress: Pointer;
function kSCPropNetPPPCommConnectDelay: Pointer;
function kSCPropNetPPPCommDisplayTerminalWindow: Pointer;
function kSCPropNetPPPCommRedialCount: Pointer;
function kSCPropNetPPPCommRedialEnabled: Pointer;
function kSCPropNetPPPCommRedialInterval: Pointer;
function kSCPropNetPPPCommRemoteAddress: Pointer;
function kSCPropNetPPPCommTerminalScript: Pointer;
function kSCPropNetPPPCommUseTerminalScript: Pointer;
function kSCPropNetPPPCCPEnabled: Pointer;
function kSCPropNetPPPCCPMPPE40Enabled: Pointer;
function kSCPropNetPPPCCPMPPE128Enabled: Pointer;
function kSCPropNetPPPIPCPCompressionVJ: Pointer;
function kSCPropNetPPPIPCPUsePeerDNS: Pointer;
function kSCPropNetPPPLCPEchoEnabled: Pointer;
function kSCPropNetPPPLCPEchoFailure: Pointer;
function kSCPropNetPPPLCPEchoInterval: Pointer;
function kSCPropNetPPPLCPCompressionACField: Pointer;
function kSCPropNetPPPLCPCompressionPField: Pointer;
function kSCPropNetPPPLCPMRU: Pointer;
function kSCPropNetPPPLCPMTU: Pointer;
function kSCPropNetPPPLCPReceiveACCM: Pointer;
function kSCPropNetPPPLCPTransmitACCM: Pointer;
function kSCPropNetL2TPIPSecSharedSecret: Pointer;
function kSCPropNetL2TPIPSecSharedSecretEncryption: Pointer;
function kSCPropNetL2TPTransport: Pointer;
function kSCValNetL2TPIPSecSharedSecretEncryptionKeychain: Pointer;
function kSCValNetL2TPTransportIP: Pointer;
function kSCValNetL2TPTransportIPSec: Pointer;
function kSCPropNetProxiesExceptionsList: Pointer;
function kSCPropNetProxiesExcludeSimpleHostnames: Pointer;
function kSCPropNetProxiesFTPEnable: Pointer;
function kSCPropNetProxiesFTPPassive: Pointer;
function kSCPropNetProxiesFTPPort: Pointer;
function kSCPropNetProxiesFTPProxy: Pointer;
function kSCPropNetProxiesGopherEnable: Pointer;
function kSCPropNetProxiesGopherPort: Pointer;
function kSCPropNetProxiesGopherProxy: Pointer;
function kSCPropNetProxiesHTTPEnable: Pointer;
function kSCPropNetProxiesHTTPPort: Pointer;
function kSCPropNetProxiesHTTPProxy: Pointer;
function kSCPropNetProxiesHTTPSEnable: Pointer;
function kSCPropNetProxiesHTTPSPort: Pointer;
function kSCPropNetProxiesHTTPSProxy: Pointer;
function kSCPropNetProxiesRTSPEnable: Pointer;
function kSCPropNetProxiesRTSPPort: Pointer;
function kSCPropNetProxiesRTSPProxy: Pointer;
function kSCPropNetProxiesSOCKSEnable: Pointer;
function kSCPropNetProxiesSOCKSPort: Pointer;
function kSCPropNetProxiesSOCKSProxy: Pointer;
function kSCPropNetProxiesProxyAutoConfigEnable: Pointer;
function kSCPropNetProxiesProxyAutoConfigJavaScript: Pointer;
function kSCPropNetProxiesProxyAutoConfigURLString: Pointer;
function kSCPropNetProxiesProxyAutoDiscoveryEnable: Pointer;
function kSCPropNetSMBNetBIOSName: Pointer;
function kSCPropNetSMBNetBIOSNodeType: Pointer;
function kSCPropNetSMBNetBIOSScope: Pointer;
function kSCPropNetSMBWINSAddresses: Pointer;
function kSCPropNetSMBWorkgroup: Pointer;
function kSCValNetSMBNetBIOSNodeTypeBroadcast: Pointer;
function kSCValNetSMBNetBIOSNodeTypePeer: Pointer;
function kSCValNetSMBNetBIOSNodeTypeMixed: Pointer;
function kSCValNetSMBNetBIOSNodeTypeHybrid: Pointer;
function kSCEntUsersConsoleUser: Pointer;
function kSCPropSystemComputerName: Pointer;
function kSCPropSystemComputerNameEncoding: Pointer;
function kSCDynamicStoreDomainFile: Pointer;
function kSCDynamicStoreDomainPlugin: Pointer;
function kSCDynamicStoreDomainSetup: Pointer;
function kSCDynamicStoreDomainState: Pointer;
function kSCDynamicStoreDomainPrefs: Pointer;
function kSCDynamicStorePropSetupCurrentSet: Pointer;
function kSCDynamicStorePropSetupLastUpdated: Pointer;
function kSCDynamicStorePropNetInterfaces: Pointer;
function kSCDynamicStorePropNetPrimaryInterface: Pointer;
function kSCDynamicStorePropNetPrimaryService: Pointer;
function kSCDynamicStorePropNetServiceIDs: Pointer;
function kSCPropUsersConsoleUserName: Pointer;
function kSCPropUsersConsoleUserUID: Pointer;
function kSCPropUsersConsoleUserGID: Pointer;
function kCFErrorDomainSystemConfiguration: Pointer;
function kSCNetworkInterfaceType6to4: Pointer;
function kSCNetworkInterfaceTypeBluetooth: Pointer;
function kSCNetworkInterfaceTypeBond: Pointer;
function kSCNetworkInterfaceTypeEthernet: Pointer;
function kSCNetworkInterfaceTypeFireWire: Pointer;
function kSCNetworkInterfaceTypeIEEE80211: Pointer;
function kSCNetworkInterfaceTypeIPSec: Pointer;
function kSCNetworkInterfaceTypeIrDA: Pointer;
function kSCNetworkInterfaceTypeL2TP: Pointer;
function kSCNetworkInterfaceTypeModem: Pointer;
function kSCNetworkInterfaceTypePPP: Pointer;
function kSCNetworkInterfaceTypePPTP: Pointer;
function kSCNetworkInterfaceTypeSerial: Pointer;
function kSCNetworkInterfaceTypeVLAN: Pointer;
function kSCNetworkInterfaceTypeWWAN: Pointer;
function kSCNetworkInterfaceTypeIPv4: Pointer;
function kSCNetworkInterfaceIPv4: Pointer;
function kSCBondStatusDeviceAggregationStatus: Pointer;
function kSCBondStatusDeviceCollecting: Pointer;
function kSCBondStatusDeviceDistributing: Pointer;
function kSCNetworkProtocolTypeAppleTalk: Pointer;
function kSCNetworkProtocolTypeDNS: Pointer;
function kSCNetworkProtocolTypeIPv4: Pointer;
function kSCNetworkProtocolTypeIPv6: Pointer;
function kSCNetworkProtocolTypeProxies: Pointer;
function kSCNetworkProtocolTypeSMB: Pointer;
// ===== External functions =====
const
libSystemConfiguration =
'/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration';
function CNSetSupportedSSIDs(ssidArray: CFArrayRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'CNSetSupportedSSIDs';
function CNMarkPortalOnline(interfaceName: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'CNMarkPortalOnline';
function CNMarkPortalOffline(interfaceName: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'CNMarkPortalOffline';
function CNCopySupportedInterfaces: CFArrayRef; cdecl;
external libSystemConfiguration name _PU + 'CNCopySupportedInterfaces';
function CNCopyCurrentNetworkInfo(interfaceName: CFStringRef): CFDictionaryRef;
cdecl; external libSystemConfiguration name _PU + 'CNCopyCurrentNetworkInfo';
function DHCPClientPreferencesSetApplicationOptions(applicationID: CFStringRef;
options: PByte; count: CFIndex): Boolean; cdecl;
external libSystemConfiguration name _PU +
'DHCPClientPreferencesSetApplicationOptions';
function DHCPClientPreferencesCopyApplicationOptions(applicationID: CFStringRef;
count: PLongInt): PByte; cdecl; external libSystemConfiguration name _PU +
'DHCPClientPreferencesCopyApplicationOptions';
function SCDynamicStoreGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreGetTypeID';
function SCDynamicStoreCreate(allocator: CFAllocatorRef; name: CFStringRef;
callout: SCDynamicStoreCallBack; context: Pointer): SCDynamicStoreRef; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreCreate';
function SCDynamicStoreCreateWithOptions(allocator: CFAllocatorRef;
name: CFStringRef; storeOptions: CFDictionaryRef;
callout: SCDynamicStoreCallBack; context: Pointer): SCDynamicStoreRef; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreCreateWithOptions';
function SCDynamicStoreCreateRunLoopSource(allocator: CFAllocatorRef;
store: SCDynamicStoreRef; order: CFIndex): CFRunLoopSourceRef; cdecl;
external libSystemConfiguration name _PU +
'SCDynamicStoreCreateRunLoopSource';
function SCDynamicStoreSetDispatchQueue(store: SCDynamicStoreRef;
queue: dispatch_queue_t): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreSetDispatchQueue';
function SCDynamicStoreCopyKeyList(store: SCDynamicStoreRef;
pattern: CFStringRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreCopyKeyList';
function SCDynamicStoreAddValue(store: SCDynamicStoreRef; key: CFStringRef;
value: CFPropertyListRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreAddValue';
function SCDynamicStoreAddTemporaryValue(store: SCDynamicStoreRef;
key: CFStringRef; value: CFPropertyListRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreAddTemporaryValue';
function SCDynamicStoreCopyValue(store: SCDynamicStoreRef; key: CFStringRef)
: CFPropertyListRef; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreCopyValue';
function SCDynamicStoreCopyMultiple(store: SCDynamicStoreRef; keys: CFArrayRef;
patterns: CFArrayRef): CFDictionaryRef; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreCopyMultiple';
function SCDynamicStoreSetValue(store: SCDynamicStoreRef; key: CFStringRef;
value: CFPropertyListRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreSetValue';
function SCDynamicStoreSetMultiple(store: SCDynamicStoreRef;
keysToSet: CFDictionaryRef; keysToRemove: CFArrayRef;
keysToNotify: CFArrayRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreSetMultiple';
function SCDynamicStoreRemoveValue(store: SCDynamicStoreRef; key: CFStringRef)
: Boolean; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreRemoveValue';
function SCDynamicStoreNotifyValue(store: SCDynamicStoreRef; key: CFStringRef)
: Boolean; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreNotifyValue';
function SCDynamicStoreSetNotificationKeys(store: SCDynamicStoreRef;
keys: CFArrayRef; patterns: CFArrayRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCDynamicStoreSetNotificationKeys';
function SCDynamicStoreCopyNotifiedKeys(store: SCDynamicStoreRef): CFArrayRef;
cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreCopyNotifiedKeys';
function SCDynamicStoreCopyDHCPInfo(store: SCDynamicStoreRef;
serviceID: CFStringRef): CFDictionaryRef; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreCopyDHCPInfo';
function DHCPInfoGetOptionData(info: CFDictionaryRef; code: Byte): CFDataRef;
cdecl; external libSystemConfiguration name _PU + 'DHCPInfoGetOptionData';
function DHCPInfoGetLeaseStartTime(info: CFDictionaryRef): CFDateRef; cdecl;
external libSystemConfiguration name _PU + 'DHCPInfoGetLeaseStartTime';
function DHCPInfoGetLeaseExpirationTime(info: CFDictionaryRef): CFDateRef;
cdecl; external libSystemConfiguration name _PU +
'DHCPInfoGetLeaseExpirationTime';
function SCDynamicStoreCopyComputerName(store: SCDynamicStoreRef;
nameEncoding: PLongWord): CFStringRef; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreCopyComputerName';
function SCDynamicStoreCopyConsoleUser(store: SCDynamicStoreRef; uid: PCardinal;
gid: PCardinal): CFStringRef; cdecl;
external libSystemConfiguration name _PU + 'SCDynamicStoreCopyConsoleUser';
function SCDynamicStoreCopyLocalHostName(store: SCDynamicStoreRef): CFStringRef;
cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreCopyLocalHostName';
function SCDynamicStoreCopyLocation(store: SCDynamicStoreRef): CFStringRef;
cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreCopyLocation';
function SCDynamicStoreCopyProxies(store: SCDynamicStoreRef): CFDictionaryRef;
cdecl; external libSystemConfiguration name _PU + 'SCDynamicStoreCopyProxies';
function SCDynamicStoreKeyCreate(allocator: CFAllocatorRef; fmt: CFStringRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreate';
function SCDynamicStoreKeyCreateNetworkGlobalEntity(allocator: CFAllocatorRef;
domain: CFStringRef; entity: CFStringRef): CFStringRef; cdecl;
external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateNetworkGlobalEntity';
function SCDynamicStoreKeyCreateNetworkInterface(allocator: CFAllocatorRef;
domain: CFStringRef): CFStringRef; cdecl;
external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateNetworkInterface';
function SCDynamicStoreKeyCreateNetworkInterfaceEntity
(allocator: CFAllocatorRef; domain: CFStringRef; ifname: CFStringRef;
entity: CFStringRef): CFStringRef; cdecl;
external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateNetworkInterfaceEntity';
function SCDynamicStoreKeyCreateNetworkServiceEntity(allocator: CFAllocatorRef;
domain: CFStringRef; serviceID: CFStringRef; entity: CFStringRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateNetworkServiceEntity';
function SCDynamicStoreKeyCreateComputerName(allocator: CFAllocatorRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateComputerName';
function SCDynamicStoreKeyCreateConsoleUser(allocator: CFAllocatorRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateConsoleUser';
function SCDynamicStoreKeyCreateHostNames(allocator: CFAllocatorRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateHostNames';
function SCDynamicStoreKeyCreateLocation(allocator: CFAllocatorRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateLocation';
function SCDynamicStoreKeyCreateProxies(allocator: CFAllocatorRef): CFStringRef;
cdecl; external libSystemConfiguration name _PU +
'SCDynamicStoreKeyCreateProxies';
function SCNetworkCheckReachabilityByAddress(address: Pointer;
addrlen: LongWord; flags: PLongWord): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkCheckReachabilityByAddress';
function SCNetworkCheckReachabilityByName(nodename: MarshaledAString;
flags: PLongWord): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkCheckReachabilityByName';
function SCNetworkInterfaceRefreshConfiguration(ifname: CFStringRef): Boolean;
cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceRefreshConfiguration';
function SCPreferencesGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesGetTypeID';
function SCPreferencesCreate(allocator: CFAllocatorRef; name: CFStringRef;
prefsID: CFStringRef): SCPreferencesRef; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesCreate';
function SCPreferencesCreateWithAuthorization(allocator: CFAllocatorRef;
name: CFStringRef; prefsID: CFStringRef; authorization: AuthorizationRef)
: SCPreferencesRef; cdecl; external libSystemConfiguration name _PU +
'SCPreferencesCreateWithAuthorization';
function SCPreferencesLock(prefs: SCPreferencesRef; wait: Boolean): Boolean;
cdecl; external libSystemConfiguration name _PU + 'SCPreferencesLock';
function SCPreferencesCommitChanges(prefs: SCPreferencesRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesCommitChanges';
function SCPreferencesApplyChanges(prefs: SCPreferencesRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesApplyChanges';
function SCPreferencesUnlock(prefs: SCPreferencesRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesUnlock';
function SCPreferencesGetSignature(prefs: SCPreferencesRef): CFDataRef; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesGetSignature';
function SCPreferencesCopyKeyList(prefs: SCPreferencesRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesCopyKeyList';
function SCPreferencesGetValue(prefs: SCPreferencesRef; key: CFStringRef)
: CFPropertyListRef; cdecl; external libSystemConfiguration name _PU +
'SCPreferencesGetValue';
function SCPreferencesAddValue(prefs: SCPreferencesRef; key: CFStringRef;
value: CFPropertyListRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesAddValue';
function SCPreferencesSetValue(prefs: SCPreferencesRef; key: CFStringRef;
value: CFPropertyListRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesSetValue';
function SCPreferencesRemoveValue(prefs: SCPreferencesRef; key: CFStringRef)
: Boolean; cdecl; external libSystemConfiguration name _PU +
'SCPreferencesRemoveValue';
function SCPreferencesSetCallback(prefs: SCPreferencesRef;
callout: SCPreferencesCallBack; context: Pointer): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesSetCallback';
function SCPreferencesScheduleWithRunLoop(prefs: SCPreferencesRef;
runLoop: CFRunLoopRef; runLoopMode: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesScheduleWithRunLoop';
function SCPreferencesUnscheduleFromRunLoop(prefs: SCPreferencesRef;
runLoop: CFRunLoopRef; runLoopMode: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCPreferencesUnscheduleFromRunLoop';
function SCPreferencesSetDispatchQueue(prefs: SCPreferencesRef;
queue: dispatch_queue_t): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesSetDispatchQueue';
procedure SCPreferencesSynchronize(prefs: SCPreferencesRef); cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesSynchronize';
function SCPreferencesPathCreateUniqueChild(prefs: SCPreferencesRef;
prefix: CFStringRef): CFStringRef; cdecl;
external libSystemConfiguration name _PU +
'SCPreferencesPathCreateUniqueChild';
function SCPreferencesPathGetValue(prefs: SCPreferencesRef; path: CFStringRef)
: CFDictionaryRef; cdecl; external libSystemConfiguration name _PU +
'SCPreferencesPathGetValue';
function SCPreferencesPathGetLink(prefs: SCPreferencesRef; path: CFStringRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCPreferencesPathGetLink';
function SCPreferencesPathSetValue(prefs: SCPreferencesRef; path: CFStringRef;
value: CFDictionaryRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesPathSetValue';
function SCPreferencesPathSetLink(prefs: SCPreferencesRef; path: CFStringRef;
link: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesPathSetLink';
function SCPreferencesPathRemoveValue(prefs: SCPreferencesRef;
path: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesPathRemoveValue';
function SCPreferencesSetComputerName(prefs: SCPreferencesRef;
name: CFStringRef; nameEncoding: CFStringEncoding): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesSetComputerName';
function SCPreferencesSetLocalHostName(prefs: SCPreferencesRef;
name: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCPreferencesSetLocalHostName';
function SCNetworkReachabilityCreateWithAddress(allocator: CFAllocatorRef;
address: Pointer): SCNetworkReachabilityRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkReachabilityCreateWithAddress';
function SCNetworkReachabilityCreateWithAddressPair(allocator: CFAllocatorRef;
localAddress: Pointer; remoteAddress: Pointer): SCNetworkReachabilityRef;
cdecl; external libSystemConfiguration name _PU +
'SCNetworkReachabilityCreateWithAddressPair';
function SCNetworkReachabilityCreateWithName(allocator: CFAllocatorRef;
nodename: MarshaledAString): SCNetworkReachabilityRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkReachabilityCreateWithName';
function SCNetworkReachabilityGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkReachabilityGetTypeID';
function SCNetworkReachabilityGetFlags(target: SCNetworkReachabilityRef;
flags: LongWord): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkReachabilityGetFlags';
function SCNetworkReachabilitySetCallback(target: SCNetworkReachabilityRef;
callout: SCNetworkReachabilityCallBack; context: Pointer): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkReachabilitySetCallback';
function SCNetworkReachabilityScheduleWithRunLoop
(target: SCNetworkReachabilityRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkReachabilityScheduleWithRunLoop';
function SCNetworkReachabilityUnscheduleFromRunLoop
(target: SCNetworkReachabilityRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkReachabilityUnscheduleFromRunLoop';
function SCNetworkReachabilitySetDispatchQueue(target: SCNetworkReachabilityRef;
queue: dispatch_queue_t): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkReachabilitySetDispatchQueue';
function SCNetworkConnectionGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkConnectionGetTypeID';
function SCNetworkConnectionCopyUserPreferences(selectionOptions
: CFDictionaryRef; serviceID: Pointer; userOptions: Pointer): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkConnectionCopyUserPreferences';
function SCNetworkConnectionCreateWithServiceID(allocator: CFAllocatorRef;
serviceID: CFStringRef; callout: SCNetworkConnectionCallBack;
context: Pointer): SCNetworkConnectionRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkConnectionCreateWithServiceID';
function SCNetworkConnectionCopyServiceID(connection: SCNetworkConnectionRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkConnectionCopyServiceID';
function SCNetworkConnectionGetStatus(connection: SCNetworkConnectionRef)
: SCNetworkConnectionStatus; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkConnectionGetStatus';
function SCNetworkConnectionCopyExtendedStatus
(connection: SCNetworkConnectionRef): CFDictionaryRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkConnectionCopyExtendedStatus';
function SCNetworkConnectionCopyStatistics(connection: SCNetworkConnectionRef)
: CFDictionaryRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkConnectionCopyStatistics';
function SCNetworkConnectionStart(connection: SCNetworkConnectionRef;
userOptions: CFDictionaryRef; linger: Boolean): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkConnectionStart';
function SCNetworkConnectionStop(connection: SCNetworkConnectionRef;
forceDisconnect: Boolean): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkConnectionStop';
function SCNetworkConnectionCopyUserOptions(connection: SCNetworkConnectionRef)
: CFDictionaryRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkConnectionCopyUserOptions';
function SCNetworkConnectionScheduleWithRunLoop
(connection: SCNetworkConnectionRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkConnectionScheduleWithRunLoop';
function SCNetworkConnectionUnscheduleFromRunLoop
(connection: SCNetworkConnectionRef; runLoop: CFRunLoopRef;
runLoopMode: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkConnectionUnscheduleFromRunLoop';
function SCNetworkConnectionSetDispatchQueue(connection: SCNetworkConnectionRef;
queue: dispatch_queue_t): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkConnectionSetDispatchQueue';
function SCCopyLastError: CFErrorRef; cdecl;
external libSystemConfiguration name _PU + 'SCCopyLastError';
function SCError: Integer; cdecl; external libSystemConfiguration name _PU +
'SCError';
function SCErrorString(status: Integer): MarshaledAString; cdecl;
external libSystemConfiguration name _PU + 'SCErrorString';
function SCNetworkInterfaceGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkInterfaceGetTypeID';
function SCNetworkInterfaceCopyAll: CFArrayRef; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkInterfaceCopyAll';
function SCNetworkInterfaceGetSupportedInterfaceTypes
(&interface: SCNetworkInterfaceRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetSupportedInterfaceTypes';
function SCNetworkInterfaceGetSupportedProtocolTypes
(&interface: SCNetworkInterfaceRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetSupportedProtocolTypes';
function SCNetworkInterfaceCreateWithInterface
(&interface: SCNetworkInterfaceRef; interfaceType: CFStringRef)
: SCNetworkInterfaceRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceCreateWithInterface';
function SCNetworkInterfaceGetBSDName(&interface: SCNetworkInterfaceRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetBSDName';
function SCNetworkInterfaceGetConfiguration(&interface: SCNetworkInterfaceRef)
: CFDictionaryRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetConfiguration';
function SCNetworkInterfaceGetExtendedConfiguration
(&interface: SCNetworkInterfaceRef; extendedType: CFStringRef)
: CFDictionaryRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetExtendedConfiguration';
function SCNetworkInterfaceGetHardwareAddressString
(&interface: SCNetworkInterfaceRef): CFStringRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetHardwareAddressString';
function SCNetworkInterfaceGetInterface(&interface: SCNetworkInterfaceRef)
: SCNetworkInterfaceRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetInterface';
function SCNetworkInterfaceGetInterfaceType(&interface: SCNetworkInterfaceRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetInterfaceType';
function SCNetworkInterfaceGetLocalizedDisplayName
(&interface: SCNetworkInterfaceRef): CFStringRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceGetLocalizedDisplayName';
function SCNetworkInterfaceSetConfiguration(&interface: SCNetworkInterfaceRef;
config: CFDictionaryRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceSetConfiguration';
function SCNetworkInterfaceSetExtendedConfiguration
(&interface: SCNetworkInterfaceRef; extendedType: CFStringRef;
config: CFDictionaryRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceSetExtendedConfiguration';
function SCNetworkInterfaceCopyMediaOptions(&interface: SCNetworkInterfaceRef;
current: Pointer; active: Pointer; available: Pointer; filter: Boolean)
: Boolean; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceCopyMediaOptions';
function SCNetworkInterfaceCopyMediaSubTypes(available: CFArrayRef): CFArrayRef;
cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceCopyMediaSubTypes';
function SCNetworkInterfaceCopyMediaSubTypeOptions(available: CFArrayRef;
subType: CFStringRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceCopyMediaSubTypeOptions';
function SCNetworkInterfaceCopyMTU(&interface: SCNetworkInterfaceRef;
mtu_cur: PInteger; mtu_min: PInteger; mtu_max: PInteger): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkInterfaceCopyMTU';
function SCNetworkInterfaceSetMediaOptions(&interface: SCNetworkInterfaceRef;
subType: CFStringRef; options: CFArrayRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceSetMediaOptions';
function SCNetworkInterfaceSetMTU(&interface: SCNetworkInterfaceRef;
mtu: Integer): Boolean; cdecl; external libSystemConfiguration name _PU +
'SCNetworkInterfaceSetMTU';
function SCNetworkInterfaceForceConfigurationRefresh
(&interface: SCNetworkInterfaceRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkInterfaceForceConfigurationRefresh';
function SCBondInterfaceCopyAll(prefs: SCPreferencesRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU + 'SCBondInterfaceCopyAll';
function SCBondInterfaceCopyAvailableMemberInterfaces(prefs: SCPreferencesRef)
: CFArrayRef; cdecl; external libSystemConfiguration name _PU +
'SCBondInterfaceCopyAvailableMemberInterfaces';
function SCBondInterfaceCreate(prefs: SCPreferencesRef): SCBondInterfaceRef;
cdecl; external libSystemConfiguration name _PU + 'SCBondInterfaceCreate';
function SCBondInterfaceRemove(bond: SCBondInterfaceRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCBondInterfaceRemove';
function SCBondInterfaceGetMemberInterfaces(bond: SCBondInterfaceRef)
: CFArrayRef; cdecl; external libSystemConfiguration name _PU +
'SCBondInterfaceGetMemberInterfaces';
function SCBondInterfaceGetOptions(bond: SCBondInterfaceRef): CFDictionaryRef;
cdecl; external libSystemConfiguration name _PU + 'SCBondInterfaceGetOptions';
function SCBondInterfaceSetMemberInterfaces(bond: SCBondInterfaceRef;
members: CFArrayRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCBondInterfaceSetMemberInterfaces';
function SCBondInterfaceSetLocalizedDisplayName(bond: SCBondInterfaceRef;
newName: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCBondInterfaceSetLocalizedDisplayName';
function SCBondInterfaceSetOptions(bond: SCBondInterfaceRef;
newOptions: CFDictionaryRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCBondInterfaceSetOptions';
function SCBondInterfaceCopyStatus(bond: SCBondInterfaceRef): SCBondStatusRef;
cdecl; external libSystemConfiguration name _PU + 'SCBondInterfaceCopyStatus';
function SCBondStatusGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCBondStatusGetTypeID';
function SCBondStatusGetMemberInterfaces(bondStatus: SCBondStatusRef)
: CFArrayRef; cdecl; external libSystemConfiguration name _PU +
'SCBondStatusGetMemberInterfaces';
function SCBondStatusGetInterfaceStatus(bondStatus: SCBondStatusRef;
&interface: SCNetworkInterfaceRef): CFDictionaryRef; cdecl;
external libSystemConfiguration name _PU + 'SCBondStatusGetInterfaceStatus';
function SCVLANInterfaceCopyAll(prefs: SCPreferencesRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU + 'SCVLANInterfaceCopyAll';
function SCVLANInterfaceCopyAvailablePhysicalInterfaces: CFArrayRef; cdecl;
external libSystemConfiguration name _PU +
'SCVLANInterfaceCopyAvailablePhysicalInterfaces';
function SCVLANInterfaceCreate(prefs: SCPreferencesRef;
physical: SCNetworkInterfaceRef; tag: CFNumberRef): SCVLANInterfaceRef; cdecl;
external libSystemConfiguration name _PU + 'SCVLANInterfaceCreate';
function SCVLANInterfaceRemove(vlan: SCVLANInterfaceRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCVLANInterfaceRemove';
function SCVLANInterfaceGetPhysicalInterface(vlan: SCVLANInterfaceRef)
: SCNetworkInterfaceRef; cdecl; external libSystemConfiguration name _PU +
'SCVLANInterfaceGetPhysicalInterface';
function SCVLANInterfaceGetTag(vlan: SCVLANInterfaceRef): CFNumberRef; cdecl;
external libSystemConfiguration name _PU + 'SCVLANInterfaceGetTag';
function SCVLANInterfaceGetOptions(vlan: SCVLANInterfaceRef): CFDictionaryRef;
cdecl; external libSystemConfiguration name _PU + 'SCVLANInterfaceGetOptions';
function SCVLANInterfaceSetPhysicalInterfaceAndTag(vlan: SCVLANInterfaceRef;
physical: SCNetworkInterfaceRef; tag: CFNumberRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCVLANInterfaceSetPhysicalInterfaceAndTag';
function SCVLANInterfaceSetLocalizedDisplayName(vlan: SCVLANInterfaceRef;
newName: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCVLANInterfaceSetLocalizedDisplayName';
function SCVLANInterfaceSetOptions(vlan: SCVLANInterfaceRef;
newOptions: CFDictionaryRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCVLANInterfaceSetOptions';
function SCNetworkProtocolGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkProtocolGetTypeID';
function SCNetworkProtocolGetConfiguration(protocol: SCNetworkProtocolRef)
: CFDictionaryRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkProtocolGetConfiguration';
function SCNetworkProtocolGetEnabled(protocol: SCNetworkProtocolRef): Boolean;
cdecl; external libSystemConfiguration name _PU +
'SCNetworkProtocolGetEnabled';
function SCNetworkProtocolGetProtocolType(protocol: SCNetworkProtocolRef)
: CFStringRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkProtocolGetProtocolType';
function SCNetworkProtocolSetConfiguration(protocol: SCNetworkProtocolRef;
config: CFDictionaryRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkProtocolSetConfiguration';
function SCNetworkProtocolSetEnabled(protocol: SCNetworkProtocolRef;
enabled: Boolean): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkProtocolSetEnabled';
function SCNetworkServiceGetTypeID: CFTypeID; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkServiceGetTypeID';
function SCNetworkServiceAddProtocolType(service: SCNetworkServiceRef;
protocolType: CFStringRef): Boolean; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkServiceAddProtocolType';
function SCNetworkServiceCopyAll(prefs: SCPreferencesRef): CFArrayRef; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkServiceCopyAll';
function SCNetworkServiceCopyProtocols(service: SCNetworkServiceRef)
: CFArrayRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkServiceCopyProtocols';
function SCNetworkServiceCreate(prefs: SCPreferencesRef;
&interface: SCNetworkInterfaceRef): SCNetworkServiceRef; cdecl;
external libSystemConfiguration name _PU + 'SCNetworkServiceCreate';
function SCNetworkServiceCopy(prefs: SCPreferencesRef; serviceID: CFStringRef)
: SCNetworkServiceRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkServiceCopy';
function SCNetworkServiceEstablishDefaultConfiguration
(service: SCNetworkServiceRef): Boolean; cdecl;
external libSystemConfiguration name _PU +
'SCNetworkServiceEstablishDefaultConfiguration';
function SCNetworkServiceGetEnabled(service: SCNetworkServiceRef): Boolean;
cdecl; external libSystemConfiguration name _PU +
'SCNetworkServiceGetEnabled';
function SCNetworkServiceGetInterface(service: SCNetworkServiceRef)
: SCNetworkInterfaceRef; cdecl; external libSystemConfiguration name _PU +
'SCNetworkServiceGetInterface';
function SCNetworkServiceGetName(service: SCNetworkServiceRef): CFStringRef;
cdecl; external libSystemConfiguration name _PU + 'SCNetworkServiceGetName';
function SCNetworkServiceCopyProtocol(service: SCNetworkServiceRef;
protocolType: CFStringRef): SCNetworkProtocolRef; cdecl;