-
Notifications
You must be signed in to change notification settings - Fork 7
/
wininet.d
6294 lines (5883 loc) · 451 KB
/
wininet.d
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
// Written in the D programming language.
module windows.wininet;
public import windows.core;
public import windows.automation : BSTR;
public import windows.com : HRESULT, IUnknown;
public import windows.filesystem : WIN32_FIND_DATAA, WIN32_FIND_DATAW;
public import windows.gdi : HBITMAP;
public import windows.security : CERT_CHAIN_CONTEXT, CERT_CONTEXT, SecPkgContext_Bindings,
SecPkgContext_CipherInfo, SecPkgContext_ConnectionInfo;
public import windows.systemservices : BOOL, HANDLE, HINSTANCE, PSTR, PWSTR;
public import windows.winrt : IInspectable;
public import windows.windowsandmessaging : HWND;
public import windows.windowsprogramming : FILETIME, SYSTEMTIME;
extern(Windows) @nogc nothrow:
// Enums
///Defines the flags used with the <b>nScheme</b> member of the URL_COMPONENTS structure.
alias INTERNET_SCHEME = int;
enum : int
{
///Partial URL.
INTERNET_SCHEME_PARTIAL = 0xfffffffe,
///Unknown URL scheme.
INTERNET_SCHEME_UNKNOWN = 0xffffffff,
///Default URL scheme.
INTERNET_SCHEME_DEFAULT = 0x00000000,
///FTP URL scheme (ftp:).
INTERNET_SCHEME_FTP = 0x00000001,
///Gopher URL scheme (gopher:). <div class="alert"><b>Note</b> Windows XP and Windows Server 2003 R2 and earlier
///only.</div> <div> </div>
INTERNET_SCHEME_GOPHER = 0x00000002,
///HTTP URL scheme (http:).
INTERNET_SCHEME_HTTP = 0x00000003,
///HTTPS URL scheme (https:).
INTERNET_SCHEME_HTTPS = 0x00000004,
///File URL scheme (file:).
INTERNET_SCHEME_FILE = 0x00000005,
///News URL scheme (news:).
INTERNET_SCHEME_NEWS = 0x00000006,
///Mail URL scheme (mailto:).
INTERNET_SCHEME_MAILTO = 0x00000007,
///Socks URL scheme (socks:).
INTERNET_SCHEME_SOCKS = 0x00000008,
///JScript URL scheme (javascript:).
INTERNET_SCHEME_JAVASCRIPT = 0x00000009,
///VBScript URL scheme (vbscript:).
INTERNET_SCHEME_VBSCRIPT = 0x0000000a,
///Resource URL scheme (res:).
INTERNET_SCHEME_RES = 0x0000000b,
///Lowest known scheme value.
INTERNET_SCHEME_FIRST = 0x00000001,
///Highest known scheme value.
INTERNET_SCHEME_LAST = 0x0000000b,
}
///The <b>InternetCookieState</b> enumeration defines the state of the cookie.
enum InternetCookieState : int
{
///Reserved.
COOKIE_STATE_UNKNOWN = 0x00000000,
///The cookies are accepted.
COOKIE_STATE_ACCEPT = 0x00000001,
///The user is prompted to accept or deny the cookie.
COOKIE_STATE_PROMPT = 0x00000002,
///Cookies are accepted only in the first-party context.
COOKIE_STATE_LEASH = 0x00000003,
///Cookies are accepted and become session cookies.
COOKIE_STATE_DOWNGRADE = 0x00000004,
///The cookies are rejected.
COOKIE_STATE_REJECT = 0x00000005,
///Same as <b>COOKIE_STATE_REJECT</b>.
COOKIE_STATE_MAX = 0x00000005,
}
alias WPAD_CACHE_DELETE = int;
enum : int
{
WPAD_CACHE_DELETE_CURRENT = 0x00000000,
WPAD_CACHE_DELETE_ALL = 0x00000001,
}
alias FORTCMD = int;
enum : int
{
FORTCMD_LOGON = 0x00000001,
FORTCMD_LOGOFF = 0x00000002,
FORTCMD_CHG_PERSONALITY = 0x00000003,
}
alias FORTSTAT = int;
enum : int
{
FORTSTAT_INSTALLED = 0x00000001,
FORTSTAT_LOGGEDON = 0x00000002,
}
alias REQUEST_TIMES = int;
enum : int
{
NameResolutionStart = 0x00000000,
NameResolutionEnd = 0x00000001,
ConnectionEstablishmentStart = 0x00000002,
ConnectionEstablishmentEnd = 0x00000003,
TLSHandshakeStart = 0x00000004,
TLSHandshakeEnd = 0x00000005,
HttpRequestTimeMax = 0x00000020,
}
alias HTTP_PUSH_WAIT_TYPE = int;
enum : int
{
HttpPushWaitEnableComplete = 0x00000000,
HttpPushWaitReceiveComplete = 0x00000001,
HttpPushWaitSendComplete = 0x00000002,
}
alias WININET_SYNC_MODE = int;
enum : int
{
WININET_SYNC_MODE_NEVER = 0x00000000,
WININET_SYNC_MODE_ON_EXPIRY = 0x00000001,
WININET_SYNC_MODE_ONCE_PER_SESSION = 0x00000002,
WININET_SYNC_MODE_ALWAYS = 0x00000003,
WININET_SYNC_MODE_AUTOMATIC = 0x00000004,
WININET_SYNC_MODE_DEFAULT = 0x00000004,
}
alias APP_CACHE_STATE = int;
enum : int
{
AppCacheStateNoUpdateNeeded = 0x00000000,
AppCacheStateUpdateNeeded = 0x00000001,
AppCacheStateUpdateNeededNew = 0x00000002,
AppCacheStateUpdateNeededMasterOnly = 0x00000003,
}
alias APP_CACHE_FINALIZE_STATE = int;
enum : int
{
AppCacheFinalizeStateIncomplete = 0x00000000,
AppCacheFinalizeStateManifestChange = 0x00000001,
AppCacheFinalizeStateComplete = 0x00000002,
}
alias URL_CACHE_LIMIT_TYPE = int;
enum : int
{
UrlCacheLimitTypeIE = 0x00000000,
UrlCacheLimitTypeIETotal = 0x00000001,
UrlCacheLimitTypeAppContainer = 0x00000002,
UrlCacheLimitTypeAppContainerTotal = 0x00000003,
UrlCacheLimitTypeNum = 0x00000004,
}
alias HTTP_WEB_SOCKET_OPERATION = int;
enum : int
{
HTTP_WEB_SOCKET_SEND_OPERATION = 0x00000000,
HTTP_WEB_SOCKET_RECEIVE_OPERATION = 0x00000001,
HTTP_WEB_SOCKET_CLOSE_OPERATION = 0x00000002,
HTTP_WEB_SOCKET_SHUTDOWN_OPERATION = 0x00000003,
}
alias HTTP_WEB_SOCKET_BUFFER_TYPE = int;
enum : int
{
HTTP_WEB_SOCKET_BINARY_MESSAGE_TYPE = 0x00000000,
HTTP_WEB_SOCKET_BINARY_FRAGMENT_TYPE = 0x00000001,
HTTP_WEB_SOCKET_UTF8_MESSAGE_TYPE = 0x00000002,
HTTP_WEB_SOCKET_UTF8_FRAGMENT_TYPE = 0x00000003,
HTTP_WEB_SOCKET_CLOSE_TYPE = 0x00000004,
HTTP_WEB_SOCKET_PING_TYPE = 0x00000005,
}
alias HTTP_WEB_SOCKET_CLOSE_STATUS = int;
enum : int
{
HTTP_WEB_SOCKET_SUCCESS_CLOSE_STATUS = 0x000003e8,
HTTP_WEB_SOCKET_ENDPOINT_TERMINATED_CLOSE_STATUS = 0x000003e9,
HTTP_WEB_SOCKET_PROTOCOL_ERROR_CLOSE_STATUS = 0x000003ea,
HTTP_WEB_SOCKET_INVALID_DATA_TYPE_CLOSE_STATUS = 0x000003eb,
HTTP_WEB_SOCKET_EMPTY_CLOSE_STATUS = 0x000003ed,
HTTP_WEB_SOCKET_ABORTED_CLOSE_STATUS = 0x000003ee,
HTTP_WEB_SOCKET_INVALID_PAYLOAD_CLOSE_STATUS = 0x000003ef,
HTTP_WEB_SOCKET_POLICY_VIOLATION_CLOSE_STATUS = 0x000003f0,
HTTP_WEB_SOCKET_MESSAGE_TOO_BIG_CLOSE_STATUS = 0x000003f1,
HTTP_WEB_SOCKET_UNSUPPORTED_EXTENSIONS_CLOSE_STATUS = 0x000003f2,
HTTP_WEB_SOCKET_SERVER_ERROR_CLOSE_STATUS = 0x000003f3,
HTTP_WEB_SOCKET_SECURE_HANDSHAKE_ERROR_CLOSE_STATUS = 0x000003f7,
}
// Callbacks
///Prototype for an application-defined status callback function. The <b>INTERNET_STATUS_CALLBACK</b> type defines a
///pointer to this callback function.<i>InternetStatusCallback</i> is a placeholder for the application-defined function
///name.
///Params:
/// hInternet = The handle for which the callback function is called.
/// dwContext = A pointer to a variable that specifies the application-defined context value associated with <i>hInternet</i>.
/// dwInternetStatus = A status code that indicates why the callback function is called. This parameter can be one of the following
/// values. <table> <tr> <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_CLOSING_CONNECTION"></a><a id="internet_status_closing_connection"></a><dl>
/// <dt><b>INTERNET_STATUS_CLOSING_CONNECTION</b></dt> </dl> </td> <td width="60%"> Closing the connection to the
/// server. The <i>lpvStatusInformation</i> parameter is <b>NULL</b>. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_CONNECTED_TO_SERVER"></a><a id="internet_status_connected_to_server"></a><dl>
/// <dt><b>INTERNET_STATUS_CONNECTED_TO_SERVER</b></dt> </dl> </td> <td width="60%"> Successfully connected to the
/// socket address (SOCKADDR) pointed to by <i>lpvStatusInformation</i>. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_CONNECTING_TO_SERVER"></a><a id="internet_status_connecting_to_server"></a><dl>
/// <dt><b>INTERNET_STATUS_CONNECTING_TO_SERVER</b></dt> </dl> </td> <td width="60%"> Connecting to the socket
/// address (SOCKADDR) pointed to by <i>lpvStatusInformation</i>. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_CONNECTION_CLOSED"></a><a id="internet_status_connection_closed"></a><dl>
/// <dt><b>INTERNET_STATUS_CONNECTION_CLOSED</b></dt> </dl> </td> <td width="60%"> Successfully closed the connection
/// to the server. The <i>lpvStatusInformation</i> parameter is <b>NULL</b>. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_COOKIE_HISTORY"></a><a id="internet_status_cookie_history"></a><dl>
/// <dt><b>INTERNET_STATUS_COOKIE_HISTORY</b></dt> </dl> </td> <td width="60%"> Retrieving content from the cache.
/// Contains data about past cookie events for the URL such as if cookies were accepted, rejected, downgraded, or
/// leashed. The <i>lpvStatusInformation</i> parameter is a pointer to an InternetCookieHistory structure. </td>
/// </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_COOKIE_RECEIVED"></a><a
/// id="internet_status_cookie_received"></a><dl> <dt><b>INTERNET_STATUS_COOKIE_RECEIVED</b></dt> </dl> </td> <td
/// width="60%"> Indicates the number of cookies that were accepted, rejected, downgraded (changed from persistent to
/// session cookies), or leashed (will be sent out only in 1st party context). The <i>lpvStatusInformation</i>
/// parameter is a <b>DWORD</b> with the number of cookies received. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_COOKIE_SENT"></a><a id="internet_status_cookie_sent"></a><dl>
/// <dt><b>INTERNET_STATUS_COOKIE_SENT</b></dt> </dl> </td> <td width="60%"> Indicates the number of cookies that
/// were either sent or suppressed, when a request is sent. The <i>lpvStatusInformation</i> parameter is a
/// <b>DWORD</b> with the number of cookies sent or suppressed. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_CTL_RESPONSE_RECEIVED"></a><a id="internet_status_ctl_response_received"></a><dl>
/// <dt><b>INTERNET_STATUS_CTL_RESPONSE_RECEIVED</b></dt> </dl> </td> <td width="60%"> Not implemented. </td> </tr>
/// <tr> <td width="40%"><a id="INTERNET_STATUS_DETECTING_PROXY"></a><a id="internet_status_detecting_proxy"></a><dl>
/// <dt><b>INTERNET_STATUS_DETECTING_PROXY</b></dt> </dl> </td> <td width="60%"> Notifies the client application that
/// a proxy has been detected. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_HANDLE_CLOSING"></a><a
/// id="internet_status_handle_closing"></a><dl> <dt><b>INTERNET_STATUS_HANDLE_CLOSING</b></dt> </dl> </td> <td
/// width="60%"> This handle value has been terminated. pvStatusInformation contains the address of the handle being
/// closed. The <i>lpvStatusInformation</i> parameter contains the address of the handle being closed. </td> </tr>
/// <tr> <td width="40%"><a id="INTERNET_STATUS_HANDLE_CREATED"></a><a id="internet_status_handle_created"></a><dl>
/// <dt><b>INTERNET_STATUS_HANDLE_CREATED</b></dt> </dl> </td> <td width="60%"> Used by InternetConnect to indicate
/// it has created the new handle. This lets the application call InternetCloseHandle from another thread, if the
/// connect is taking too long. The <i>lpvStatusInformation</i> parameter contains the address of an HINTERNET
/// handle. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_INTERMEDIATE_RESPONSE"></a><a
/// id="internet_status_intermediate_response"></a><dl> <dt><b>INTERNET_STATUS_INTERMEDIATE_RESPONSE</b></dt> </dl>
/// </td> <td width="60%"> Received an intermediate (100 level) status code message from the server. </td> </tr> <tr>
/// <td width="40%"><a id="INTERNET_STATUS_NAME_RESOLVED"></a><a id="internet_status_name_resolved"></a><dl>
/// <dt><b>INTERNET_STATUS_NAME_RESOLVED</b></dt> </dl> </td> <td width="60%"> Successfully found the IP address of
/// the name contained in <i>lpvStatusInformation</i>. The <i>lpvStatusInformation</i> parameter points to a
/// <b>PCTSTR</b> containing the host name. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_P3P_HEADER"></a><a id="internet_status_p3p_header"></a><dl>
/// <dt><b>INTERNET_STATUS_P3P_HEADER</b></dt> </dl> </td> <td width="60%"> The response has a P3P header in it.
/// </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_P3P_POLICYREF"></a><a
/// id="internet_status_p3p_policyref"></a><dl> <dt><b>INTERNET_STATUS_P3P_POLICYREF</b></dt> </dl> </td> <td
/// width="60%"> Not implemented. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_PREFETCH"></a><a
/// id="internet_status_prefetch"></a><dl> <dt><b>INTERNET_STATUS_PREFETCH</b></dt> </dl> </td> <td width="60%"> Not
/// implemented. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_PRIVACY_IMPACTED_"></a><a
/// id="internet_status_privacy_impacted_"></a><dl> <dt><b>INTERNET_STATUS_PRIVACY_IMPACTED </b></dt> </dl> </td> <td
/// width="60%"> Not implemented. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_RECEIVING_RESPONSE"></a><a
/// id="internet_status_receiving_response"></a><dl> <dt><b>INTERNET_STATUS_RECEIVING_RESPONSE</b></dt> </dl> </td>
/// <td width="60%"> Waiting for the server to respond to a request. The <i>lpvStatusInformation</i> parameter is
/// <b>NULL</b>. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_REDIRECT"></a><a
/// id="internet_status_redirect"></a><dl> <dt><b>INTERNET_STATUS_REDIRECT</b></dt> </dl> </td> <td width="60%"> An
/// HTTP request is about to automatically redirect the request. The <i>lpvStatusInformation</i> parameter points to
/// the new URL. At this point, the application can read any data returned by the server with the redirect response
/// and can query the response headers. It can also cancel the operation by closing the handle. This callback is not
/// made if the original request specified INTERNET_FLAG_NO_AUTO_REDIRECT. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_REQUEST_COMPLETE"></a><a id="internet_status_request_complete"></a><dl>
/// <dt><b>INTERNET_STATUS_REQUEST_COMPLETE</b></dt> </dl> </td> <td width="60%"> An asynchronous operation has been
/// completed. The <i>lpvStatusInformation</i> parameter contains the address of an INTERNET_ASYNC_RESULT structure.
/// </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_REQUEST_SENT"></a><a
/// id="internet_status_request_sent"></a><dl> <dt><b>INTERNET_STATUS_REQUEST_SENT</b></dt> </dl> </td> <td
/// width="60%"> Successfully sent the information request to the server. The <i>lpvStatusInformation</i> parameter
/// points to a <b>DWORD</b> value that contains the number of bytes sent. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_RESOLVING_NAME"></a><a id="internet_status_resolving_name"></a><dl>
/// <dt><b>INTERNET_STATUS_RESOLVING_NAME</b></dt> </dl> </td> <td width="60%"> Looking up the IP address of the name
/// contained in <i>lpvStatusInformation</i>. The <i>lpvStatusInformation</i> parameter points to a <b>PCTSTR</b>
/// containing the host name. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_RESPONSE_RECEIVED"></a><a
/// id="internet_status_response_received"></a><dl> <dt><b>INTERNET_STATUS_RESPONSE_RECEIVED</b></dt> </dl> </td> <td
/// width="60%"> Successfully received a response from the server. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_SENDING_REQUEST"></a><a id="internet_status_sending_request"></a><dl>
/// <dt><b>INTERNET_STATUS_SENDING_REQUEST</b></dt> </dl> </td> <td width="60%"> Sending the information request to
/// the server. The <i>lpvStatusInformation</i> parameter is <b>NULL</b>. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATUS_STATE_CHANGE"></a><a id="internet_status_state_change"></a><dl>
/// <dt><b>INTERNET_STATUS_STATE_CHANGE</b></dt> </dl> </td> <td width="60%"> Moved between a secure (HTTPS) and a
/// nonsecure (HTTP) site. The user must be informed of this change; otherwise, the user is at risk of disclosing
/// sensitive information involuntarily. When this flag is set, the <i>lpvStatusInformation</i> parameter points to a
/// status DWORD that contains additional flags. </td> </tr> </table>
/// lpvStatusInformation = A pointer to additional status information. When the <b>INTERNET_STATUS_STATE_CHANGE</b> flag is set,
/// <i>lpvStatusInformation</i> points to a <b>DWORD</b> that contains one or more of the following flags: <table>
/// <tr> <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a id="INTERNET_STATE_CONNECTED"></a><a
/// id="internet_state_connected"></a><dl> <dt><b>INTERNET_STATE_CONNECTED</b></dt> </dl> </td> <td width="60%">
/// Connected state. Mutually exclusive with disconnected state. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATE_DISCONNECTED"></a><a id="internet_state_disconnected"></a><dl>
/// <dt><b>INTERNET_STATE_DISCONNECTED</b></dt> </dl> </td> <td width="60%"> Disconnected state. No network
/// connection could be established. </td> </tr> <tr> <td width="40%"><a
/// id="INTERNET_STATE_DISCONNECTED_BY_USER"></a><a id="internet_state_disconnected_by_user"></a><dl>
/// <dt><b>INTERNET_STATE_DISCONNECTED_BY_USER</b></dt> </dl> </td> <td width="60%"> Disconnected by user request.
/// </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATE_IDLE"></a><a id="internet_state_idle"></a><dl>
/// <dt><b>INTERNET_STATE_IDLE</b></dt> </dl> </td> <td width="60%"> No network requests are being made by Windows
/// Internet. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATE_BUSY"></a><a id="internet_state_busy"></a><dl>
/// <dt><b>INTERNET_STATE_BUSY</b></dt> </dl> </td> <td width="60%"> Network requests are being made by Windows
/// Internet. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATUS_USER_INPUT_REQUIRED"></a><a
/// id="internet_status_user_input_required"></a><dl> <dt><b>INTERNET_STATUS_USER_INPUT_REQUIRED</b></dt> </dl> </td>
/// <td width="60%"> The request requires user input to be completed. </td> </tr> </table>
/// dwStatusInformationLength = The size, in bytes, of the data pointed to by <i>lpvStatusInformation</i>.
alias INTERNET_STATUS_CALLBACK = void function(void* hInternet, size_t dwContext, uint dwInternetStatus,
void* lpvStatusInformation, uint dwStatusInformationLength);
alias LPINTERNET_STATUS_CALLBACK = void function();
///<p class="CCE_Message">[The <i>GopherAttributeEnumerator</i> function is available for use in the operating systems
///specified in the Requirements section.] Prototype for a callback function that processes attribute information from a
///Gopher server. This callback function is installed by a call to the GopherGetAttribute function. The
///<b>GOPHER_ATTRIBUTE_ENUMERATOR</b> type defines a pointer to this callback function. <i>GopherAttributeEnumerator</i>
///is a placeholder for the application-defined function name.
///Params:
/// lpAttributeInfo = Pointer to a GOPHER_ATTRIBUTE_TYPE structure. The <i>lpBuffer</i> parameter of GopherGetAttribute is used for
/// storing this structure. The <i>lpBuffer</i> size must be equal to or greater than the value of
/// MIN_GOPHER_ATTRIBUTE_LENGTH.
/// dwError = Error value. This parameter is NO_ERROR if the attribute was parsed and written to the buffer successfully. If a
/// problem was encountered, an error value is returned.
///Returns:
/// Return <b>TRUE</b> to continue the enumeration, or <b>FALSE</b> to stop it immediately. This function is
/// primarily used for returning the results of a Gopher+ ASK item.
///
alias GOPHER_ATTRIBUTE_ENUMERATOR = BOOL function(GOPHER_ATTRIBUTE_TYPE* lpAttributeInfo, uint dwError);
alias PFN_AUTH_NOTIFY = uint function(size_t param0, uint param1, void* param2);
alias pfnInternetInitializeAutoProxyDll = BOOL function(uint dwVersion, PSTR lpszDownloadedTempFile, PSTR lpszMime,
AutoProxyHelperFunctions* lpAutoProxyCallbacks,
AUTO_PROXY_SCRIPT_BUFFER* lpAutoProxyScriptBuffer);
alias pfnInternetDeInitializeAutoProxyDll = BOOL function(PSTR lpszMime, uint dwReserved);
alias pfnInternetGetProxyInfo = BOOL function(const(PSTR) lpszUrl, uint dwUrlLength, PSTR lpszUrlHostName,
uint dwUrlHostNameLength, PSTR* lplpszProxyHostName,
uint* lpdwProxyHostNameLength);
alias PFN_DIAL_HANDLER = uint function(HWND param0, const(PSTR) param1, uint param2, uint* param3);
alias CACHE_OPERATOR = BOOL function(INTERNET_CACHE_ENTRY_INFOA* pcei, uint* pcbcei, void* pOpData);
// Structs
///Contains the global HTTP version.
struct HTTP_VERSION_INFO
{
///The major version number. Must be 1.
uint dwMajorVersion;
///The minor version number. Can be either 1 or zero.
uint dwMinorVersion;
}
///Contains the result of a call to an asynchronous function. This structure is used with InternetStatusCallback.
struct INTERNET_ASYNC_RESULT
{
///Result. This parameter can be an HINTERNET handle, unsigned long integer, or Boolean return code from an
///asynchronous function.
size_t dwResult;
///Error code, if <b>dwResult</b> indicates that the function failed. If the operation succeeded, this member
///usually contains ERROR_SUCCESS.
uint dwError;
}
///The <b>INTERNET_DIAGNOSTIC_SOCKET_INFO</b> structure is returned by the InternetQueryOption function when the
///INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO flag is passed to it together with a handle to an HTTP Request. The
///<b>INTERNET_DIAGNOSTIC_SOCKET_INFO</b> structure contains information about the socket associated with that HTTP
///Request.
struct INTERNET_DIAGNOSTIC_SOCKET_INFO
{
///Descriptor that identifies the socket associated with the specified HTTP Request.
size_t Socket;
///The address of the port at which the HTTP Request and response was received.
uint SourcePort;
///The address of the port at which the response was sent.
uint DestPort;
///<table> <tr> <th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a id="IDSI_FLAG_KEEP_ALIVE"></a><a
///id="idsi_flag_keep_alive"></a><dl> <dt><b>IDSI_FLAG_KEEP_ALIVE</b></dt> </dl> </td> <td width="60%"> Set if the
///connection is from the "keep-alive" pool. </td> </tr> <tr> <td width="40%"><a id="IDSI_FLAG_SECURE"></a><a
///id="idsi_flag_secure"></a><dl> <dt><b>IDSI_FLAG_SECURE</b></dt> </dl> </td> <td width="60%"> Set if the HTTP
///Request is using a secure socket. </td> </tr> <tr> <td width="40%"><a id="IDSI_FLAG_PROXY"></a><a
///id="idsi_flag_proxy"></a><dl> <dt><b>IDSI_FLAG_PROXY</b></dt> </dl> </td> <td width="60%"> Set if a proxy is
///being used to reach the server. </td> </tr> <tr> <td width="40%"><a id="IDSI_FLAG_TUNNEL"></a><a
///id="idsi_flag_tunnel"></a><dl> <dt><b>IDSI_FLAG_TUNNEL</b></dt> </dl> </td> <td width="60%"> Set if a proxy is
///being used to create a tunnel. </td> </tr> </table>
uint Flags;
}
///Contains information that is supplied with the INTERNET_OPTION_PROXY value to get or set proxy information on a
///handle obtained from a call to the InternetOpen function.
struct INTERNET_PROXY_INFO
{
///Access type. This member can be one of the following values. <table> <tr> <th>Value</th> <th>Meaning</th> </tr>
///<tr> <td width="40%"><a id="INTERNET_OPEN_TYPE_DIRECT"></a><a id="internet_open_type_direct"></a><dl>
///<dt><b>INTERNET_OPEN_TYPE_DIRECT</b></dt> </dl> </td> <td width="60%"> Internet accessed through a direct
///connection. </td> </tr> <tr> <td width="40%"><a id="INTERNET_OPEN_TYPE_PRECONFIG"></a><a
///id="internet_open_type_preconfig"></a><dl> <dt><b>INTERNET_OPEN_TYPE_PRECONFIG</b></dt> </dl> </td> <td
///width="60%"> Applies only when setting proxy information. </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_OPEN_TYPE_PROXY"></a><a id="internet_open_type_proxy"></a><dl>
///<dt><b>INTERNET_OPEN_TYPE_PROXY</b></dt> </dl> </td> <td width="60%"> Internet accessed using a proxy. </td>
///</tr> </table>
uint dwAccessType;
///Pointer to a string that contains the proxy server list.
byte* lpszProxy;
///Pointer to a string that contains the proxy bypass list.
byte* lpszProxyBypass;
}
///Contains the value of an option.
struct INTERNET_PER_CONN_OPTIONA
{
///Option to be queried or set. This member can be one of the following values. <table> <tr> <th>Value</th>
///<th>Meaning</th> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_URL"></a><a
///id="internet_per_conn_autoconfig_url"></a><dl> <dt><b>INTERNET_PER_CONN_AUTOCONFIG_URL</b></dt> </dl> </td> <td
///width="60%"> Sets or retrieves a string containing the URL to the automatic configuration script. </td> </tr>
///<tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTODISCOVERY_FLAGS"></a><a
///id="internet_per_conn_autodiscovery_flags"></a><dl> <dt><b>INTERNET_PER_CONN_AUTODISCOVERY_FLAGS</b></dt> </dl>
///</td> <td width="60%"> Sets or retrieves the automatic discovery settings. The <b>Value</b> member will contain
///one or more of the following values: <dl> <dt>AUTO_PROXY_FLAG_ALWAYS_DETECT</dt> <dd> Always automatically detect
///settings. </dd> <dt>AUTO_PROXY_FLAG_CACHE_INIT_RUN</dt> <dd> Indicates that the cached results of the automatic
///proxy configuration script should be used, instead of actually running the script, unless the cached file has
///expired. </dd> <dt>AUTO_PROXY_FLAG_DETECTION_RUN</dt> <dd> Automatic detection has been run at least once on this
///connection. </dd> <dt>AUTO_PROXY_FLAG_DETECTION_SUSPECT</dt> <dd> Not currently supported. </dd>
///<dt>AUTO_PROXY_FLAG_DONT_CACHE_PROXY_RESULT</dt> <dd> Do not allow the caching of the result of the automatic
///proxy configuration script. </dd> <dt>AUTO_PROXY_FLAG_MIGRATED</dt> <dd> The setting was migrated from a
///Microsoft Internet Explorer 4.0 installation, and automatic detection should be attempted once. </dd>
///<dt>AUTO_PROXY_FLAG_USER_SET</dt> <dd> The user has explicitly set the automatic detection. </dd> </dl> </td>
///</tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_FLAGS"></a><a id="internet_per_conn_flags"></a><dl>
///<dt><b>INTERNET_PER_CONN_FLAGS</b></dt> </dl> </td> <td width="60%"> Sets or retrieves the connection type. The
///<b>Value</b> member will contain one or more of the following values: <dl> <dt>PROXY_TYPE_DIRECT</dt> <dd> The
///connection does not use a proxy server. </dd> <dt>PROXY_TYPE_PROXY</dt> <dd> The connection uses an explicitly
///set proxy server. </dd> <dt>PROXY_TYPE_AUTO_PROXY_URL</dt> <dd> The connection downloads and processes an
///automatic configuration script at a specified URL. </dd> <dt>PROXY_TYPE_AUTO_DETECT</dt> <dd> The connection
///automatically detects settings. </dd> </dl> </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_PER_CONN_PROXY_BYPASS"></a><a id="internet_per_conn_proxy_bypass"></a><dl>
///<dt><b>INTERNET_PER_CONN_PROXY_BYPASS</b></dt> </dl> </td> <td width="60%"> Sets or retrieves a string containing
///the URLs that do not use the proxy server. </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_PER_CONN_PROXY_SERVER"></a><a id="internet_per_conn_proxy_server"></a><dl>
///<dt><b>INTERNET_PER_CONN_PROXY_SERVER</b></dt> </dl> </td> <td width="60%"> Sets or retrieves a string containing
///the proxy servers. </td> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL"></a><a
///id="internet_per_conn_autoconfig_secondary_url"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL</b></dt> </dl> </td> <td width="60%"> Chained autoconfig URL.
///Used when the primary autoconfig URL points to an INS file that sets a second autoconfig URL for proxy
///information. </td> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS"></a><a
///id="internet_per_conn_autoconfig_reload_delay_mins"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS</b></dt> </dl> </td> <td width="60%"> of minutes until
///automatic refresh of autoconfig URL by autodiscovery. </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME"></a><a
///id="internet_per_conn_autoconfig_last_detect_time"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME</b></dt> </dl> </td> <td width="60%"> Read only option.
///Returns the time the last known good autoconfig URL was found using autodiscovery. </td> </tr> <tr> <td
///width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL"></a><a
///id="internet_per_conn_autoconfig_last_detect_url"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL</b></dt> </dl> </td> <td width="60%"> Read only option.
///Returns the last known good URL found using autodiscovery. </td> </tr> </table> <b>Windows 7 and later: </b><p
///class="note">Clients that support Internet Explorer 8 should query the connection type using
///<b>INTERNET_PER_CONN_FLAGS_UI</b>. If this query fails, then the system is running a previous version of Internet
///Explorer and the client should query again with <b>INTERNET_PER_CONN_FLAGS</b>. <p class="note">Restore the
///connection type using <b>INTERNET_PER_CONN_FLAGS</b> regardless of the version of Internet Explorer. <table> <tr>
///<th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_FLAGS_UI"></a><a
///id="internet_per_conn_flags_ui"></a><dl> <dt><b>INTERNET_PER_CONN_FLAGS_UI</b></dt> </dl> </td> <td width="60%">
///Sets or retrieves the connection type. The <b>Value</b> member will contain one or more of the following values:
///<dl> <dt>PROXY_TYPE_DIRECT</dt> <dd> The connection does not use a proxy server. </dd> <dt>PROXY_TYPE_PROXY</dt>
///<dd> The connection uses an explicitly set proxy server. </dd> <dt>PROXY_TYPE_AUTO_PROXY_URL</dt> <dd> The
///connection downloads and processes an automatic configuration script at a specified URL. </dd>
///<dt>PROXY_TYPE_AUTO_DETECT</dt> <dd> The connection automatically detects settings. </dd> </dl> </td> </tr>
///</table>
uint dwOption;
union Value
{
uint dwValue;
PSTR pszValue;
FILETIME ftValue;
}
}
///Contains the value of an option.
struct INTERNET_PER_CONN_OPTIONW
{
///Option to be queried or set. This member can be one of the following values. <table> <tr> <th>Value</th>
///<th>Meaning</th> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_URL"></a><a
///id="internet_per_conn_autoconfig_url"></a><dl> <dt><b>INTERNET_PER_CONN_AUTOCONFIG_URL</b></dt> </dl> </td> <td
///width="60%"> Sets or retrieves a string containing the URL to the automatic configuration script. </td> </tr>
///<tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTODISCOVERY_FLAGS"></a><a
///id="internet_per_conn_autodiscovery_flags"></a><dl> <dt><b>INTERNET_PER_CONN_AUTODISCOVERY_FLAGS</b></dt> </dl>
///</td> <td width="60%"> Sets or retrieves the automatic discovery settings. The <b>Value</b> member will contain
///one or more of the following values: <dl> <dt>AUTO_PROXY_FLAG_ALWAYS_DETECT</dt> <dd> Always automatically detect
///settings. </dd> <dt>AUTO_PROXY_FLAG_CACHE_INIT_RUN</dt> <dd> Indicates that the cached results of the automatic
///proxy configuration script should be used, instead of actually running the script, unless the cached file has
///expired. </dd> <dt>AUTO_PROXY_FLAG_DETECTION_RUN</dt> <dd> Automatic detection has been run at least once on this
///connection. </dd> <dt>AUTO_PROXY_FLAG_DETECTION_SUSPECT</dt> <dd> Not currently supported. </dd>
///<dt>AUTO_PROXY_FLAG_DONT_CACHE_PROXY_RESULT</dt> <dd> Do not allow the caching of the result of the automatic
///proxy configuration script. </dd> <dt>AUTO_PROXY_FLAG_MIGRATED</dt> <dd> The setting was migrated from a
///Microsoft Internet Explorer 4.0 installation, and automatic detection should be attempted once. </dd>
///<dt>AUTO_PROXY_FLAG_USER_SET</dt> <dd> The user has explicitly set the automatic detection. </dd> </dl> </td>
///</tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_FLAGS"></a><a id="internet_per_conn_flags"></a><dl>
///<dt><b>INTERNET_PER_CONN_FLAGS</b></dt> </dl> </td> <td width="60%"> Sets or retrieves the connection type. The
///<b>Value</b> member will contain one or more of the following values: <dl> <dt>PROXY_TYPE_DIRECT</dt> <dd> The
///connection does not use a proxy server. </dd> <dt>PROXY_TYPE_PROXY</dt> <dd> The connection uses an explicitly
///set proxy server. </dd> <dt>PROXY_TYPE_AUTO_PROXY_URL</dt> <dd> The connection downloads and processes an
///automatic configuration script at a specified URL. </dd> <dt>PROXY_TYPE_AUTO_DETECT</dt> <dd> The connection
///automatically detects settings. </dd> </dl> </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_PER_CONN_PROXY_BYPASS"></a><a id="internet_per_conn_proxy_bypass"></a><dl>
///<dt><b>INTERNET_PER_CONN_PROXY_BYPASS</b></dt> </dl> </td> <td width="60%"> Sets or retrieves a string containing
///the URLs that do not use the proxy server. </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_PER_CONN_PROXY_SERVER"></a><a id="internet_per_conn_proxy_server"></a><dl>
///<dt><b>INTERNET_PER_CONN_PROXY_SERVER</b></dt> </dl> </td> <td width="60%"> Sets or retrieves a string containing
///the proxy servers. </td> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL"></a><a
///id="internet_per_conn_autoconfig_secondary_url"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL</b></dt> </dl> </td> <td width="60%"> Chained autoconfig URL.
///Used when the primary autoconfig URL points to an INS file that sets a second autoconfig URL for proxy
///information. </td> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS"></a><a
///id="internet_per_conn_autoconfig_reload_delay_mins"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS</b></dt> </dl> </td> <td width="60%"> of minutes until
///automatic refresh of autoconfig URL by autodiscovery. </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME"></a><a
///id="internet_per_conn_autoconfig_last_detect_time"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME</b></dt> </dl> </td> <td width="60%"> Read only option.
///Returns the time the last known good autoconfig URL was found using autodiscovery. </td> </tr> <tr> <td
///width="40%"><a id="INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL"></a><a
///id="internet_per_conn_autoconfig_last_detect_url"></a><dl>
///<dt><b>INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL</b></dt> </dl> </td> <td width="60%"> Read only option.
///Returns the last known good URL found using autodiscovery. </td> </tr> </table> <b>Windows 7 and later: </b><p
///class="note">Clients that support Internet Explorer 8 should query the connection type using
///<b>INTERNET_PER_CONN_FLAGS_UI</b>. If this query fails, then the system is running a previous version of Internet
///Explorer and the client should query again with <b>INTERNET_PER_CONN_FLAGS</b>. <p class="note">Restore the
///connection type using <b>INTERNET_PER_CONN_FLAGS</b> regardless of the version of Internet Explorer. <table> <tr>
///<th>Value</th> <th>Meaning</th> </tr> <tr> <td width="40%"><a id="INTERNET_PER_CONN_FLAGS_UI"></a><a
///id="internet_per_conn_flags_ui"></a><dl> <dt><b>INTERNET_PER_CONN_FLAGS_UI</b></dt> </dl> </td> <td width="60%">
///Sets or retrieves the connection type. The <b>Value</b> member will contain one or more of the following values:
///<dl> <dt>PROXY_TYPE_DIRECT</dt> <dd> The connection does not use a proxy server. </dd> <dt>PROXY_TYPE_PROXY</dt>
///<dd> The connection uses an explicitly set proxy server. </dd> <dt>PROXY_TYPE_AUTO_PROXY_URL</dt> <dd> The
///connection downloads and processes an automatic configuration script at a specified URL. </dd>
///<dt>PROXY_TYPE_AUTO_DETECT</dt> <dd> The connection automatically detects settings. </dd> </dl> </td> </tr>
///</table>
uint dwOption;
union Value
{
uint dwValue;
PWSTR pszValue;
FILETIME ftValue;
}
}
///Contains the list of options for a particular Internet connection.
struct INTERNET_PER_CONN_OPTION_LISTA
{
///Size of the structure, in bytes.
uint dwSize;
///Pointer to a string that contains the name of the RAS connection or <b>NULL</b>, which indicates the default or
///LAN connection, to set or query options on.
PSTR pszConnection;
///Number of options to query or set.
uint dwOptionCount;
///Options that failed, if an error occurs.
uint dwOptionError;
///Pointer to an array of INTERNET_PER_CONN_OPTION structures containing the options to query or set.
INTERNET_PER_CONN_OPTIONA* pOptions;
}
///Contains the list of options for a particular Internet connection.
struct INTERNET_PER_CONN_OPTION_LISTW
{
///Size of the structure, in bytes.
uint dwSize;
///Pointer to a string that contains the name of the RAS connection or <b>NULL</b>, which indicates the default or
///LAN connection, to set or query options on.
PWSTR pszConnection;
///Number of options to query or set.
uint dwOptionCount;
///Options that failed, if an error occurs.
uint dwOptionError;
///Pointer to an array of INTERNET_PER_CONN_OPTION structures containing the options to query or set.
INTERNET_PER_CONN_OPTIONW* pOptions;
}
///Contains the HTTP version number of the server. This structure is used when passing the INTERNET_OPTION_VERSION flag
///to the InternetQueryOption function.
struct INTERNET_VERSION_INFO
{
///Major version number.
uint dwMajorVersion;
///Minor version number.
uint dwMinorVersion;
}
///Contains the information to set the global online/offline state.
struct INTERNET_CONNECTED_INFO
{
///State information. This member can be one of the following values. <table> <tr> <th>Value</th> <th>Meaning</th>
///</tr> <tr> <td width="40%"><a id="INTERNET_STATE_CONNECTED"></a><a id="internet_state_connected"></a><dl>
///<dt><b>INTERNET_STATE_CONNECTED</b></dt> </dl> </td> <td width="60%"> Connected to network. Replaces
///INTERNET_STATE_ONLINE. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATE_DISCONNECTED"></a><a
///id="internet_state_disconnected"></a><dl> <dt><b>INTERNET_STATE_DISCONNECTED</b></dt> </dl> </td> <td
///width="60%"> Disconnected from network. Replaces INTERNET_STATE_OFFLINE. </td> </tr> <tr> <td width="40%"><a
///id="INTERNET_STATE_DISCONNECTED_BY_USER"></a><a id="internet_state_disconnected_by_user"></a><dl>
///<dt><b>INTERNET_STATE_DISCONNECTED_BY_USER</b></dt> </dl> </td> <td width="60%"> Disconnected by user request.
///Replaces INTERNET_STATE_OFFLINE_USER. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATE_IDLE"></a><a
///id="internet_state_idle"></a><dl> <dt><b>INTERNET_STATE_IDLE</b></dt> </dl> </td> <td width="60%"> No network
///requests are being made. </td> </tr> <tr> <td width="40%"><a id="INTERNET_STATE_BUSY"></a><a
///id="internet_state_busy"></a><dl> <dt><b>INTERNET_STATE_BUSY</b></dt> </dl> </td> <td width="60%"> Network
///requests are being made. </td> </tr> </table>
uint dwConnectedState;
///Controls the transition between states. This member can be ISO_FORCE_DISCONNECTED, which puts WinINet into
///offline mode. All outstanding requests will be aborted with a canceled error.
uint dwFlags;
}
///Contains the constituent parts of a URL. This structure is used with the InternetCrackUrl and InternetCreateUrl
///functions.
struct URL_COMPONENTSA
{
///Size of this structure, in bytes.
uint dwStructSize;
///Pointer to a string that contains the scheme name.
PSTR lpszScheme;
///Size of the scheme name, in <b>TCHARs</b>.
uint dwSchemeLength;
///INTERNET_SCHEME value that indicates the Internet protocol scheme.
INTERNET_SCHEME nScheme;
///Pointer to a string that contains the host name.
PSTR lpszHostName;
///Size of the host name, in <b>TCHARs</b>.
uint dwHostNameLength;
///Converted port number.
ushort nPort;
///Pointer to a string value that contains the user name.
PSTR lpszUserName;
///Size of the user name, in <b>TCHARs</b>.
uint dwUserNameLength;
///Pointer to a string that contains the password.
PSTR lpszPassword;
///Size of the password, in <b>TCHARs</b>.
uint dwPasswordLength;
///Pointer to a string that contains the URL path.
PSTR lpszUrlPath;
///Size of the URL path, in <b>TCHARs</b>.
uint dwUrlPathLength;
///Pointer to a string that contains the extra information (for example, ?something or
PSTR lpszExtraInfo;
///Size of the extra information, in <b>TCHARs</b>.
uint dwExtraInfoLength;
}
///Contains the constituent parts of a URL. This structure is used with the InternetCrackUrl and InternetCreateUrl
///functions.
struct URL_COMPONENTSW
{
///Size of this structure, in bytes.
uint dwStructSize;
///Pointer to a string that contains the scheme name.
PWSTR lpszScheme;
///Size of the scheme name, in <b>TCHARs</b>.
uint dwSchemeLength;
///INTERNET_SCHEME value that indicates the Internet protocol scheme.
INTERNET_SCHEME nScheme;
///Pointer to a string that contains the host name.
PWSTR lpszHostName;
///Size of the host name, in <b>TCHARs</b>.
uint dwHostNameLength;
///Converted port number.
ushort nPort;
///Pointer to a string value that contains the user name.
PWSTR lpszUserName;
///Size of the user name, in <b>TCHARs</b>.
uint dwUserNameLength;
///Pointer to a string that contains the password.
PWSTR lpszPassword;
///Size of the password, in <b>TCHARs</b>.
uint dwPasswordLength;
///Pointer to a string that contains the URL path.
PWSTR lpszUrlPath;
///Size of the URL path, in <b>TCHARs</b>.
uint dwUrlPathLength;
///Pointer to a string that contains the extra information (for example, ?something or
PWSTR lpszExtraInfo;
///Size of the extra information, in <b>TCHARs</b>.
uint dwExtraInfoLength;
}
///Contains certificate information returned from the server. This structure is used by the InternetQueryOption
///function.
struct INTERNET_CERTIFICATE_INFO
{
///FILETIME structure that contains the date the certificate expires.
FILETIME ftExpiry;
///FILETIME structure that contains the date the certificate becomes valid.
FILETIME ftStart;
///Pointer to a buffer that contains the name of the organization, site, and server for which the certificate was
///issued. The application must call LocalFree to release the resources allocated for this parameter.
byte* lpszSubjectInfo;
///Pointer to a buffer that contains the name of the organization, site, and server that issued the certificate. The
///application must call LocalFree to release the resources allocated for this parameter.
byte* lpszIssuerInfo;
///Pointer to a buffer that contains the name of the protocol used to provide the secure connection. The application
///must call LocalFree to release the resources allocated for this parameter.
byte* lpszProtocolName;
///Pointer to a buffer that contains the name of the algorithm used for signing the certificate. The application
///must call LocalFree to release the resources allocated for this parameter.
byte* lpszSignatureAlgName;
///Pointer to a buffer that contains the name of the algorithm used for doing encryption over the secure channel
///(SSL/PCT) connection. The application must call LocalFree to release the resources allocated for this parameter.
byte* lpszEncryptionAlgName;
///Size, in <b>TCHAR</b>s, of the key.
uint dwKeySize;
}
///Contains both the data and header information.
struct INTERNET_BUFFERSA
{
///Size of the structure, in bytes.
uint dwStructSize;
///Pointer to the next <b>INTERNET_BUFFERS</b> structure.
INTERNET_BUFFERSA* Next;
///Pointer to a string value that contains the headers. This member can be <b>NULL</b>.
const(PSTR) lpcszHeader;
///Size of the headers, in <b>TCHARs</b>, if <b>lpcszHeader</b> is not <b>NULL</b>.
uint dwHeadersLength;
///Size of the headers, if there is not enough memory in the buffer.
uint dwHeadersTotal;
///Pointer to the data buffer.
void* lpvBuffer;
///Size of the buffer, in bytes, if <b>lpvBuffer</b> is not <b>NULL</b>.
uint dwBufferLength;
///Total size of the resource, in bytes.
uint dwBufferTotal;
///Reserved; do not use.
uint dwOffsetLow;
///Reserved; do not use.
uint dwOffsetHigh;
}
///Contains both the data and header information.
struct INTERNET_BUFFERSW
{
///Size of the structure, in bytes.
uint dwStructSize;
///Pointer to the next <b>INTERNET_BUFFERS</b> structure.
INTERNET_BUFFERSW* Next;
///Pointer to a string value that contains the headers. This member can be <b>NULL</b>.
const(PWSTR) lpcszHeader;
///Size of the headers, in <b>TCHARs</b>, if <b>lpcszHeader</b> is not <b>NULL</b>.
uint dwHeadersLength;
///Size of the headers, if there is not enough memory in the buffer.
uint dwHeadersTotal;
///Pointer to the data buffer.
void* lpvBuffer;
///Size of the buffer, in bytes, if <b>lpvBuffer</b> is not <b>NULL</b>.
uint dwBufferLength;
///Total size of the resource, in bytes.
uint dwBufferTotal;
///Reserved; do not use.
uint dwOffsetLow;
///Reserved; do not use.
uint dwOffsetHigh;
}
struct IncomingCookieState
{
int cSession;
int cPersistent;
int cAccepted;
int cLeashed;
int cDowngraded;
int cBlocked;
const(byte)* pszLocation;
}
struct OutgoingCookieState
{
int cSent;
int cSuppressed;
const(byte)* pszLocation;
}
///The <b>InternetCookieHistory</b> structure contains the cookie history.
struct InternetCookieHistory
{
///If true, the cookie was accepted.
BOOL fAccepted;
///If true, the cookie was leashed.
BOOL fLeashed;
///If true, the cookie was downgraded.
BOOL fDowngraded;
///If true, the cookie was rejected.
BOOL fRejected;
}
struct CookieDecision
{
uint dwCookieState;
BOOL fAllowSession;
}
///<p class="CCE_Message">[The <b>GOPHER_FIND_DATA</b> structure is available for use in the operating systems specified
///in the Requirements section.] Contains information retrieved by the GopherFindFirstFile and InternetFindNextFile
///functions.
struct GOPHER_FIND_DATAA
{
///Friendly name of an object. An application can display this string to allow the user to select the object.
byte[129] DisplayString;
///Describes the item returned. This parameter can be one of the following values. <table> <tr> <th>Value</th>
///<th>Meaning</th> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_ASK"></a><a id="gopher_type_ask"></a><dl>
///<dt><b>GOPHER_TYPE_ASK</b></dt> </dl> </td> <td width="60%"> Ask+ item. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_BINARY"></a><a id="gopher_type_binary"></a><dl> <dt><b>GOPHER_TYPE_BINARY</b></dt> </dl> </td>
///<td width="60%"> Binary file. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_BITMAP"></a><a
///id="gopher_type_bitmap"></a><dl> <dt><b>GOPHER_TYPE_BITMAP</b></dt> </dl> </td> <td width="60%"> Bitmap file.
///</td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_CALENDAR"></a><a id="gopher_type_calendar"></a><dl>
///<dt><b>GOPHER_TYPE_CALENDAR</b></dt> </dl> </td> <td width="60%"> Calendar file. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_CSO"></a><a id="gopher_type_cso"></a><dl> <dt><b>GOPHER_TYPE_CSO</b></dt> </dl>
///</td> <td width="60%"> CSO telephone book server. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_DIRECTORY"></a><a id="gopher_type_directory"></a><dl> <dt><b>GOPHER_TYPE_DIRECTORY</b></dt> </dl>
///</td> <td width="60%"> Directory of additional Gopher items. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_DOS_ARCHIVE"></a><a id="gopher_type_dos_archive"></a><dl> <dt><b>GOPHER_TYPE_DOS_ARCHIVE</b></dt>
///</dl> </td> <td width="60%"> MS-DOS archive file. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_ERROR"></a><a id="gopher_type_error"></a><dl> <dt><b>GOPHER_TYPE_ERROR</b></dt> </dl> </td> <td
///width="60%"> Indicator of an error condition. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_GIF"></a><a
///id="gopher_type_gif"></a><dl> <dt><b>GOPHER_TYPE_GIF</b></dt> </dl> </td> <td width="60%"> GIF graphics file.
///</td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_GOPHER_PLUS"></a><a id="gopher_type_gopher_plus"></a><dl>
///<dt><b>GOPHER_TYPE_GOPHER_PLUS</b></dt> </dl> </td> <td width="60%"> Gopher+ item. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_HTML"></a><a id="gopher_type_html"></a><dl> <dt><b>GOPHER_TYPE_HTML</b></dt> </dl>
///</td> <td width="60%"> HTML document. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_IMAGE"></a><a
///id="gopher_type_image"></a><dl> <dt><b>GOPHER_TYPE_IMAGE</b></dt> </dl> </td> <td width="60%"> Image file. </td>
///</tr> <tr> <td width="40%"><a id="GOPHER_TYPE_INDEX_SERVER"></a><a id="gopher_type_index_server"></a><dl>
///<dt><b>GOPHER_TYPE_INDEX_SERVER</b></dt> </dl> </td> <td width="60%"> Index server. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_INLINE"></a><a id="gopher_type_inline"></a><dl> <dt><b>GOPHER_TYPE_INLINE</b></dt>
///</dl> </td> <td width="60%"> Inline file. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_MAC_BINHEX"></a><a
///id="gopher_type_mac_binhex"></a><dl> <dt><b>GOPHER_TYPE_MAC_BINHEX</b></dt> </dl> </td> <td width="60%">
///Macintosh file in BINHEX format. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_MOVIE"></a><a
///id="gopher_type_movie"></a><dl> <dt><b>GOPHER_TYPE_MOVIE</b></dt> </dl> </td> <td width="60%"> Movie file. </td>
///</tr> <tr> <td width="40%"><a id="GOPHER_TYPE_PDF"></a><a id="gopher_type_pdf"></a><dl>
///<dt><b>GOPHER_TYPE_PDF</b></dt> </dl> </td> <td width="60%"> PDF file. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_REDUNDANT"></a><a id="gopher_type_redundant"></a><dl> <dt><b>GOPHER_TYPE_REDUNDANT</b></dt> </dl>
///</td> <td width="60%"> Indicator of a duplicated server. The information contained within is a duplicate of the
///primary server. The primary server is defined as the last directory entry that did not have a
///GOPHER_TYPE_REDUNDANT type. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_SOUND"></a><a
///id="gopher_type_sound"></a><dl> <dt><b>GOPHER_TYPE_SOUND</b></dt> </dl> </td> <td width="60%"> Sound file. </td>
///</tr> <tr> <td width="40%"><a id="GOPHER_TYPE_TELNET"></a><a id="gopher_type_telnet"></a><dl>
///<dt><b>GOPHER_TYPE_TELNET</b></dt> </dl> </td> <td width="60%"> Telnet server. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_TEXT_FILE"></a><a id="gopher_type_text_file"></a><dl>
///<dt><b>GOPHER_TYPE_TEXT_FILE</b></dt> </dl> </td> <td width="60%"> ASCII text file. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_TN3270"></a><a id="gopher_type_tn3270"></a><dl> <dt><b>GOPHER_TYPE_TN3270</b></dt>
///</dl> </td> <td width="60%"> TN3270 server. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_UNIX_UUENCODED"></a><a id="gopher_type_unix_uuencoded"></a><dl>
///<dt><b>GOPHER_TYPE_UNIX_UUENCODED</b></dt> </dl> </td> <td width="60%"> UUENCODED file. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_UNKNOWN"></a><a id="gopher_type_unknown"></a><dl>
///<dt><b>GOPHER_TYPE_UNKNOWN</b></dt> </dl> </td> <td width="60%"> Item type is unknown. </td> </tr> </table>
uint GopherType;
///Low 32 bits of the file size.
uint SizeLow;
///High 32 bits of the file size.
uint SizeHigh;
///FILETIME structure that contains the time when the file was last modified.
FILETIME LastModificationTime;
///File locator. An application can pass the locator string to GopherOpenFile or GopherFindFirstFile.
byte[654] Locator;
}
///<p class="CCE_Message">[The <b>GOPHER_FIND_DATA</b> structure is available for use in the operating systems specified
///in the Requirements section.] Contains information retrieved by the GopherFindFirstFile and InternetFindNextFile
///functions.
struct GOPHER_FIND_DATAW
{
///Friendly name of an object. An application can display this string to allow the user to select the object.
ushort[129] DisplayString;
///Describes the item returned. This parameter can be one of the following values. <table> <tr> <th>Value</th>
///<th>Meaning</th> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_ASK"></a><a id="gopher_type_ask"></a><dl>
///<dt><b>GOPHER_TYPE_ASK</b></dt> </dl> </td> <td width="60%"> Ask+ item. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_BINARY"></a><a id="gopher_type_binary"></a><dl> <dt><b>GOPHER_TYPE_BINARY</b></dt> </dl> </td>
///<td width="60%"> Binary file. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_BITMAP"></a><a
///id="gopher_type_bitmap"></a><dl> <dt><b>GOPHER_TYPE_BITMAP</b></dt> </dl> </td> <td width="60%"> Bitmap file.
///</td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_CALENDAR"></a><a id="gopher_type_calendar"></a><dl>
///<dt><b>GOPHER_TYPE_CALENDAR</b></dt> </dl> </td> <td width="60%"> Calendar file. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_CSO"></a><a id="gopher_type_cso"></a><dl> <dt><b>GOPHER_TYPE_CSO</b></dt> </dl>
///</td> <td width="60%"> CSO telephone book server. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_DIRECTORY"></a><a id="gopher_type_directory"></a><dl> <dt><b>GOPHER_TYPE_DIRECTORY</b></dt> </dl>
///</td> <td width="60%"> Directory of additional Gopher items. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_DOS_ARCHIVE"></a><a id="gopher_type_dos_archive"></a><dl> <dt><b>GOPHER_TYPE_DOS_ARCHIVE</b></dt>
///</dl> </td> <td width="60%"> MS-DOS archive file. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_ERROR"></a><a id="gopher_type_error"></a><dl> <dt><b>GOPHER_TYPE_ERROR</b></dt> </dl> </td> <td
///width="60%"> Indicator of an error condition. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_GIF"></a><a
///id="gopher_type_gif"></a><dl> <dt><b>GOPHER_TYPE_GIF</b></dt> </dl> </td> <td width="60%"> GIF graphics file.
///</td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_GOPHER_PLUS"></a><a id="gopher_type_gopher_plus"></a><dl>
///<dt><b>GOPHER_TYPE_GOPHER_PLUS</b></dt> </dl> </td> <td width="60%"> Gopher+ item. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_HTML"></a><a id="gopher_type_html"></a><dl> <dt><b>GOPHER_TYPE_HTML</b></dt> </dl>
///</td> <td width="60%"> HTML document. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_IMAGE"></a><a
///id="gopher_type_image"></a><dl> <dt><b>GOPHER_TYPE_IMAGE</b></dt> </dl> </td> <td width="60%"> Image file. </td>
///</tr> <tr> <td width="40%"><a id="GOPHER_TYPE_INDEX_SERVER"></a><a id="gopher_type_index_server"></a><dl>
///<dt><b>GOPHER_TYPE_INDEX_SERVER</b></dt> </dl> </td> <td width="60%"> Index server. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_INLINE"></a><a id="gopher_type_inline"></a><dl> <dt><b>GOPHER_TYPE_INLINE</b></dt>
///</dl> </td> <td width="60%"> Inline file. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_MAC_BINHEX"></a><a
///id="gopher_type_mac_binhex"></a><dl> <dt><b>GOPHER_TYPE_MAC_BINHEX</b></dt> </dl> </td> <td width="60%">
///Macintosh file in BINHEX format. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_MOVIE"></a><a
///id="gopher_type_movie"></a><dl> <dt><b>GOPHER_TYPE_MOVIE</b></dt> </dl> </td> <td width="60%"> Movie file. </td>
///</tr> <tr> <td width="40%"><a id="GOPHER_TYPE_PDF"></a><a id="gopher_type_pdf"></a><dl>
///<dt><b>GOPHER_TYPE_PDF</b></dt> </dl> </td> <td width="60%"> PDF file. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_REDUNDANT"></a><a id="gopher_type_redundant"></a><dl> <dt><b>GOPHER_TYPE_REDUNDANT</b></dt> </dl>
///</td> <td width="60%"> Indicator of a duplicated server. The information contained within is a duplicate of the
///primary server. The primary server is defined as the last directory entry that did not have a
///GOPHER_TYPE_REDUNDANT type. </td> </tr> <tr> <td width="40%"><a id="GOPHER_TYPE_SOUND"></a><a
///id="gopher_type_sound"></a><dl> <dt><b>GOPHER_TYPE_SOUND</b></dt> </dl> </td> <td width="60%"> Sound file. </td>
///</tr> <tr> <td width="40%"><a id="GOPHER_TYPE_TELNET"></a><a id="gopher_type_telnet"></a><dl>
///<dt><b>GOPHER_TYPE_TELNET</b></dt> </dl> </td> <td width="60%"> Telnet server. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_TEXT_FILE"></a><a id="gopher_type_text_file"></a><dl>
///<dt><b>GOPHER_TYPE_TEXT_FILE</b></dt> </dl> </td> <td width="60%"> ASCII text file. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_TN3270"></a><a id="gopher_type_tn3270"></a><dl> <dt><b>GOPHER_TYPE_TN3270</b></dt>
///</dl> </td> <td width="60%"> TN3270 server. </td> </tr> <tr> <td width="40%"><a
///id="GOPHER_TYPE_UNIX_UUENCODED"></a><a id="gopher_type_unix_uuencoded"></a><dl>
///<dt><b>GOPHER_TYPE_UNIX_UUENCODED</b></dt> </dl> </td> <td width="60%"> UUENCODED file. </td> </tr> <tr> <td
///width="40%"><a id="GOPHER_TYPE_UNKNOWN"></a><a id="gopher_type_unknown"></a><dl>
///<dt><b>GOPHER_TYPE_UNKNOWN</b></dt> </dl> </td> <td width="60%"> Item type is unknown. </td> </tr> </table>
uint GopherType;
///Low 32 bits of the file size.
uint SizeLow;
///High 32 bits of the file size.
uint SizeHigh;
///FILETIME structure that contains the time when the file was last modified.
FILETIME LastModificationTime;
///File locator. An application can pass the locator string to GopherOpenFile or GopherFindFirstFile.
ushort[654] Locator;
}
struct GOPHER_ADMIN_ATTRIBUTE_TYPE
{
byte* Comment;
byte* EmailAddress;
}
struct GOPHER_MOD_DATE_ATTRIBUTE_TYPE
{
FILETIME DateAndTime;
}
struct GOPHER_TTL_ATTRIBUTE_TYPE
{
uint Ttl;
}
struct GOPHER_SCORE_ATTRIBUTE_TYPE
{
int Score;
}
struct GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE
{
int LowerBound;
int UpperBound;
}
struct GOPHER_SITE_ATTRIBUTE_TYPE
{
byte* Site;
}
struct GOPHER_ORGANIZATION_ATTRIBUTE_TYPE
{
byte* Organization;
}
struct GOPHER_LOCATION_ATTRIBUTE_TYPE
{
byte* Location;
}
struct GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE
{
int DegreesNorth;
int MinutesNorth;
int SecondsNorth;
int DegreesEast;
int MinutesEast;
int SecondsEast;
}
struct GOPHER_TIMEZONE_ATTRIBUTE_TYPE
{
int Zone;
}
struct GOPHER_PROVIDER_ATTRIBUTE_TYPE
{
byte* Provider;
}
struct GOPHER_VERSION_ATTRIBUTE_TYPE
{
byte* Version;
}
struct GOPHER_ABSTRACT_ATTRIBUTE_TYPE
{
byte* ShortAbstract;
byte* AbstractFile;
}
struct GOPHER_VIEW_ATTRIBUTE_TYPE
{
byte* ContentType;
byte* Language;
uint Size;
}
struct GOPHER_VERONICA_ATTRIBUTE_TYPE
{