This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
shlwapi.go
2366 lines (2158 loc) · 73 KB
/
shlwapi.go
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
// This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
// go run internal/cmd/gen/gen.go
// +build windows
package win
import (
"syscall"
"unsafe"
)
var (
// Library
libshlwapi uintptr
// Functions
assocCreate uintptr
assocGetPerceivedType uintptr
assocIsDangerous uintptr
assocQueryKey uintptr
assocQueryStringByKey uintptr
assocQueryString uintptr
chrCmpI uintptr
colorAdjustLuma uintptr
colorHLSToRGB uintptr
colorRGBToHLS uintptr
connectToConnectionPoint uintptr
getAcceptLanguages uintptr
getMenuPosFromID uintptr
hashData uintptr
iStream_Reset uintptr
iStream_Size uintptr
iUnknown_AtomicRelease uintptr
iUnknown_GetSite uintptr
iUnknown_GetWindow uintptr
iUnknown_QueryService uintptr
iUnknown_Set uintptr
iUnknown_SetSite uintptr
intlStrEqWorker uintptr
isCharSpace uintptr
isInternetESCEnabled uintptr
isOS uintptr
mLFreeLibrary uintptr
mLLoadLibrary uintptr
parseURL uintptr
pathAddBackslash uintptr
pathAddExtension uintptr
pathAppend uintptr
pathBuildRoot uintptr
pathCanonicalize uintptr
pathCombine uintptr
pathCommonPrefix uintptr
pathCompactPathEx uintptr
pathCompactPath uintptr
pathCreateFromUrlAlloc uintptr
pathCreateFromUrl uintptr
pathFileExists uintptr
pathFindExtension uintptr
pathFindFileName uintptr
pathFindNextComponent uintptr
pathFindOnPath uintptr
pathFindSuffixArray uintptr
pathGetArgs uintptr
pathGetCharType uintptr
pathGetDriveNumber uintptr
pathIsContentType uintptr
pathIsDirectoryEmpty uintptr
pathIsDirectory uintptr
pathIsFileSpec uintptr
pathIsLFNFileSpec uintptr
pathIsNetworkPath uintptr
pathIsPrefix uintptr
pathIsRelative uintptr
pathIsRoot uintptr
pathIsSameRoot uintptr
pathIsSystemFolder uintptr
pathIsUNCServerShare uintptr
pathIsUNCServer uintptr
pathIsUNC uintptr
pathIsURL uintptr
pathMakePretty uintptr
pathMakeSystemFolder uintptr
pathMatchSpec uintptr
pathParseIconLocation uintptr
pathQuoteSpaces uintptr
pathRelativePathTo uintptr
pathRemoveArgs uintptr
pathRemoveBackslash uintptr
pathRemoveBlanks uintptr
pathRemoveExtension uintptr
pathRemoveFileSpec uintptr
pathRenameExtension uintptr
pathSearchAndQualify uintptr
pathSetDlgItemPath uintptr
pathSkipRoot uintptr
pathStripPath uintptr
pathStripToRoot uintptr
pathUnExpandEnvStrings uintptr
pathUndecorate uintptr
pathUnmakeSystemFolder uintptr
pathUnquoteSpaces uintptr
qISearch uintptr
sHAllocShared uintptr
sHAnsiToAnsi uintptr
sHAnsiToUnicode uintptr
sHAutoComplete uintptr
sHCopyKey uintptr
sHCreateShellPalette uintptr
sHCreateStreamOnFileEx uintptr
sHCreateStreamOnFile uintptr
sHCreateStreamWrapper uintptr
sHCreateThread uintptr
sHCreateThreadRef uintptr
sHDeleteEmptyKey uintptr
sHDeleteKey uintptr
sHDeleteOrphanKey uintptr
sHDeleteValue uintptr
sHEnumKeyEx uintptr
sHEnumValue uintptr
sHFormatDateTime uintptr
sHFreeShared uintptr
sHGetInverseCMAP uintptr
sHGetThreadRef uintptr
sHGetValue uintptr
sHGetViewStatePropertyBag uintptr
sHIsChildOrSelf uintptr
sHIsLowMemoryMachine uintptr
sHLoadIndirectString uintptr
sHLockShared uintptr
sHMessageBoxCheck uintptr
sHQueryInfoKey uintptr
sHQueryValueEx uintptr
sHRegCloseUSKey uintptr
sHRegCreateUSKey uintptr
sHRegDeleteEmptyUSKey uintptr
sHRegDeleteUSValue uintptr
sHRegDuplicateHKey uintptr
sHRegEnumUSKey uintptr
sHRegEnumUSValue uintptr
sHRegGetBoolUSValue uintptr
sHRegGetIntW uintptr
sHRegGetPath uintptr
sHRegGetUSValue uintptr
sHRegOpenUSKey uintptr
sHRegQueryInfoUSKey uintptr
sHRegQueryUSValue uintptr
sHRegSetPath uintptr
sHRegSetUSValue uintptr
sHRegWriteUSValue uintptr
sHRegisterValidateTemplate uintptr
sHReleaseThreadRef uintptr
sHSendMessageBroadcast uintptr
sHSetThreadRef uintptr
sHSetValue uintptr
sHSkipJunction uintptr
sHStrDup uintptr
sHStripMneumonic uintptr
sHUnicodeToAnsi uintptr
sHUnicodeToUnicode uintptr
sHUnlockShared uintptr
strCSpnI uintptr
strCSpn uintptr
strCatBuff uintptr
strCatChainW uintptr
strCatW uintptr
strChrI uintptr
strChrNW uintptr
strChr uintptr
strCmpC uintptr
strCmpIC uintptr
strCmpIW uintptr
strCmpLogicalW uintptr
strCmpNC uintptr
strCmpNIC uintptr
strCmpNI uintptr
strCmpN uintptr
strCmpW uintptr
strCpyNW uintptr
strCpyW uintptr
strDup uintptr
strFormatByteSize64A uintptr
strFormatByteSize uintptr
strFormatKBSize uintptr
strFromTimeInterval uintptr
strIsIntlEqual uintptr
strNCat uintptr
strPBrk uintptr
strRChrI uintptr
strRChr uintptr
strRStrI uintptr
strRetToBSTR uintptr
strRetToBuf uintptr
strRetToStr uintptr
strSpn uintptr
strStrI uintptr
strStrNIW uintptr
strStrNW uintptr
strStr uintptr
strToInt64Ex uintptr
strToIntEx uintptr
strToInt uintptr
strTrim uintptr
urlApplyScheme uintptr
urlCanonicalize uintptr
urlCombine uintptr
urlCompare uintptr
urlCreateFromPath uintptr
urlEscape uintptr
urlFixupW uintptr
urlGetLocation uintptr
urlGetPart uintptr
urlHash uintptr
urlIsNoHistory uintptr
urlIsOpaque uintptr
urlIs uintptr
urlUnescape uintptr
whichPlatform uintptr
)
func init() {
// Library
libshlwapi = doLoadLibrary("shlwapi.dll")
// Functions
assocCreate = doGetProcAddress(libshlwapi, "AssocCreate")
assocGetPerceivedType = doGetProcAddress(libshlwapi, "AssocGetPerceivedType")
assocIsDangerous = doGetProcAddress(libshlwapi, "AssocIsDangerous")
assocQueryKey = doGetProcAddress(libshlwapi, "AssocQueryKeyW")
assocQueryStringByKey = doGetProcAddress(libshlwapi, "AssocQueryStringByKeyW")
assocQueryString = doGetProcAddress(libshlwapi, "AssocQueryStringW")
chrCmpI = doGetProcAddress(libshlwapi, "ChrCmpIW")
colorAdjustLuma = doGetProcAddress(libshlwapi, "ColorAdjustLuma")
colorHLSToRGB = doGetProcAddress(libshlwapi, "ColorHLSToRGB")
colorRGBToHLS = doGetProcAddress(libshlwapi, "ColorRGBToHLS")
connectToConnectionPoint = doGetProcAddress(libshlwapi, "ConnectToConnectionPoint")
getAcceptLanguages = doGetProcAddress(libshlwapi, "GetAcceptLanguagesW")
getMenuPosFromID = doGetProcAddress(libshlwapi, "GetMenuPosFromID")
hashData = doGetProcAddress(libshlwapi, "HashData")
iStream_Reset = doGetProcAddress(libshlwapi, "IStream_Reset")
iStream_Size = doGetProcAddress(libshlwapi, "IStream_Size")
iUnknown_AtomicRelease = doGetProcAddress(libshlwapi, "IUnknown_AtomicRelease")
iUnknown_GetSite = doGetProcAddress(libshlwapi, "IUnknown_GetSite")
iUnknown_GetWindow = doGetProcAddress(libshlwapi, "IUnknown_GetWindow")
iUnknown_QueryService = doGetProcAddress(libshlwapi, "IUnknown_QueryService")
iUnknown_Set = doGetProcAddress(libshlwapi, "IUnknown_Set")
iUnknown_SetSite = doGetProcAddress(libshlwapi, "IUnknown_SetSite")
intlStrEqWorker = doGetProcAddress(libshlwapi, "IntlStrEqWorkerW")
isCharSpace = doGetProcAddress(libshlwapi, "IsCharSpaceW")
isInternetESCEnabled = doGetProcAddress(libshlwapi, "IsInternetESCEnabled")
isOS = doGetProcAddress(libshlwapi, "IsOS")
mLFreeLibrary = doGetProcAddress(libshlwapi, "MLFreeLibrary")
mLLoadLibrary = doGetProcAddress(libshlwapi, "MLLoadLibraryW")
parseURL = doGetProcAddress(libshlwapi, "ParseURLW")
pathAddBackslash = doGetProcAddress(libshlwapi, "PathAddBackslashW")
pathAddExtension = doGetProcAddress(libshlwapi, "PathAddExtensionW")
pathAppend = doGetProcAddress(libshlwapi, "PathAppendW")
pathBuildRoot = doGetProcAddress(libshlwapi, "PathBuildRootW")
pathCanonicalize = doGetProcAddress(libshlwapi, "PathCanonicalizeW")
pathCombine = doGetProcAddress(libshlwapi, "PathCombineW")
pathCommonPrefix = doGetProcAddress(libshlwapi, "PathCommonPrefixW")
pathCompactPathEx = doGetProcAddress(libshlwapi, "PathCompactPathExW")
pathCompactPath = doGetProcAddress(libshlwapi, "PathCompactPathW")
pathCreateFromUrlAlloc = doGetProcAddress(libshlwapi, "PathCreateFromUrlAlloc")
pathCreateFromUrl = doGetProcAddress(libshlwapi, "PathCreateFromUrlW")
pathFileExists = doGetProcAddress(libshlwapi, "PathFileExistsW")
pathFindExtension = doGetProcAddress(libshlwapi, "PathFindExtensionW")
pathFindFileName = doGetProcAddress(libshlwapi, "PathFindFileNameW")
pathFindNextComponent = doGetProcAddress(libshlwapi, "PathFindNextComponentW")
pathFindOnPath = doGetProcAddress(libshlwapi, "PathFindOnPathW")
pathFindSuffixArray = doGetProcAddress(libshlwapi, "PathFindSuffixArrayW")
pathGetArgs = doGetProcAddress(libshlwapi, "PathGetArgsW")
pathGetCharType = doGetProcAddress(libshlwapi, "PathGetCharTypeW")
pathGetDriveNumber = doGetProcAddress(libshlwapi, "PathGetDriveNumberW")
pathIsContentType = doGetProcAddress(libshlwapi, "PathIsContentTypeW")
pathIsDirectoryEmpty = doGetProcAddress(libshlwapi, "PathIsDirectoryEmptyW")
pathIsDirectory = doGetProcAddress(libshlwapi, "PathIsDirectoryW")
pathIsFileSpec = doGetProcAddress(libshlwapi, "PathIsFileSpecW")
pathIsLFNFileSpec = doGetProcAddress(libshlwapi, "PathIsLFNFileSpecW")
pathIsNetworkPath = doGetProcAddress(libshlwapi, "PathIsNetworkPathW")
pathIsPrefix = doGetProcAddress(libshlwapi, "PathIsPrefixW")
pathIsRelative = doGetProcAddress(libshlwapi, "PathIsRelativeW")
pathIsRoot = doGetProcAddress(libshlwapi, "PathIsRootW")
pathIsSameRoot = doGetProcAddress(libshlwapi, "PathIsSameRootW")
pathIsSystemFolder = doGetProcAddress(libshlwapi, "PathIsSystemFolderW")
pathIsUNCServerShare = doGetProcAddress(libshlwapi, "PathIsUNCServerShareW")
pathIsUNCServer = doGetProcAddress(libshlwapi, "PathIsUNCServerW")
pathIsUNC = doGetProcAddress(libshlwapi, "PathIsUNCW")
pathIsURL = doGetProcAddress(libshlwapi, "PathIsURLW")
pathMakePretty = doGetProcAddress(libshlwapi, "PathMakePrettyW")
pathMakeSystemFolder = doGetProcAddress(libshlwapi, "PathMakeSystemFolderW")
pathMatchSpec = doGetProcAddress(libshlwapi, "PathMatchSpecW")
pathParseIconLocation = doGetProcAddress(libshlwapi, "PathParseIconLocationW")
pathQuoteSpaces = doGetProcAddress(libshlwapi, "PathQuoteSpacesW")
pathRelativePathTo = doGetProcAddress(libshlwapi, "PathRelativePathToW")
pathRemoveArgs = doGetProcAddress(libshlwapi, "PathRemoveArgsW")
pathRemoveBackslash = doGetProcAddress(libshlwapi, "PathRemoveBackslashW")
pathRemoveBlanks = doGetProcAddress(libshlwapi, "PathRemoveBlanksW")
pathRemoveExtension = doGetProcAddress(libshlwapi, "PathRemoveExtensionW")
pathRemoveFileSpec = doGetProcAddress(libshlwapi, "PathRemoveFileSpecW")
pathRenameExtension = doGetProcAddress(libshlwapi, "PathRenameExtensionW")
pathSearchAndQualify = doGetProcAddress(libshlwapi, "PathSearchAndQualifyW")
pathSetDlgItemPath = doGetProcAddress(libshlwapi, "PathSetDlgItemPathW")
pathSkipRoot = doGetProcAddress(libshlwapi, "PathSkipRootW")
pathStripPath = doGetProcAddress(libshlwapi, "PathStripPathW")
pathStripToRoot = doGetProcAddress(libshlwapi, "PathStripToRootW")
pathUnExpandEnvStrings = doGetProcAddress(libshlwapi, "PathUnExpandEnvStringsW")
pathUndecorate = doGetProcAddress(libshlwapi, "PathUndecorateW")
pathUnmakeSystemFolder = doGetProcAddress(libshlwapi, "PathUnmakeSystemFolderW")
pathUnquoteSpaces = doGetProcAddress(libshlwapi, "PathUnquoteSpacesW")
qISearch = doGetProcAddress(libshlwapi, "QISearch")
sHAllocShared = doGetProcAddress(libshlwapi, "SHAllocShared")
sHAnsiToAnsi = doGetProcAddress(libshlwapi, "SHAnsiToAnsi")
sHAnsiToUnicode = doGetProcAddress(libshlwapi, "SHAnsiToUnicode")
sHAutoComplete = doGetProcAddress(libshlwapi, "SHAutoComplete")
sHCopyKey = doGetProcAddress(libshlwapi, "SHCopyKeyW")
sHCreateShellPalette = doGetProcAddress(libshlwapi, "SHCreateShellPalette")
sHCreateStreamOnFileEx = doGetProcAddress(libshlwapi, "SHCreateStreamOnFileEx")
sHCreateStreamOnFile = doGetProcAddress(libshlwapi, "SHCreateStreamOnFileW")
sHCreateStreamWrapper = doGetProcAddress(libshlwapi, "SHCreateStreamWrapper")
sHCreateThread = doGetProcAddress(libshlwapi, "SHCreateThread")
sHCreateThreadRef = doGetProcAddress(libshlwapi, "SHCreateThreadRef")
sHDeleteEmptyKey = doGetProcAddress(libshlwapi, "SHDeleteEmptyKeyW")
sHDeleteKey = doGetProcAddress(libshlwapi, "SHDeleteKeyW")
sHDeleteOrphanKey = doGetProcAddress(libshlwapi, "SHDeleteOrphanKeyW")
sHDeleteValue = doGetProcAddress(libshlwapi, "SHDeleteValueW")
sHEnumKeyEx = doGetProcAddress(libshlwapi, "SHEnumKeyExW")
sHEnumValue = doGetProcAddress(libshlwapi, "SHEnumValueW")
sHFormatDateTime = doGetProcAddress(libshlwapi, "SHFormatDateTimeW")
sHFreeShared = doGetProcAddress(libshlwapi, "SHFreeShared")
sHGetInverseCMAP = doGetProcAddress(libshlwapi, "SHGetInverseCMAP")
sHGetThreadRef = doGetProcAddress(libshlwapi, "SHGetThreadRef")
sHGetValue = doGetProcAddress(libshlwapi, "SHGetValueW")
sHGetViewStatePropertyBag = doGetProcAddress(libshlwapi, "SHGetViewStatePropertyBag")
sHIsChildOrSelf = doGetProcAddress(libshlwapi, "SHIsChildOrSelf")
sHIsLowMemoryMachine = doGetProcAddress(libshlwapi, "SHIsLowMemoryMachine")
sHLoadIndirectString = doGetProcAddress(libshlwapi, "SHLoadIndirectString")
sHLockShared = doGetProcAddress(libshlwapi, "SHLockShared")
sHMessageBoxCheck = doGetProcAddress(libshlwapi, "SHMessageBoxCheckW")
sHQueryInfoKey = doGetProcAddress(libshlwapi, "SHQueryInfoKeyW")
sHQueryValueEx = doGetProcAddress(libshlwapi, "SHQueryValueExW")
sHRegCloseUSKey = doGetProcAddress(libshlwapi, "SHRegCloseUSKey")
sHRegCreateUSKey = doGetProcAddress(libshlwapi, "SHRegCreateUSKeyW")
sHRegDeleteEmptyUSKey = doGetProcAddress(libshlwapi, "SHRegDeleteEmptyUSKeyW")
sHRegDeleteUSValue = doGetProcAddress(libshlwapi, "SHRegDeleteUSValueW")
sHRegDuplicateHKey = doGetProcAddress(libshlwapi, "SHRegDuplicateHKey")
sHRegEnumUSKey = doGetProcAddress(libshlwapi, "SHRegEnumUSKeyW")
sHRegEnumUSValue = doGetProcAddress(libshlwapi, "SHRegEnumUSValueW")
sHRegGetBoolUSValue = doGetProcAddress(libshlwapi, "SHRegGetBoolUSValueW")
sHRegGetIntW = doGetProcAddress(libshlwapi, "SHRegGetIntW")
sHRegGetPath = doGetProcAddress(libshlwapi, "SHRegGetPathW")
sHRegGetUSValue = doGetProcAddress(libshlwapi, "SHRegGetUSValueW")
sHRegOpenUSKey = doGetProcAddress(libshlwapi, "SHRegOpenUSKeyW")
sHRegQueryInfoUSKey = doGetProcAddress(libshlwapi, "SHRegQueryInfoUSKeyW")
sHRegQueryUSValue = doGetProcAddress(libshlwapi, "SHRegQueryUSValueW")
sHRegSetPath = doGetProcAddress(libshlwapi, "SHRegSetPathW")
sHRegSetUSValue = doGetProcAddress(libshlwapi, "SHRegSetUSValueW")
sHRegWriteUSValue = doGetProcAddress(libshlwapi, "SHRegWriteUSValueW")
sHRegisterValidateTemplate = doGetProcAddress(libshlwapi, "SHRegisterValidateTemplate")
sHReleaseThreadRef = doGetProcAddress(libshlwapi, "SHReleaseThreadRef")
sHSendMessageBroadcast = doGetProcAddress(libshlwapi, "SHSendMessageBroadcastW")
sHSetThreadRef = doGetProcAddress(libshlwapi, "SHSetThreadRef")
sHSetValue = doGetProcAddress(libshlwapi, "SHSetValueW")
sHSkipJunction = doGetProcAddress(libshlwapi, "SHSkipJunction")
sHStrDup = doGetProcAddress(libshlwapi, "SHStrDupW")
sHStripMneumonic = doGetProcAddress(libshlwapi, "SHStripMneumonicW")
sHUnicodeToAnsi = doGetProcAddress(libshlwapi, "SHUnicodeToAnsi")
sHUnicodeToUnicode = doGetProcAddress(libshlwapi, "SHUnicodeToUnicode")
sHUnlockShared = doGetProcAddress(libshlwapi, "SHUnlockShared")
strCSpnI = doGetProcAddress(libshlwapi, "StrCSpnIW")
strCSpn = doGetProcAddress(libshlwapi, "StrCSpnW")
strCatBuff = doGetProcAddress(libshlwapi, "StrCatBuffW")
strCatChainW = doGetProcAddress(libshlwapi, "StrCatChainW")
strCatW = doGetProcAddress(libshlwapi, "StrCatW")
strChrI = doGetProcAddress(libshlwapi, "StrChrIW")
strChrNW = doGetProcAddress(libshlwapi, "StrChrNW")
strChr = doGetProcAddress(libshlwapi, "StrChrW")
strCmpC = doGetProcAddress(libshlwapi, "StrCmpCW")
strCmpIC = doGetProcAddress(libshlwapi, "StrCmpICW")
strCmpIW = doGetProcAddress(libshlwapi, "StrCmpIW")
strCmpLogicalW = doGetProcAddress(libshlwapi, "StrCmpLogicalW")
strCmpNC = doGetProcAddress(libshlwapi, "StrCmpNCW")
strCmpNIC = doGetProcAddress(libshlwapi, "StrCmpNICW")
strCmpNI = doGetProcAddress(libshlwapi, "StrCmpNIW")
strCmpN = doGetProcAddress(libshlwapi, "StrCmpNW")
strCmpW = doGetProcAddress(libshlwapi, "StrCmpW")
strCpyNW = doGetProcAddress(libshlwapi, "StrCpyNW")
strCpyW = doGetProcAddress(libshlwapi, "StrCpyW")
strDup = doGetProcAddress(libshlwapi, "StrDupW")
strFormatByteSize64A = doGetProcAddress(libshlwapi, "StrFormatByteSize64A")
strFormatByteSize = doGetProcAddress(libshlwapi, "StrFormatByteSizeW")
strFormatKBSize = doGetProcAddress(libshlwapi, "StrFormatKBSizeW")
strFromTimeInterval = doGetProcAddress(libshlwapi, "StrFromTimeIntervalW")
strIsIntlEqual = doGetProcAddress(libshlwapi, "StrIsIntlEqualW")
strNCat = doGetProcAddress(libshlwapi, "StrNCatW")
strPBrk = doGetProcAddress(libshlwapi, "StrPBrkW")
strRChrI = doGetProcAddress(libshlwapi, "StrRChrIW")
strRChr = doGetProcAddress(libshlwapi, "StrRChrW")
strRStrI = doGetProcAddress(libshlwapi, "StrRStrIW")
strRetToBSTR = doGetProcAddress(libshlwapi, "StrRetToBSTR")
strRetToBuf = doGetProcAddress(libshlwapi, "StrRetToBufW")
strRetToStr = doGetProcAddress(libshlwapi, "StrRetToStrW")
strSpn = doGetProcAddress(libshlwapi, "StrSpnW")
strStrI = doGetProcAddress(libshlwapi, "StrStrIW")
strStrNIW = doGetProcAddress(libshlwapi, "StrStrNIW")
strStrNW = doGetProcAddress(libshlwapi, "StrStrNW")
strStr = doGetProcAddress(libshlwapi, "StrStrW")
strToInt64Ex = doGetProcAddress(libshlwapi, "StrToInt64ExW")
strToIntEx = doGetProcAddress(libshlwapi, "StrToIntExW")
strToInt = doGetProcAddress(libshlwapi, "StrToIntW")
strTrim = doGetProcAddress(libshlwapi, "StrTrimW")
urlApplyScheme = doGetProcAddress(libshlwapi, "UrlApplySchemeW")
urlCanonicalize = doGetProcAddress(libshlwapi, "UrlCanonicalizeW")
urlCombine = doGetProcAddress(libshlwapi, "UrlCombineW")
urlCompare = doGetProcAddress(libshlwapi, "UrlCompareW")
urlCreateFromPath = doGetProcAddress(libshlwapi, "UrlCreateFromPathW")
urlEscape = doGetProcAddress(libshlwapi, "UrlEscapeW")
urlFixupW = doGetProcAddress(libshlwapi, "UrlFixupW")
urlGetLocation = doGetProcAddress(libshlwapi, "UrlGetLocationW")
urlGetPart = doGetProcAddress(libshlwapi, "UrlGetPartW")
urlHash = doGetProcAddress(libshlwapi, "UrlHashW")
urlIsNoHistory = doGetProcAddress(libshlwapi, "UrlIsNoHistoryW")
urlIsOpaque = doGetProcAddress(libshlwapi, "UrlIsOpaqueW")
urlIs = doGetProcAddress(libshlwapi, "UrlIsW")
urlUnescape = doGetProcAddress(libshlwapi, "UrlUnescapeW")
whichPlatform = doGetProcAddress(libshlwapi, "WhichPlatform")
}
func AssocCreate(clsid CLSID, refiid REFIID, lpInterface uintptr) HRESULT {
ret1 := syscall6(assocCreate, 6,
uintptr(clsid.Data1),
uintptr((uint32(clsid.Data2)<<16)|uint32(clsid.Data3)),
uintptr((uint32(clsid.Data4[0])<<24)|(uint32(clsid.Data4[1]<<16))|(uint32(clsid.Data4[2]<<8))|uint32(clsid.Data4[3])),
uintptr((uint32(clsid.Data4[4])<<24)|(uint32(clsid.Data4[5]<<16))|(uint32(clsid.Data4[6]<<8))|uint32(clsid.Data4[7])),
uintptr(unsafe.Pointer(refiid)),
lpInterface)
return HRESULT(ret1)
}
func AssocGetPerceivedType(lpszExt string, lpType *PERCEIVED, lpFlag *int32, lppszType *LPWSTR) HRESULT {
lpszExtStr := unicode16FromString(lpszExt)
ret1 := syscall6(assocGetPerceivedType, 4,
uintptr(unsafe.Pointer(&lpszExtStr[0])),
uintptr(unsafe.Pointer(lpType)),
uintptr(unsafe.Pointer(lpFlag)),
uintptr(unsafe.Pointer(lppszType)),
0,
0)
return HRESULT(ret1)
}
func AssocIsDangerous(lpszAssoc string) bool {
lpszAssocStr := unicode16FromString(lpszAssoc)
ret1 := syscall3(assocIsDangerous, 1,
uintptr(unsafe.Pointer(&lpszAssocStr[0])),
0,
0)
return ret1 != 0
}
func AssocQueryKey(cfFlags ASSOCF, assockey ASSOCKEY, pszAssoc string, pszExtra string, phkeyOut *HKEY) HRESULT {
pszAssocStr := unicode16FromString(pszAssoc)
pszExtraStr := unicode16FromString(pszExtra)
ret1 := syscall6(assocQueryKey, 5,
uintptr(cfFlags),
uintptr(assockey),
uintptr(unsafe.Pointer(&pszAssocStr[0])),
uintptr(unsafe.Pointer(&pszExtraStr[0])),
uintptr(unsafe.Pointer(phkeyOut)),
0)
return HRESULT(ret1)
}
func AssocQueryStringByKey(cfFlags ASSOCF, str ASSOCSTR, hkAssoc HKEY, pszExtra string, pszOut LPWSTR, pcchOut *uint32) HRESULT {
pszExtraStr := unicode16FromString(pszExtra)
ret1 := syscall6(assocQueryStringByKey, 6,
uintptr(cfFlags),
uintptr(str),
uintptr(hkAssoc),
uintptr(unsafe.Pointer(&pszExtraStr[0])),
uintptr(unsafe.Pointer(pszOut)),
uintptr(unsafe.Pointer(pcchOut)))
return HRESULT(ret1)
}
func AssocQueryString(cfFlags ASSOCF, str ASSOCSTR, pszAssoc string, pszExtra string, pszOut LPWSTR, pcchOut *uint32) HRESULT {
pszAssocStr := unicode16FromString(pszAssoc)
pszExtraStr := unicode16FromString(pszExtra)
ret1 := syscall6(assocQueryString, 6,
uintptr(cfFlags),
uintptr(str),
uintptr(unsafe.Pointer(&pszAssocStr[0])),
uintptr(unsafe.Pointer(&pszExtraStr[0])),
uintptr(unsafe.Pointer(pszOut)),
uintptr(unsafe.Pointer(pcchOut)))
return HRESULT(ret1)
}
func ChrCmpI(ch1 WCHAR, ch2 WCHAR) bool {
ret1 := syscall3(chrCmpI, 2,
uintptr(ch1),
uintptr(ch2),
0)
return ret1 != 0
}
func ColorAdjustLuma(cRGB COLORREF, dwLuma int32, bUnknown bool) COLORREF {
ret1 := syscall3(colorAdjustLuma, 3,
uintptr(cRGB),
uintptr(dwLuma),
getUintptrFromBool(bUnknown))
return COLORREF(ret1)
}
func ColorHLSToRGB(wHue WORD, wLuminosity WORD, wSaturation WORD) COLORREF {
ret1 := syscall3(colorHLSToRGB, 3,
uintptr(wHue),
uintptr(wLuminosity),
uintptr(wSaturation))
return COLORREF(ret1)
}
func ColorRGBToHLS(cRGB COLORREF, pwHue *uint16, pwLuminance *uint16, pwSaturation *uint16) {
syscall6(colorRGBToHLS, 4,
uintptr(cRGB),
uintptr(unsafe.Pointer(pwHue)),
uintptr(unsafe.Pointer(pwLuminance)),
uintptr(unsafe.Pointer(pwSaturation)),
0,
0)
}
func ConnectToConnectionPoint(lpUnkSink *IUnknown, riid REFIID, fConnect bool, lpUnknown *IUnknown, lpCookie *uint32, lppCP **IConnectionPoint) HRESULT {
ret1 := syscall6(connectToConnectionPoint, 6,
uintptr(unsafe.Pointer(lpUnkSink)),
uintptr(unsafe.Pointer(riid)),
getUintptrFromBool(fConnect),
uintptr(unsafe.Pointer(lpUnknown)),
uintptr(unsafe.Pointer(lpCookie)),
uintptr(unsafe.Pointer(lppCP)))
return HRESULT(ret1)
}
func GetAcceptLanguages(langbuf LPWSTR, buflen *uint32) HRESULT {
ret1 := syscall3(getAcceptLanguages, 2,
uintptr(unsafe.Pointer(langbuf)),
uintptr(unsafe.Pointer(buflen)),
0)
return HRESULT(ret1)
}
func GetMenuPosFromID(hMenu HMENU, wID UINT) INT {
ret1 := syscall3(getMenuPosFromID, 2,
uintptr(hMenu),
uintptr(wID),
0)
return INT(ret1)
}
func HashData(lpSrc /*const*/ *byte, nSrcLen DWORD, lpDest *byte, nDestLen DWORD) HRESULT {
ret1 := syscall6(hashData, 4,
uintptr(unsafe.Pointer(lpSrc)),
uintptr(nSrcLen),
uintptr(unsafe.Pointer(lpDest)),
uintptr(nDestLen),
0,
0)
return HRESULT(ret1)
}
func IStream_Reset(lpStream *IStream) HRESULT {
ret1 := syscall3(iStream_Reset, 1,
uintptr(unsafe.Pointer(lpStream)),
0,
0)
return HRESULT(ret1)
}
func IStream_Size(lpStream *IStream, lpulSize *ULARGE_INTEGER) HRESULT {
ret1 := syscall3(iStream_Size, 2,
uintptr(unsafe.Pointer(lpStream)),
uintptr(unsafe.Pointer(lpulSize)),
0)
return HRESULT(ret1)
}
func IUnknown_AtomicRelease(lpUnknown **IUnknown) {
syscall3(iUnknown_AtomicRelease, 1,
uintptr(unsafe.Pointer(lpUnknown)),
0,
0)
}
func IUnknown_GetSite(lpUnknown LPUNKNOWN, iid REFIID, lppSite *PVOID) HRESULT {
ret1 := syscall3(iUnknown_GetSite, 3,
uintptr(unsafe.Pointer(lpUnknown)),
uintptr(unsafe.Pointer(iid)),
uintptr(unsafe.Pointer(lppSite)))
return HRESULT(ret1)
}
func IUnknown_GetWindow(lpUnknown *IUnknown, lphWnd *HWND) HRESULT {
ret1 := syscall3(iUnknown_GetWindow, 2,
uintptr(unsafe.Pointer(lpUnknown)),
uintptr(unsafe.Pointer(lphWnd)),
0)
return HRESULT(ret1)
}
func IUnknown_QueryService(unnamed0 *IUnknown, unnamed1 REFGUID, unnamed2 REFIID, unnamed3 *LPVOID) HRESULT {
ret1 := syscall6(iUnknown_QueryService, 4,
uintptr(unsafe.Pointer(unnamed0)),
uintptr(unsafe.Pointer(unnamed1)),
uintptr(unsafe.Pointer(unnamed2)),
uintptr(unsafe.Pointer(unnamed3)),
0,
0)
return HRESULT(ret1)
}
func IUnknown_Set(lppDest **IUnknown, lpUnknown *IUnknown) {
syscall3(iUnknown_Set, 2,
uintptr(unsafe.Pointer(lppDest)),
uintptr(unsafe.Pointer(lpUnknown)),
0)
}
func IUnknown_SetSite(obj *IUnknown, site *IUnknown) HRESULT {
ret1 := syscall3(iUnknown_SetSite, 2,
uintptr(unsafe.Pointer(obj)),
uintptr(unsafe.Pointer(site)),
0)
return HRESULT(ret1)
}
func IntlStrEqWorker(bCase bool, lpszStr string, lpszComp string, iLen int32) bool {
lpszStrStr := unicode16FromString(lpszStr)
lpszCompStr := unicode16FromString(lpszComp)
ret1 := syscall6(intlStrEqWorker, 4,
getUintptrFromBool(bCase),
uintptr(unsafe.Pointer(&lpszStrStr[0])),
uintptr(unsafe.Pointer(&lpszCompStr[0])),
uintptr(iLen),
0,
0)
return ret1 != 0
}
func IsCharSpace(wc WCHAR) bool {
ret1 := syscall3(isCharSpace, 1,
uintptr(wc),
0,
0)
return ret1 != 0
}
func IsInternetESCEnabled() bool {
ret1 := syscall3(isInternetESCEnabled, 0,
0,
0,
0)
return ret1 != 0
}
func IsOS(feature DWORD) bool {
ret1 := syscall3(isOS, 1,
uintptr(feature),
0,
0)
return ret1 != 0
}
func MLFreeLibrary(hModule HMODULE) bool {
ret1 := syscall3(mLFreeLibrary, 1,
uintptr(hModule),
0,
0)
return ret1 != 0
}
func MLLoadLibrary(new_mod string, inst_hwnd HMODULE, dwCrossCodePage DWORD) HMODULE {
new_modStr := unicode16FromString(new_mod)
ret1 := syscall3(mLLoadLibrary, 3,
uintptr(unsafe.Pointer(&new_modStr[0])),
uintptr(inst_hwnd),
uintptr(dwCrossCodePage))
return HMODULE(ret1)
}
func ParseURL(x string, y *PARSEDURL) HRESULT {
xStr := unicode16FromString(x)
ret1 := syscall3(parseURL, 2,
uintptr(unsafe.Pointer(&xStr[0])),
uintptr(unsafe.Pointer(y)),
0)
return HRESULT(ret1)
}
func PathAddBackslash(lpszPath LPWSTR) LPWSTR {
ret1 := syscall3(pathAddBackslash, 1,
uintptr(unsafe.Pointer(lpszPath)),
0,
0)
return (LPWSTR)(unsafe.Pointer(ret1))
}
func PathAddExtension(lpszPath LPWSTR, lpszExtension string) bool {
lpszExtensionStr := unicode16FromString(lpszExtension)
ret1 := syscall3(pathAddExtension, 2,
uintptr(unsafe.Pointer(lpszPath)),
uintptr(unsafe.Pointer(&lpszExtensionStr[0])),
0)
return ret1 != 0
}
func PathAppend(lpszPath LPWSTR, lpszAppend string) bool {
lpszAppendStr := unicode16FromString(lpszAppend)
ret1 := syscall3(pathAppend, 2,
uintptr(unsafe.Pointer(lpszPath)),
uintptr(unsafe.Pointer(&lpszAppendStr[0])),
0)
return ret1 != 0
}
func PathBuildRoot(lpszPath LPWSTR, drive int32) LPWSTR {
ret1 := syscall3(pathBuildRoot, 2,
uintptr(unsafe.Pointer(lpszPath)),
uintptr(drive),
0)
return (LPWSTR)(unsafe.Pointer(ret1))
}
func PathCanonicalize(lpszBuf LPWSTR, lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathCanonicalize, 2,
uintptr(unsafe.Pointer(lpszBuf)),
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0)
return ret1 != 0
}
func PathCombine(lpszDest LPWSTR, lpszDir string, lpszFile string) LPWSTR {
lpszDirStr := unicode16FromString(lpszDir)
lpszFileStr := unicode16FromString(lpszFile)
ret1 := syscall3(pathCombine, 3,
uintptr(unsafe.Pointer(lpszDest)),
uintptr(unsafe.Pointer(&lpszDirStr[0])),
uintptr(unsafe.Pointer(&lpszFileStr[0])))
return (LPWSTR)(unsafe.Pointer(ret1))
}
func PathCommonPrefix(lpszFile1 string, lpszFile2 string, achPath LPWSTR) int32 {
lpszFile1Str := unicode16FromString(lpszFile1)
lpszFile2Str := unicode16FromString(lpszFile2)
ret1 := syscall3(pathCommonPrefix, 3,
uintptr(unsafe.Pointer(&lpszFile1Str[0])),
uintptr(unsafe.Pointer(&lpszFile2Str[0])),
uintptr(unsafe.Pointer(achPath)))
return int32(ret1)
}
func PathCompactPathEx(lpszDest LPWSTR, lpszPath string, cchMax UINT, dwFlags DWORD) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall6(pathCompactPathEx, 4,
uintptr(unsafe.Pointer(lpszDest)),
uintptr(unsafe.Pointer(&lpszPathStr[0])),
uintptr(cchMax),
uintptr(dwFlags),
0,
0)
return ret1 != 0
}
func PathCompactPath(hDC HDC, lpszPath LPWSTR, dx UINT) bool {
ret1 := syscall3(pathCompactPath, 3,
uintptr(hDC),
uintptr(unsafe.Pointer(lpszPath)),
uintptr(dx))
return ret1 != 0
}
func PathCreateFromUrlAlloc(pszUrl string, pszPath *LPWSTR, dwReserved DWORD) HRESULT {
pszUrlStr := unicode16FromString(pszUrl)
ret1 := syscall3(pathCreateFromUrlAlloc, 3,
uintptr(unsafe.Pointer(&pszUrlStr[0])),
uintptr(unsafe.Pointer(pszPath)),
uintptr(dwReserved))
return HRESULT(ret1)
}
func PathCreateFromUrl(pszUrl string, pszPath LPWSTR, pcchPath *uint32, dwReserved DWORD) HRESULT {
pszUrlStr := unicode16FromString(pszUrl)
ret1 := syscall6(pathCreateFromUrl, 4,
uintptr(unsafe.Pointer(&pszUrlStr[0])),
uintptr(unsafe.Pointer(pszPath)),
uintptr(unsafe.Pointer(pcchPath)),
uintptr(dwReserved),
0,
0)
return HRESULT(ret1)
}
func PathFileExists(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathFileExists, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathFindExtension(lpszPath string) LPWSTR {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathFindExtension, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return (LPWSTR)(unsafe.Pointer(ret1))
}
func PathFindFileName(lpszPath string) LPWSTR {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathFindFileName, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return (LPWSTR)(unsafe.Pointer(ret1))
}
func PathFindNextComponent(lpszPath string) LPWSTR {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathFindNextComponent, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return (LPWSTR)(unsafe.Pointer(ret1))
}
func PathFindOnPath(lpszFile LPWSTR, lppszOtherDirs *LPCWSTR) bool {
ret1 := syscall3(pathFindOnPath, 2,
uintptr(unsafe.Pointer(lpszFile)),
uintptr(unsafe.Pointer(lppszOtherDirs)),
0)
return ret1 != 0
}
func PathFindSuffixArray(lpszSuffix string, lppszArray *LPCWSTR, dwCount int32) string {
lpszSuffixStr := unicode16FromString(lpszSuffix)
ret1 := syscall3(pathFindSuffixArray, 3,
uintptr(unsafe.Pointer(&lpszSuffixStr[0])),
uintptr(unsafe.Pointer(lppszArray)),
uintptr(dwCount))
return stringFromUnicode16((*uint16)(unsafe.Pointer(ret1)))
}
func PathGetArgs(lpszPath string) LPWSTR {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathGetArgs, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return (LPWSTR)(unsafe.Pointer(ret1))
}
func PathGetCharType(ch WCHAR) UINT {
ret1 := syscall3(pathGetCharType, 1,
uintptr(ch),
0,
0)
return UINT(ret1)
}
func PathGetDriveNumber(lpszPath string) int32 {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathGetDriveNumber, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return int32(ret1)
}
func PathIsContentType(lpszPath string, lpszContentType string) bool {
lpszPathStr := unicode16FromString(lpszPath)
lpszContentTypeStr := unicode16FromString(lpszContentType)
ret1 := syscall3(pathIsContentType, 2,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
uintptr(unsafe.Pointer(&lpszContentTypeStr[0])),
0)
return ret1 != 0
}
func PathIsDirectoryEmpty(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsDirectoryEmpty, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsDirectory(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsDirectory, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsFileSpec(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsFileSpec, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsLFNFileSpec(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsLFNFileSpec, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsNetworkPath(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsNetworkPath, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsPrefix(lpszPrefix string, lpszPath string) bool {
lpszPrefixStr := unicode16FromString(lpszPrefix)
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsPrefix, 2,
uintptr(unsafe.Pointer(&lpszPrefixStr[0])),
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0)
return ret1 != 0
}
func PathIsRelative(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsRelative, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsRoot(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsRoot, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsSameRoot(lpszPath1 string, lpszPath2 string) bool {
lpszPath1Str := unicode16FromString(lpszPath1)
lpszPath2Str := unicode16FromString(lpszPath2)
ret1 := syscall3(pathIsSameRoot, 2,
uintptr(unsafe.Pointer(&lpszPath1Str[0])),
uintptr(unsafe.Pointer(&lpszPath2Str[0])),
0)
return ret1 != 0
}
func PathIsSystemFolder(lpszPath string, dwAttrib DWORD) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsSystemFolder, 2,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
uintptr(dwAttrib),
0)
return ret1 != 0
}
func PathIsUNCServerShare(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsUNCServerShare, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}
func PathIsUNCServer(lpszPath string) bool {
lpszPathStr := unicode16FromString(lpszPath)
ret1 := syscall3(pathIsUNCServer, 1,
uintptr(unsafe.Pointer(&lpszPathStr[0])),
0,
0)
return ret1 != 0
}