slidge-whatsapp 0.2.5__cp311-cp311-manylinux_2_36_aarch64.whl → 0.3.0b0__cp311-cp311-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/config.py +3 -0
- slidge_whatsapp/contact.py +13 -3
- slidge_whatsapp/event.go +135 -60
- slidge_whatsapp/gateway.go +16 -68
- slidge_whatsapp/gateway.py +4 -5
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.h +198 -181
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +166 -152
- slidge_whatsapp/generated/whatsapp.c +1804 -1532
- slidge_whatsapp/generated/whatsapp.go +1150 -1039
- slidge_whatsapp/generated/whatsapp.py +1243 -1118
- slidge_whatsapp/generated/whatsapp_go.h +198 -181
- slidge_whatsapp/go.mod +21 -15
- slidge_whatsapp/go.sum +49 -31
- slidge_whatsapp/group.py +34 -30
- slidge_whatsapp/media/media.go +22 -12
- slidge_whatsapp/session.go +105 -81
- slidge_whatsapp/session.py +46 -14
- slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +4 -4
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_darwin.go +0 -5
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +3 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +40 -20
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +44 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +53 -15
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/fun.go +10 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_unix.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_windows.go +1 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +4 -7
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/callback.go +2 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +11545 -6680
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +527 -273
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3.go +57 -23
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.c +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/.gitignore +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/LICENSE +202 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/README.md +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_gccgo.go +26 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.c +23 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.go +22 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.s +18 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.go +28 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.s +44 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_slow.go +24 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_gccgo_go1.8.go +17 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +38 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.5.go +57 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.6.go +43 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.9.go +37 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/README.md +31 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/console.go +20 -5
- slidge_whatsapp/vendor/github.com/rs/zerolog/log/log.go +131 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/log.go +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/sampler.go +4 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/writer.go +9 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupCipher.go +17 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupSessionBuilder.go +17 -7
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/SenderKeyStore.go +4 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/chain/ChainKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/DefaultLogger.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/Session.go +41 -17
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/SessionCipher.go +64 -30
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/IdentityKeyStore.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SessionStore.go +8 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go +7 -5
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/connlog.go +257 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/database.go +309 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/iter.go +233 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/json.go +47 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/log.go +129 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/massinsert.go +164 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/queryhelper.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/reflectscan.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/transaction.go +180 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgrades.go +250 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgradetable.go +331 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/dualerror.go +33 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/must.go +23 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/cors.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +98 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +36 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/middleware.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +38 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +104 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +104 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/returnonce.go +25 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/ringbuffer.go +139 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncmap.go +94 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncset.go +136 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/callermarshal.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/defaults.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/generics.go +45 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/writer.go +81 -0
- slidge_whatsapp/vendor/go.mau.fi/util/ptr/ptr.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +27 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +4 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/keys.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +32 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +42 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +134 -55
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +34 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +63 -30
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +78 -34
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +157 -55
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +202 -154
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +448 -138
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +106 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +83 -43
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +9 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +42 -18
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +9 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +17 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +10 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +354 -175
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +5 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +170 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +29 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +13 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +344 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.proto +26 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.pb.go → WACompanionReg.pb.go} +211 -89
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.proto → WACompanionReg.proto} +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +173 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +78 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +7463 -5180
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +366 -343
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +485 -135
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +17 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +162 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +192 -52
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +60 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +61 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +952 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +88 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1802 -453
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +92 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +27 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +59 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +435 -109
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +563 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +39 -21
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +267 -79
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +28 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +87 -44
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/signal.go +75 -88
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +86 -65
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +314 -170
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +155 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/03-message-secrets.sql +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/04-privacy-tokens.sql +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/05-account-jid-format.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/06-facebook-uuid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/07-account-lid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/08-lid-mapping.sql +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/09-decryption-buffer.sql +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/10-chat-db-lid-migration-ts.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/upgrades.go +22 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +109 -56
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/botmap.go +210 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +21 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/group.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +9 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +18 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/update.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +59 -37
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/exp/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/exp/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/exp/constraints/constraints.go +54 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/guts.go +50 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/.gitignore +2 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ciphers.go +641 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/client_conn_pool.go +311 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +164 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/databuffer.go +149 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/errors.go +145 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/flow.go +120 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +1702 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +181 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/encode.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/hpack.go +523 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/tables.go +403 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +410 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/pipe.go +184 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +3332 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +3233 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/unencrypted.go +32 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/write.go +381 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched.go +251 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_priority.go +451 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_random.go +77 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_roundrobin.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/go118.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna10.0.0.go +769 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna9.0.0.go +717 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/pre_go118.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/punycode.go +217 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables10.0.0.go +4559 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables11.0.0.go +4653 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables12.0.0.go +4733 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables13.0.0.go +4959 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables9.0.0.go +4486 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie.go +51 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie12.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie13.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trieval.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/request.go +467 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +1 -3
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +93 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +16 -26
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/security_windows.go +44 -5
- slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +4 -2
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +491 -482
- slidge_whatsapp/vendor/golang.org/x/text/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/text/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule.go +336 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go +14 -0
- slidge_whatsapp/vendor/golang.org/x/text/transform/transform.go +709 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/core.go +1071 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go +1815 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +1887 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go +1923 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go +1955 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go +1781 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/composition.go +512 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/forminfo.go +279 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/input.go +109 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/iter.go +458 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/normalize.go +610 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go +7657 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +7693 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go +7710 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go +7760 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go +7637 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/transform.go +88 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/trie.go +54 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +25 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +13 -5
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +81 -19
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/{strings_unsafe_go121.go → strings_unsafe.go} +0 -2
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/merge.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +10 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/{value_unsafe_go121.go → value_unsafe.go} +0 -2
- slidge_whatsapp/vendor/modules.txt +80 -21
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/METADATA +2 -2
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/RECORD +456 -263
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/WHEEL +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
- slidge_whatsapp/vendor/github.com/rs/zerolog/CNAME +0 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/_config.yml +0 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.raw +0 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.raw +0 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrade.go +0 -296
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +0 -94
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +0 -98
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/entry_points.txt +0 -0
|
@@ -511,6 +511,7 @@ var (
|
|
|
511
511
|
procFreeAddrInfoW = modws2_32.NewProc("FreeAddrInfoW")
|
|
512
512
|
procGetAddrInfoW = modws2_32.NewProc("GetAddrInfoW")
|
|
513
513
|
procWSACleanup = modws2_32.NewProc("WSACleanup")
|
|
514
|
+
procWSADuplicateSocketW = modws2_32.NewProc("WSADuplicateSocketW")
|
|
514
515
|
procWSAEnumProtocolsW = modws2_32.NewProc("WSAEnumProtocolsW")
|
|
515
516
|
procWSAGetOverlappedResult = modws2_32.NewProc("WSAGetOverlappedResult")
|
|
516
517
|
procWSAIoctl = modws2_32.NewProc("WSAIoctl")
|
|
@@ -545,25 +546,25 @@ var (
|
|
|
545
546
|
)
|
|
546
547
|
|
|
547
548
|
func cm_Get_DevNode_Status(status *uint32, problemNumber *uint32, devInst DEVINST, flags uint32) (ret CONFIGRET) {
|
|
548
|
-
r0, _, _ := syscall.
|
|
549
|
+
r0, _, _ := syscall.SyscallN(procCM_Get_DevNode_Status.Addr(), uintptr(unsafe.Pointer(status)), uintptr(unsafe.Pointer(problemNumber)), uintptr(devInst), uintptr(flags))
|
|
549
550
|
ret = CONFIGRET(r0)
|
|
550
551
|
return
|
|
551
552
|
}
|
|
552
553
|
|
|
553
554
|
func cm_Get_Device_Interface_List(interfaceClass *GUID, deviceID *uint16, buffer *uint16, bufferLen uint32, flags uint32) (ret CONFIGRET) {
|
|
554
|
-
r0, _, _ := syscall.
|
|
555
|
+
r0, _, _ := syscall.SyscallN(procCM_Get_Device_Interface_ListW.Addr(), uintptr(unsafe.Pointer(interfaceClass)), uintptr(unsafe.Pointer(deviceID)), uintptr(unsafe.Pointer(buffer)), uintptr(bufferLen), uintptr(flags))
|
|
555
556
|
ret = CONFIGRET(r0)
|
|
556
557
|
return
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
func cm_Get_Device_Interface_List_Size(len *uint32, interfaceClass *GUID, deviceID *uint16, flags uint32) (ret CONFIGRET) {
|
|
560
|
-
r0, _, _ := syscall.
|
|
561
|
+
r0, _, _ := syscall.SyscallN(procCM_Get_Device_Interface_List_SizeW.Addr(), uintptr(unsafe.Pointer(len)), uintptr(unsafe.Pointer(interfaceClass)), uintptr(unsafe.Pointer(deviceID)), uintptr(flags))
|
|
561
562
|
ret = CONFIGRET(r0)
|
|
562
563
|
return
|
|
563
564
|
}
|
|
564
565
|
|
|
565
566
|
func cm_MapCrToWin32Err(configRet CONFIGRET, defaultWin32Error Errno) (ret Errno) {
|
|
566
|
-
r0, _, _ := syscall.
|
|
567
|
+
r0, _, _ := syscall.SyscallN(procCM_MapCrToWin32Err.Addr(), uintptr(configRet), uintptr(defaultWin32Error))
|
|
567
568
|
ret = Errno(r0)
|
|
568
569
|
return
|
|
569
570
|
}
|
|
@@ -573,7 +574,7 @@ func AdjustTokenGroups(token Token, resetToDefault bool, newstate *Tokengroups,
|
|
|
573
574
|
if resetToDefault {
|
|
574
575
|
_p0 = 1
|
|
575
576
|
}
|
|
576
|
-
r1, _, e1 := syscall.
|
|
577
|
+
r1, _, e1 := syscall.SyscallN(procAdjustTokenGroups.Addr(), uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
|
|
577
578
|
if r1 == 0 {
|
|
578
579
|
err = errnoErr(e1)
|
|
579
580
|
}
|
|
@@ -585,7 +586,7 @@ func AdjustTokenPrivileges(token Token, disableAllPrivileges bool, newstate *Tok
|
|
|
585
586
|
if disableAllPrivileges {
|
|
586
587
|
_p0 = 1
|
|
587
588
|
}
|
|
588
|
-
r1, _, e1 := syscall.
|
|
589
|
+
r1, _, e1 := syscall.SyscallN(procAdjustTokenPrivileges.Addr(), uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
|
|
589
590
|
if r1 == 0 {
|
|
590
591
|
err = errnoErr(e1)
|
|
591
592
|
}
|
|
@@ -593,7 +594,7 @@ func AdjustTokenPrivileges(token Token, disableAllPrivileges bool, newstate *Tok
|
|
|
593
594
|
}
|
|
594
595
|
|
|
595
596
|
func AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) {
|
|
596
|
-
r1, _, e1 := syscall.
|
|
597
|
+
r1, _, e1 := syscall.SyscallN(procAllocateAndInitializeSid.Addr(), uintptr(unsafe.Pointer(identAuth)), uintptr(subAuth), uintptr(subAuth0), uintptr(subAuth1), uintptr(subAuth2), uintptr(subAuth3), uintptr(subAuth4), uintptr(subAuth5), uintptr(subAuth6), uintptr(subAuth7), uintptr(unsafe.Pointer(sid)))
|
|
597
598
|
if r1 == 0 {
|
|
598
599
|
err = errnoErr(e1)
|
|
599
600
|
}
|
|
@@ -601,7 +602,7 @@ func AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, s
|
|
|
601
602
|
}
|
|
602
603
|
|
|
603
604
|
func buildSecurityDescriptor(owner *TRUSTEE, group *TRUSTEE, countAccessEntries uint32, accessEntries *EXPLICIT_ACCESS, countAuditEntries uint32, auditEntries *EXPLICIT_ACCESS, oldSecurityDescriptor *SECURITY_DESCRIPTOR, sizeNewSecurityDescriptor *uint32, newSecurityDescriptor **SECURITY_DESCRIPTOR) (ret error) {
|
|
604
|
-
r0, _, _ := syscall.
|
|
605
|
+
r0, _, _ := syscall.SyscallN(procBuildSecurityDescriptorW.Addr(), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(countAccessEntries), uintptr(unsafe.Pointer(accessEntries)), uintptr(countAuditEntries), uintptr(unsafe.Pointer(auditEntries)), uintptr(unsafe.Pointer(oldSecurityDescriptor)), uintptr(unsafe.Pointer(sizeNewSecurityDescriptor)), uintptr(unsafe.Pointer(newSecurityDescriptor)))
|
|
605
606
|
if r0 != 0 {
|
|
606
607
|
ret = syscall.Errno(r0)
|
|
607
608
|
}
|
|
@@ -609,7 +610,7 @@ func buildSecurityDescriptor(owner *TRUSTEE, group *TRUSTEE, countAccessEntries
|
|
|
609
610
|
}
|
|
610
611
|
|
|
611
612
|
func ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err error) {
|
|
612
|
-
r1, _, e1 := syscall.
|
|
613
|
+
r1, _, e1 := syscall.SyscallN(procChangeServiceConfig2W.Addr(), uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(info)))
|
|
613
614
|
if r1 == 0 {
|
|
614
615
|
err = errnoErr(e1)
|
|
615
616
|
}
|
|
@@ -617,7 +618,7 @@ func ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err err
|
|
|
617
618
|
}
|
|
618
619
|
|
|
619
620
|
func ChangeServiceConfig(service Handle, serviceType uint32, startType uint32, errorControl uint32, binaryPathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16, displayName *uint16) (err error) {
|
|
620
|
-
r1, _, e1 := syscall.
|
|
621
|
+
r1, _, e1 := syscall.SyscallN(procChangeServiceConfigW.Addr(), uintptr(service), uintptr(serviceType), uintptr(startType), uintptr(errorControl), uintptr(unsafe.Pointer(binaryPathName)), uintptr(unsafe.Pointer(loadOrderGroup)), uintptr(unsafe.Pointer(tagId)), uintptr(unsafe.Pointer(dependencies)), uintptr(unsafe.Pointer(serviceStartName)), uintptr(unsafe.Pointer(password)), uintptr(unsafe.Pointer(displayName)))
|
|
621
622
|
if r1 == 0 {
|
|
622
623
|
err = errnoErr(e1)
|
|
623
624
|
}
|
|
@@ -625,7 +626,7 @@ func ChangeServiceConfig(service Handle, serviceType uint32, startType uint32, e
|
|
|
625
626
|
}
|
|
626
627
|
|
|
627
628
|
func checkTokenMembership(tokenHandle Token, sidToCheck *SID, isMember *int32) (err error) {
|
|
628
|
-
r1, _, e1 := syscall.
|
|
629
|
+
r1, _, e1 := syscall.SyscallN(procCheckTokenMembership.Addr(), uintptr(tokenHandle), uintptr(unsafe.Pointer(sidToCheck)), uintptr(unsafe.Pointer(isMember)))
|
|
629
630
|
if r1 == 0 {
|
|
630
631
|
err = errnoErr(e1)
|
|
631
632
|
}
|
|
@@ -633,7 +634,7 @@ func checkTokenMembership(tokenHandle Token, sidToCheck *SID, isMember *int32) (
|
|
|
633
634
|
}
|
|
634
635
|
|
|
635
636
|
func CloseServiceHandle(handle Handle) (err error) {
|
|
636
|
-
r1, _, e1 := syscall.
|
|
637
|
+
r1, _, e1 := syscall.SyscallN(procCloseServiceHandle.Addr(), uintptr(handle))
|
|
637
638
|
if r1 == 0 {
|
|
638
639
|
err = errnoErr(e1)
|
|
639
640
|
}
|
|
@@ -641,7 +642,7 @@ func CloseServiceHandle(handle Handle) (err error) {
|
|
|
641
642
|
}
|
|
642
643
|
|
|
643
644
|
func ControlService(service Handle, control uint32, status *SERVICE_STATUS) (err error) {
|
|
644
|
-
r1, _, e1 := syscall.
|
|
645
|
+
r1, _, e1 := syscall.SyscallN(procControlService.Addr(), uintptr(service), uintptr(control), uintptr(unsafe.Pointer(status)))
|
|
645
646
|
if r1 == 0 {
|
|
646
647
|
err = errnoErr(e1)
|
|
647
648
|
}
|
|
@@ -649,7 +650,7 @@ func ControlService(service Handle, control uint32, status *SERVICE_STATUS) (err
|
|
|
649
650
|
}
|
|
650
651
|
|
|
651
652
|
func convertSecurityDescriptorToStringSecurityDescriptor(sd *SECURITY_DESCRIPTOR, revision uint32, securityInformation SECURITY_INFORMATION, str **uint16, strLen *uint32) (err error) {
|
|
652
|
-
r1, _, e1 := syscall.
|
|
653
|
+
r1, _, e1 := syscall.SyscallN(procConvertSecurityDescriptorToStringSecurityDescriptorW.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(revision), uintptr(securityInformation), uintptr(unsafe.Pointer(str)), uintptr(unsafe.Pointer(strLen)))
|
|
653
654
|
if r1 == 0 {
|
|
654
655
|
err = errnoErr(e1)
|
|
655
656
|
}
|
|
@@ -657,7 +658,7 @@ func convertSecurityDescriptorToStringSecurityDescriptor(sd *SECURITY_DESCRIPTOR
|
|
|
657
658
|
}
|
|
658
659
|
|
|
659
660
|
func ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) {
|
|
660
|
-
r1, _, e1 := syscall.
|
|
661
|
+
r1, _, e1 := syscall.SyscallN(procConvertSidToStringSidW.Addr(), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(stringSid)))
|
|
661
662
|
if r1 == 0 {
|
|
662
663
|
err = errnoErr(e1)
|
|
663
664
|
}
|
|
@@ -674,7 +675,7 @@ func convertStringSecurityDescriptorToSecurityDescriptor(str string, revision ui
|
|
|
674
675
|
}
|
|
675
676
|
|
|
676
677
|
func _convertStringSecurityDescriptorToSecurityDescriptor(str *uint16, revision uint32, sd **SECURITY_DESCRIPTOR, size *uint32) (err error) {
|
|
677
|
-
r1, _, e1 := syscall.
|
|
678
|
+
r1, _, e1 := syscall.SyscallN(procConvertStringSecurityDescriptorToSecurityDescriptorW.Addr(), uintptr(unsafe.Pointer(str)), uintptr(revision), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(size)))
|
|
678
679
|
if r1 == 0 {
|
|
679
680
|
err = errnoErr(e1)
|
|
680
681
|
}
|
|
@@ -682,7 +683,7 @@ func _convertStringSecurityDescriptorToSecurityDescriptor(str *uint16, revision
|
|
|
682
683
|
}
|
|
683
684
|
|
|
684
685
|
func ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) {
|
|
685
|
-
r1, _, e1 := syscall.
|
|
686
|
+
r1, _, e1 := syscall.SyscallN(procConvertStringSidToSidW.Addr(), uintptr(unsafe.Pointer(stringSid)), uintptr(unsafe.Pointer(sid)))
|
|
686
687
|
if r1 == 0 {
|
|
687
688
|
err = errnoErr(e1)
|
|
688
689
|
}
|
|
@@ -690,7 +691,7 @@ func ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) {
|
|
|
690
691
|
}
|
|
691
692
|
|
|
692
693
|
func CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) {
|
|
693
|
-
r1, _, e1 := syscall.
|
|
694
|
+
r1, _, e1 := syscall.SyscallN(procCopySid.Addr(), uintptr(destSidLen), uintptr(unsafe.Pointer(destSid)), uintptr(unsafe.Pointer(srcSid)))
|
|
694
695
|
if r1 == 0 {
|
|
695
696
|
err = errnoErr(e1)
|
|
696
697
|
}
|
|
@@ -702,7 +703,7 @@ func CreateProcessAsUser(token Token, appName *uint16, commandLine *uint16, proc
|
|
|
702
703
|
if inheritHandles {
|
|
703
704
|
_p0 = 1
|
|
704
705
|
}
|
|
705
|
-
r1, _, e1 := syscall.
|
|
706
|
+
r1, _, e1 := syscall.SyscallN(procCreateProcessAsUserW.Addr(), uintptr(token), uintptr(unsafe.Pointer(appName)), uintptr(unsafe.Pointer(commandLine)), uintptr(unsafe.Pointer(procSecurity)), uintptr(unsafe.Pointer(threadSecurity)), uintptr(_p0), uintptr(creationFlags), uintptr(unsafe.Pointer(env)), uintptr(unsafe.Pointer(currentDir)), uintptr(unsafe.Pointer(startupInfo)), uintptr(unsafe.Pointer(outProcInfo)))
|
|
706
707
|
if r1 == 0 {
|
|
707
708
|
err = errnoErr(e1)
|
|
708
709
|
}
|
|
@@ -710,7 +711,7 @@ func CreateProcessAsUser(token Token, appName *uint16, commandLine *uint16, proc
|
|
|
710
711
|
}
|
|
711
712
|
|
|
712
713
|
func CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access uint32, srvType uint32, startType uint32, errCtl uint32, pathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (handle Handle, err error) {
|
|
713
|
-
r0, _, e1 := syscall.
|
|
714
|
+
r0, _, e1 := syscall.SyscallN(procCreateServiceW.Addr(), uintptr(mgr), uintptr(unsafe.Pointer(serviceName)), uintptr(unsafe.Pointer(displayName)), uintptr(access), uintptr(srvType), uintptr(startType), uintptr(errCtl), uintptr(unsafe.Pointer(pathName)), uintptr(unsafe.Pointer(loadOrderGroup)), uintptr(unsafe.Pointer(tagId)), uintptr(unsafe.Pointer(dependencies)), uintptr(unsafe.Pointer(serviceStartName)), uintptr(unsafe.Pointer(password)))
|
|
714
715
|
handle = Handle(r0)
|
|
715
716
|
if handle == 0 {
|
|
716
717
|
err = errnoErr(e1)
|
|
@@ -719,7 +720,7 @@ func CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access
|
|
|
719
720
|
}
|
|
720
721
|
|
|
721
722
|
func createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, sizeSid *uint32) (err error) {
|
|
722
|
-
r1, _, e1 := syscall.
|
|
723
|
+
r1, _, e1 := syscall.SyscallN(procCreateWellKnownSid.Addr(), uintptr(sidType), uintptr(unsafe.Pointer(domainSid)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sizeSid)))
|
|
723
724
|
if r1 == 0 {
|
|
724
725
|
err = errnoErr(e1)
|
|
725
726
|
}
|
|
@@ -727,7 +728,7 @@ func createWellKnownSid(sidType WELL_KNOWN_SID_TYPE, domainSid *SID, sid *SID, s
|
|
|
727
728
|
}
|
|
728
729
|
|
|
729
730
|
func CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16, provtype uint32, flags uint32) (err error) {
|
|
730
|
-
r1, _, e1 := syscall.
|
|
731
|
+
r1, _, e1 := syscall.SyscallN(procCryptAcquireContextW.Addr(), uintptr(unsafe.Pointer(provhandle)), uintptr(unsafe.Pointer(container)), uintptr(unsafe.Pointer(provider)), uintptr(provtype), uintptr(flags))
|
|
731
732
|
if r1 == 0 {
|
|
732
733
|
err = errnoErr(e1)
|
|
733
734
|
}
|
|
@@ -735,7 +736,7 @@ func CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16
|
|
|
735
736
|
}
|
|
736
737
|
|
|
737
738
|
func CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) {
|
|
738
|
-
r1, _, e1 := syscall.
|
|
739
|
+
r1, _, e1 := syscall.SyscallN(procCryptGenRandom.Addr(), uintptr(provhandle), uintptr(buflen), uintptr(unsafe.Pointer(buf)))
|
|
739
740
|
if r1 == 0 {
|
|
740
741
|
err = errnoErr(e1)
|
|
741
742
|
}
|
|
@@ -743,7 +744,7 @@ func CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) {
|
|
|
743
744
|
}
|
|
744
745
|
|
|
745
746
|
func CryptReleaseContext(provhandle Handle, flags uint32) (err error) {
|
|
746
|
-
r1, _, e1 := syscall.
|
|
747
|
+
r1, _, e1 := syscall.SyscallN(procCryptReleaseContext.Addr(), uintptr(provhandle), uintptr(flags))
|
|
747
748
|
if r1 == 0 {
|
|
748
749
|
err = errnoErr(e1)
|
|
749
750
|
}
|
|
@@ -751,7 +752,7 @@ func CryptReleaseContext(provhandle Handle, flags uint32) (err error) {
|
|
|
751
752
|
}
|
|
752
753
|
|
|
753
754
|
func DeleteService(service Handle) (err error) {
|
|
754
|
-
r1, _, e1 := syscall.
|
|
755
|
+
r1, _, e1 := syscall.SyscallN(procDeleteService.Addr(), uintptr(service))
|
|
755
756
|
if r1 == 0 {
|
|
756
757
|
err = errnoErr(e1)
|
|
757
758
|
}
|
|
@@ -759,7 +760,7 @@ func DeleteService(service Handle) (err error) {
|
|
|
759
760
|
}
|
|
760
761
|
|
|
761
762
|
func DeregisterEventSource(handle Handle) (err error) {
|
|
762
|
-
r1, _, e1 := syscall.
|
|
763
|
+
r1, _, e1 := syscall.SyscallN(procDeregisterEventSource.Addr(), uintptr(handle))
|
|
763
764
|
if r1 == 0 {
|
|
764
765
|
err = errnoErr(e1)
|
|
765
766
|
}
|
|
@@ -767,7 +768,7 @@ func DeregisterEventSource(handle Handle) (err error) {
|
|
|
767
768
|
}
|
|
768
769
|
|
|
769
770
|
func DuplicateTokenEx(existingToken Token, desiredAccess uint32, tokenAttributes *SecurityAttributes, impersonationLevel uint32, tokenType uint32, newToken *Token) (err error) {
|
|
770
|
-
r1, _, e1 := syscall.
|
|
771
|
+
r1, _, e1 := syscall.SyscallN(procDuplicateTokenEx.Addr(), uintptr(existingToken), uintptr(desiredAccess), uintptr(unsafe.Pointer(tokenAttributes)), uintptr(impersonationLevel), uintptr(tokenType), uintptr(unsafe.Pointer(newToken)))
|
|
771
772
|
if r1 == 0 {
|
|
772
773
|
err = errnoErr(e1)
|
|
773
774
|
}
|
|
@@ -775,7 +776,7 @@ func DuplicateTokenEx(existingToken Token, desiredAccess uint32, tokenAttributes
|
|
|
775
776
|
}
|
|
776
777
|
|
|
777
778
|
func EnumDependentServices(service Handle, activityState uint32, services *ENUM_SERVICE_STATUS, buffSize uint32, bytesNeeded *uint32, servicesReturned *uint32) (err error) {
|
|
778
|
-
r1, _, e1 := syscall.
|
|
779
|
+
r1, _, e1 := syscall.SyscallN(procEnumDependentServicesW.Addr(), uintptr(service), uintptr(activityState), uintptr(unsafe.Pointer(services)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)), uintptr(unsafe.Pointer(servicesReturned)))
|
|
779
780
|
if r1 == 0 {
|
|
780
781
|
err = errnoErr(e1)
|
|
781
782
|
}
|
|
@@ -783,7 +784,7 @@ func EnumDependentServices(service Handle, activityState uint32, services *ENUM_
|
|
|
783
784
|
}
|
|
784
785
|
|
|
785
786
|
func EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) {
|
|
786
|
-
r1, _, e1 := syscall.
|
|
787
|
+
r1, _, e1 := syscall.SyscallN(procEnumServicesStatusExW.Addr(), uintptr(mgr), uintptr(infoLevel), uintptr(serviceType), uintptr(serviceState), uintptr(unsafe.Pointer(services)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)), uintptr(unsafe.Pointer(servicesReturned)), uintptr(unsafe.Pointer(resumeHandle)), uintptr(unsafe.Pointer(groupName)))
|
|
787
788
|
if r1 == 0 {
|
|
788
789
|
err = errnoErr(e1)
|
|
789
790
|
}
|
|
@@ -791,13 +792,13 @@ func EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serv
|
|
|
791
792
|
}
|
|
792
793
|
|
|
793
794
|
func EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) {
|
|
794
|
-
r0, _, _ := syscall.
|
|
795
|
+
r0, _, _ := syscall.SyscallN(procEqualSid.Addr(), uintptr(unsafe.Pointer(sid1)), uintptr(unsafe.Pointer(sid2)))
|
|
795
796
|
isEqual = r0 != 0
|
|
796
797
|
return
|
|
797
798
|
}
|
|
798
799
|
|
|
799
800
|
func FreeSid(sid *SID) (err error) {
|
|
800
|
-
r1, _, e1 := syscall.
|
|
801
|
+
r1, _, e1 := syscall.SyscallN(procFreeSid.Addr(), uintptr(unsafe.Pointer(sid)))
|
|
801
802
|
if r1 != 0 {
|
|
802
803
|
err = errnoErr(e1)
|
|
803
804
|
}
|
|
@@ -805,7 +806,7 @@ func FreeSid(sid *SID) (err error) {
|
|
|
805
806
|
}
|
|
806
807
|
|
|
807
808
|
func GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (err error) {
|
|
808
|
-
r1, _, e1 := syscall.
|
|
809
|
+
r1, _, e1 := syscall.SyscallN(procGetAce.Addr(), uintptr(unsafe.Pointer(acl)), uintptr(aceIndex), uintptr(unsafe.Pointer(pAce)))
|
|
809
810
|
if r1 == 0 {
|
|
810
811
|
err = errnoErr(e1)
|
|
811
812
|
}
|
|
@@ -813,7 +814,7 @@ func GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (err error) {
|
|
|
813
814
|
}
|
|
814
815
|
|
|
815
816
|
func GetLengthSid(sid *SID) (len uint32) {
|
|
816
|
-
r0, _, _ := syscall.
|
|
817
|
+
r0, _, _ := syscall.SyscallN(procGetLengthSid.Addr(), uintptr(unsafe.Pointer(sid)))
|
|
817
818
|
len = uint32(r0)
|
|
818
819
|
return
|
|
819
820
|
}
|
|
@@ -828,7 +829,7 @@ func getNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, security
|
|
|
828
829
|
}
|
|
829
830
|
|
|
830
831
|
func _getNamedSecurityInfo(objectName *uint16, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) {
|
|
831
|
-
r0, _, _ := syscall.
|
|
832
|
+
r0, _, _ := syscall.SyscallN(procGetNamedSecurityInfoW.Addr(), uintptr(unsafe.Pointer(objectName)), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(sd)))
|
|
832
833
|
if r0 != 0 {
|
|
833
834
|
ret = syscall.Errno(r0)
|
|
834
835
|
}
|
|
@@ -836,7 +837,7 @@ func _getNamedSecurityInfo(objectName *uint16, objectType SE_OBJECT_TYPE, securi
|
|
|
836
837
|
}
|
|
837
838
|
|
|
838
839
|
func getSecurityDescriptorControl(sd *SECURITY_DESCRIPTOR, control *SECURITY_DESCRIPTOR_CONTROL, revision *uint32) (err error) {
|
|
839
|
-
r1, _, e1 := syscall.
|
|
840
|
+
r1, _, e1 := syscall.SyscallN(procGetSecurityDescriptorControl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(control)), uintptr(unsafe.Pointer(revision)))
|
|
840
841
|
if r1 == 0 {
|
|
841
842
|
err = errnoErr(e1)
|
|
842
843
|
}
|
|
@@ -852,7 +853,7 @@ func getSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent *bool, dacl
|
|
|
852
853
|
if *daclDefaulted {
|
|
853
854
|
_p1 = 1
|
|
854
855
|
}
|
|
855
|
-
r1, _, e1 := syscall.
|
|
856
|
+
r1, _, e1 := syscall.SyscallN(procGetSecurityDescriptorDacl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(&_p1)))
|
|
856
857
|
*daclPresent = _p0 != 0
|
|
857
858
|
*daclDefaulted = _p1 != 0
|
|
858
859
|
if r1 == 0 {
|
|
@@ -866,7 +867,7 @@ func getSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group **SID, groupDefau
|
|
|
866
867
|
if *groupDefaulted {
|
|
867
868
|
_p0 = 1
|
|
868
869
|
}
|
|
869
|
-
r1, _, e1 := syscall.
|
|
870
|
+
r1, _, e1 := syscall.SyscallN(procGetSecurityDescriptorGroup.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(&_p0)))
|
|
870
871
|
*groupDefaulted = _p0 != 0
|
|
871
872
|
if r1 == 0 {
|
|
872
873
|
err = errnoErr(e1)
|
|
@@ -875,7 +876,7 @@ func getSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group **SID, groupDefau
|
|
|
875
876
|
}
|
|
876
877
|
|
|
877
878
|
func getSecurityDescriptorLength(sd *SECURITY_DESCRIPTOR) (len uint32) {
|
|
878
|
-
r0, _, _ := syscall.
|
|
879
|
+
r0, _, _ := syscall.SyscallN(procGetSecurityDescriptorLength.Addr(), uintptr(unsafe.Pointer(sd)))
|
|
879
880
|
len = uint32(r0)
|
|
880
881
|
return
|
|
881
882
|
}
|
|
@@ -885,7 +886,7 @@ func getSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner **SID, ownerDefau
|
|
|
885
886
|
if *ownerDefaulted {
|
|
886
887
|
_p0 = 1
|
|
887
888
|
}
|
|
888
|
-
r1, _, e1 := syscall.
|
|
889
|
+
r1, _, e1 := syscall.SyscallN(procGetSecurityDescriptorOwner.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(&_p0)))
|
|
889
890
|
*ownerDefaulted = _p0 != 0
|
|
890
891
|
if r1 == 0 {
|
|
891
892
|
err = errnoErr(e1)
|
|
@@ -894,7 +895,7 @@ func getSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner **SID, ownerDefau
|
|
|
894
895
|
}
|
|
895
896
|
|
|
896
897
|
func getSecurityDescriptorRMControl(sd *SECURITY_DESCRIPTOR, rmControl *uint8) (ret error) {
|
|
897
|
-
r0, _, _ := syscall.
|
|
898
|
+
r0, _, _ := syscall.SyscallN(procGetSecurityDescriptorRMControl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(rmControl)))
|
|
898
899
|
if r0 != 0 {
|
|
899
900
|
ret = syscall.Errno(r0)
|
|
900
901
|
}
|
|
@@ -910,7 +911,7 @@ func getSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent *bool, sacl
|
|
|
910
911
|
if *saclDefaulted {
|
|
911
912
|
_p1 = 1
|
|
912
913
|
}
|
|
913
|
-
r1, _, e1 := syscall.
|
|
914
|
+
r1, _, e1 := syscall.SyscallN(procGetSecurityDescriptorSacl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(&_p1)))
|
|
914
915
|
*saclPresent = _p0 != 0
|
|
915
916
|
*saclDefaulted = _p1 != 0
|
|
916
917
|
if r1 == 0 {
|
|
@@ -920,7 +921,7 @@ func getSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent *bool, sacl
|
|
|
920
921
|
}
|
|
921
922
|
|
|
922
923
|
func getSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner **SID, group **SID, dacl **ACL, sacl **ACL, sd **SECURITY_DESCRIPTOR) (ret error) {
|
|
923
|
-
r0, _, _ := syscall.
|
|
924
|
+
r0, _, _ := syscall.SyscallN(procGetSecurityInfo.Addr(), uintptr(handle), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(sd)))
|
|
924
925
|
if r0 != 0 {
|
|
925
926
|
ret = syscall.Errno(r0)
|
|
926
927
|
}
|
|
@@ -928,25 +929,25 @@ func getSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformati
|
|
|
928
929
|
}
|
|
929
930
|
|
|
930
931
|
func getSidIdentifierAuthority(sid *SID) (authority *SidIdentifierAuthority) {
|
|
931
|
-
r0, _, _ := syscall.
|
|
932
|
+
r0, _, _ := syscall.SyscallN(procGetSidIdentifierAuthority.Addr(), uintptr(unsafe.Pointer(sid)))
|
|
932
933
|
authority = (*SidIdentifierAuthority)(unsafe.Pointer(r0))
|
|
933
934
|
return
|
|
934
935
|
}
|
|
935
936
|
|
|
936
937
|
func getSidSubAuthority(sid *SID, index uint32) (subAuthority *uint32) {
|
|
937
|
-
r0, _, _ := syscall.
|
|
938
|
+
r0, _, _ := syscall.SyscallN(procGetSidSubAuthority.Addr(), uintptr(unsafe.Pointer(sid)), uintptr(index))
|
|
938
939
|
subAuthority = (*uint32)(unsafe.Pointer(r0))
|
|
939
940
|
return
|
|
940
941
|
}
|
|
941
942
|
|
|
942
943
|
func getSidSubAuthorityCount(sid *SID) (count *uint8) {
|
|
943
|
-
r0, _, _ := syscall.
|
|
944
|
+
r0, _, _ := syscall.SyscallN(procGetSidSubAuthorityCount.Addr(), uintptr(unsafe.Pointer(sid)))
|
|
944
945
|
count = (*uint8)(unsafe.Pointer(r0))
|
|
945
946
|
return
|
|
946
947
|
}
|
|
947
948
|
|
|
948
949
|
func GetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) {
|
|
949
|
-
r1, _, e1 := syscall.
|
|
950
|
+
r1, _, e1 := syscall.SyscallN(procGetTokenInformation.Addr(), uintptr(token), uintptr(infoClass), uintptr(unsafe.Pointer(info)), uintptr(infoLen), uintptr(unsafe.Pointer(returnedLen)))
|
|
950
951
|
if r1 == 0 {
|
|
951
952
|
err = errnoErr(e1)
|
|
952
953
|
}
|
|
@@ -954,7 +955,7 @@ func GetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint
|
|
|
954
955
|
}
|
|
955
956
|
|
|
956
957
|
func ImpersonateSelf(impersonationlevel uint32) (err error) {
|
|
957
|
-
r1, _, e1 := syscall.
|
|
958
|
+
r1, _, e1 := syscall.SyscallN(procImpersonateSelf.Addr(), uintptr(impersonationlevel))
|
|
958
959
|
if r1 == 0 {
|
|
959
960
|
err = errnoErr(e1)
|
|
960
961
|
}
|
|
@@ -962,7 +963,7 @@ func ImpersonateSelf(impersonationlevel uint32) (err error) {
|
|
|
962
963
|
}
|
|
963
964
|
|
|
964
965
|
func initializeSecurityDescriptor(absoluteSD *SECURITY_DESCRIPTOR, revision uint32) (err error) {
|
|
965
|
-
r1, _, e1 := syscall.
|
|
966
|
+
r1, _, e1 := syscall.SyscallN(procInitializeSecurityDescriptor.Addr(), uintptr(unsafe.Pointer(absoluteSD)), uintptr(revision))
|
|
966
967
|
if r1 == 0 {
|
|
967
968
|
err = errnoErr(e1)
|
|
968
969
|
}
|
|
@@ -978,7 +979,7 @@ func InitiateSystemShutdownEx(machineName *uint16, message *uint16, timeout uint
|
|
|
978
979
|
if rebootAfterShutdown {
|
|
979
980
|
_p1 = 1
|
|
980
981
|
}
|
|
981
|
-
r1, _, e1 := syscall.
|
|
982
|
+
r1, _, e1 := syscall.SyscallN(procInitiateSystemShutdownExW.Addr(), uintptr(unsafe.Pointer(machineName)), uintptr(unsafe.Pointer(message)), uintptr(timeout), uintptr(_p0), uintptr(_p1), uintptr(reason))
|
|
982
983
|
if r1 == 0 {
|
|
983
984
|
err = errnoErr(e1)
|
|
984
985
|
}
|
|
@@ -986,7 +987,7 @@ func InitiateSystemShutdownEx(machineName *uint16, message *uint16, timeout uint
|
|
|
986
987
|
}
|
|
987
988
|
|
|
988
989
|
func isTokenRestricted(tokenHandle Token) (ret bool, err error) {
|
|
989
|
-
r0, _, e1 := syscall.
|
|
990
|
+
r0, _, e1 := syscall.SyscallN(procIsTokenRestricted.Addr(), uintptr(tokenHandle))
|
|
990
991
|
ret = r0 != 0
|
|
991
992
|
if !ret {
|
|
992
993
|
err = errnoErr(e1)
|
|
@@ -995,25 +996,25 @@ func isTokenRestricted(tokenHandle Token) (ret bool, err error) {
|
|
|
995
996
|
}
|
|
996
997
|
|
|
997
998
|
func isValidSecurityDescriptor(sd *SECURITY_DESCRIPTOR) (isValid bool) {
|
|
998
|
-
r0, _, _ := syscall.
|
|
999
|
+
r0, _, _ := syscall.SyscallN(procIsValidSecurityDescriptor.Addr(), uintptr(unsafe.Pointer(sd)))
|
|
999
1000
|
isValid = r0 != 0
|
|
1000
1001
|
return
|
|
1001
1002
|
}
|
|
1002
1003
|
|
|
1003
1004
|
func isValidSid(sid *SID) (isValid bool) {
|
|
1004
|
-
r0, _, _ := syscall.
|
|
1005
|
+
r0, _, _ := syscall.SyscallN(procIsValidSid.Addr(), uintptr(unsafe.Pointer(sid)))
|
|
1005
1006
|
isValid = r0 != 0
|
|
1006
1007
|
return
|
|
1007
1008
|
}
|
|
1008
1009
|
|
|
1009
1010
|
func isWellKnownSid(sid *SID, sidType WELL_KNOWN_SID_TYPE) (isWellKnown bool) {
|
|
1010
|
-
r0, _, _ := syscall.
|
|
1011
|
+
r0, _, _ := syscall.SyscallN(procIsWellKnownSid.Addr(), uintptr(unsafe.Pointer(sid)), uintptr(sidType))
|
|
1011
1012
|
isWellKnown = r0 != 0
|
|
1012
1013
|
return
|
|
1013
1014
|
}
|
|
1014
1015
|
|
|
1015
1016
|
func LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, sidLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) {
|
|
1016
|
-
r1, _, e1 := syscall.
|
|
1017
|
+
r1, _, e1 := syscall.SyscallN(procLookupAccountNameW.Addr(), uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(accountName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sidLen)), uintptr(unsafe.Pointer(refdDomainName)), uintptr(unsafe.Pointer(refdDomainNameLen)), uintptr(unsafe.Pointer(use)))
|
|
1017
1018
|
if r1 == 0 {
|
|
1018
1019
|
err = errnoErr(e1)
|
|
1019
1020
|
}
|
|
@@ -1021,7 +1022,7 @@ func LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, sidLen
|
|
|
1021
1022
|
}
|
|
1022
1023
|
|
|
1023
1024
|
func LookupAccountSid(systemName *uint16, sid *SID, name *uint16, nameLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) {
|
|
1024
|
-
r1, _, e1 := syscall.
|
|
1025
|
+
r1, _, e1 := syscall.SyscallN(procLookupAccountSidW.Addr(), uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(refdDomainName)), uintptr(unsafe.Pointer(refdDomainNameLen)), uintptr(unsafe.Pointer(use)))
|
|
1025
1026
|
if r1 == 0 {
|
|
1026
1027
|
err = errnoErr(e1)
|
|
1027
1028
|
}
|
|
@@ -1029,7 +1030,7 @@ func LookupAccountSid(systemName *uint16, sid *SID, name *uint16, nameLen *uint3
|
|
|
1029
1030
|
}
|
|
1030
1031
|
|
|
1031
1032
|
func LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (err error) {
|
|
1032
|
-
r1, _, e1 := syscall.
|
|
1033
|
+
r1, _, e1 := syscall.SyscallN(procLookupPrivilegeValueW.Addr(), uintptr(unsafe.Pointer(systemname)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(luid)))
|
|
1033
1034
|
if r1 == 0 {
|
|
1034
1035
|
err = errnoErr(e1)
|
|
1035
1036
|
}
|
|
@@ -1037,7 +1038,7 @@ func LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (err err
|
|
|
1037
1038
|
}
|
|
1038
1039
|
|
|
1039
1040
|
func makeAbsoluteSD(selfRelativeSD *SECURITY_DESCRIPTOR, absoluteSD *SECURITY_DESCRIPTOR, absoluteSDSize *uint32, dacl *ACL, daclSize *uint32, sacl *ACL, saclSize *uint32, owner *SID, ownerSize *uint32, group *SID, groupSize *uint32) (err error) {
|
|
1040
|
-
r1, _, e1 := syscall.
|
|
1041
|
+
r1, _, e1 := syscall.SyscallN(procMakeAbsoluteSD.Addr(), uintptr(unsafe.Pointer(selfRelativeSD)), uintptr(unsafe.Pointer(absoluteSD)), uintptr(unsafe.Pointer(absoluteSDSize)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(daclSize)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(saclSize)), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(ownerSize)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(groupSize)))
|
|
1041
1042
|
if r1 == 0 {
|
|
1042
1043
|
err = errnoErr(e1)
|
|
1043
1044
|
}
|
|
@@ -1045,7 +1046,7 @@ func makeAbsoluteSD(selfRelativeSD *SECURITY_DESCRIPTOR, absoluteSD *SECURITY_DE
|
|
|
1045
1046
|
}
|
|
1046
1047
|
|
|
1047
1048
|
func makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURITY_DESCRIPTOR, selfRelativeSDSize *uint32) (err error) {
|
|
1048
|
-
r1, _, e1 := syscall.
|
|
1049
|
+
r1, _, e1 := syscall.SyscallN(procMakeSelfRelativeSD.Addr(), uintptr(unsafe.Pointer(absoluteSD)), uintptr(unsafe.Pointer(selfRelativeSD)), uintptr(unsafe.Pointer(selfRelativeSDSize)))
|
|
1049
1050
|
if r1 == 0 {
|
|
1050
1051
|
err = errnoErr(e1)
|
|
1051
1052
|
}
|
|
@@ -1053,7 +1054,7 @@ func makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURIT
|
|
|
1053
1054
|
}
|
|
1054
1055
|
|
|
1055
1056
|
func NotifyServiceStatusChange(service Handle, notifyMask uint32, notifier *SERVICE_NOTIFY) (ret error) {
|
|
1056
|
-
r0, _, _ := syscall.
|
|
1057
|
+
r0, _, _ := syscall.SyscallN(procNotifyServiceStatusChangeW.Addr(), uintptr(service), uintptr(notifyMask), uintptr(unsafe.Pointer(notifier)))
|
|
1057
1058
|
if r0 != 0 {
|
|
1058
1059
|
ret = syscall.Errno(r0)
|
|
1059
1060
|
}
|
|
@@ -1061,7 +1062,7 @@ func NotifyServiceStatusChange(service Handle, notifyMask uint32, notifier *SERV
|
|
|
1061
1062
|
}
|
|
1062
1063
|
|
|
1063
1064
|
func OpenProcessToken(process Handle, access uint32, token *Token) (err error) {
|
|
1064
|
-
r1, _, e1 := syscall.
|
|
1065
|
+
r1, _, e1 := syscall.SyscallN(procOpenProcessToken.Addr(), uintptr(process), uintptr(access), uintptr(unsafe.Pointer(token)))
|
|
1065
1066
|
if r1 == 0 {
|
|
1066
1067
|
err = errnoErr(e1)
|
|
1067
1068
|
}
|
|
@@ -1069,7 +1070,7 @@ func OpenProcessToken(process Handle, access uint32, token *Token) (err error) {
|
|
|
1069
1070
|
}
|
|
1070
1071
|
|
|
1071
1072
|
func OpenSCManager(machineName *uint16, databaseName *uint16, access uint32) (handle Handle, err error) {
|
|
1072
|
-
r0, _, e1 := syscall.
|
|
1073
|
+
r0, _, e1 := syscall.SyscallN(procOpenSCManagerW.Addr(), uintptr(unsafe.Pointer(machineName)), uintptr(unsafe.Pointer(databaseName)), uintptr(access))
|
|
1073
1074
|
handle = Handle(r0)
|
|
1074
1075
|
if handle == 0 {
|
|
1075
1076
|
err = errnoErr(e1)
|
|
@@ -1078,7 +1079,7 @@ func OpenSCManager(machineName *uint16, databaseName *uint16, access uint32) (ha
|
|
|
1078
1079
|
}
|
|
1079
1080
|
|
|
1080
1081
|
func OpenService(mgr Handle, serviceName *uint16, access uint32) (handle Handle, err error) {
|
|
1081
|
-
r0, _, e1 := syscall.
|
|
1082
|
+
r0, _, e1 := syscall.SyscallN(procOpenServiceW.Addr(), uintptr(mgr), uintptr(unsafe.Pointer(serviceName)), uintptr(access))
|
|
1082
1083
|
handle = Handle(r0)
|
|
1083
1084
|
if handle == 0 {
|
|
1084
1085
|
err = errnoErr(e1)
|
|
@@ -1091,7 +1092,7 @@ func OpenThreadToken(thread Handle, access uint32, openAsSelf bool, token *Token
|
|
|
1091
1092
|
if openAsSelf {
|
|
1092
1093
|
_p0 = 1
|
|
1093
1094
|
}
|
|
1094
|
-
r1, _, e1 := syscall.
|
|
1095
|
+
r1, _, e1 := syscall.SyscallN(procOpenThreadToken.Addr(), uintptr(thread), uintptr(access), uintptr(_p0), uintptr(unsafe.Pointer(token)))
|
|
1095
1096
|
if r1 == 0 {
|
|
1096
1097
|
err = errnoErr(e1)
|
|
1097
1098
|
}
|
|
@@ -1099,7 +1100,7 @@ func OpenThreadToken(thread Handle, access uint32, openAsSelf bool, token *Token
|
|
|
1099
1100
|
}
|
|
1100
1101
|
|
|
1101
1102
|
func QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) {
|
|
1102
|
-
r1, _, e1 := syscall.
|
|
1103
|
+
r1, _, e1 := syscall.SyscallN(procQueryServiceConfig2W.Addr(), uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(buff)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)))
|
|
1103
1104
|
if r1 == 0 {
|
|
1104
1105
|
err = errnoErr(e1)
|
|
1105
1106
|
}
|
|
@@ -1107,7 +1108,7 @@ func QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize
|
|
|
1107
1108
|
}
|
|
1108
1109
|
|
|
1109
1110
|
func QueryServiceConfig(service Handle, serviceConfig *QUERY_SERVICE_CONFIG, bufSize uint32, bytesNeeded *uint32) (err error) {
|
|
1110
|
-
r1, _, e1 := syscall.
|
|
1111
|
+
r1, _, e1 := syscall.SyscallN(procQueryServiceConfigW.Addr(), uintptr(service), uintptr(unsafe.Pointer(serviceConfig)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)))
|
|
1111
1112
|
if r1 == 0 {
|
|
1112
1113
|
err = errnoErr(e1)
|
|
1113
1114
|
}
|
|
@@ -1119,7 +1120,7 @@ func QueryServiceDynamicInformation(service Handle, infoLevel uint32, dynamicInf
|
|
|
1119
1120
|
if err != nil {
|
|
1120
1121
|
return
|
|
1121
1122
|
}
|
|
1122
|
-
r1, _, e1 := syscall.
|
|
1123
|
+
r1, _, e1 := syscall.SyscallN(procQueryServiceDynamicInformation.Addr(), uintptr(service), uintptr(infoLevel), uintptr(dynamicInfo))
|
|
1123
1124
|
if r1 == 0 {
|
|
1124
1125
|
err = errnoErr(e1)
|
|
1125
1126
|
}
|
|
@@ -1127,7 +1128,7 @@ func QueryServiceDynamicInformation(service Handle, infoLevel uint32, dynamicInf
|
|
|
1127
1128
|
}
|
|
1128
1129
|
|
|
1129
1130
|
func QueryServiceLockStatus(mgr Handle, lockStatus *QUERY_SERVICE_LOCK_STATUS, bufSize uint32, bytesNeeded *uint32) (err error) {
|
|
1130
|
-
r1, _, e1 := syscall.
|
|
1131
|
+
r1, _, e1 := syscall.SyscallN(procQueryServiceLockStatusW.Addr(), uintptr(mgr), uintptr(unsafe.Pointer(lockStatus)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)))
|
|
1131
1132
|
if r1 == 0 {
|
|
1132
1133
|
err = errnoErr(e1)
|
|
1133
1134
|
}
|
|
@@ -1135,7 +1136,7 @@ func QueryServiceLockStatus(mgr Handle, lockStatus *QUERY_SERVICE_LOCK_STATUS, b
|
|
|
1135
1136
|
}
|
|
1136
1137
|
|
|
1137
1138
|
func QueryServiceStatus(service Handle, status *SERVICE_STATUS) (err error) {
|
|
1138
|
-
r1, _, e1 := syscall.
|
|
1139
|
+
r1, _, e1 := syscall.SyscallN(procQueryServiceStatus.Addr(), uintptr(service), uintptr(unsafe.Pointer(status)))
|
|
1139
1140
|
if r1 == 0 {
|
|
1140
1141
|
err = errnoErr(e1)
|
|
1141
1142
|
}
|
|
@@ -1143,7 +1144,7 @@ func QueryServiceStatus(service Handle, status *SERVICE_STATUS) (err error) {
|
|
|
1143
1144
|
}
|
|
1144
1145
|
|
|
1145
1146
|
func QueryServiceStatusEx(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) {
|
|
1146
|
-
r1, _, e1 := syscall.
|
|
1147
|
+
r1, _, e1 := syscall.SyscallN(procQueryServiceStatusEx.Addr(), uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(buff)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)))
|
|
1147
1148
|
if r1 == 0 {
|
|
1148
1149
|
err = errnoErr(e1)
|
|
1149
1150
|
}
|
|
@@ -1151,7 +1152,7 @@ func QueryServiceStatusEx(service Handle, infoLevel uint32, buff *byte, buffSize
|
|
|
1151
1152
|
}
|
|
1152
1153
|
|
|
1153
1154
|
func RegCloseKey(key Handle) (regerrno error) {
|
|
1154
|
-
r0, _, _ := syscall.
|
|
1155
|
+
r0, _, _ := syscall.SyscallN(procRegCloseKey.Addr(), uintptr(key))
|
|
1155
1156
|
if r0 != 0 {
|
|
1156
1157
|
regerrno = syscall.Errno(r0)
|
|
1157
1158
|
}
|
|
@@ -1159,7 +1160,7 @@ func RegCloseKey(key Handle) (regerrno error) {
|
|
|
1159
1160
|
}
|
|
1160
1161
|
|
|
1161
1162
|
func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) {
|
|
1162
|
-
r0, _, _ := syscall.
|
|
1163
|
+
r0, _, _ := syscall.SyscallN(procRegEnumKeyExW.Addr(), uintptr(key), uintptr(index), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(classLen)), uintptr(unsafe.Pointer(lastWriteTime)))
|
|
1163
1164
|
if r0 != 0 {
|
|
1164
1165
|
regerrno = syscall.Errno(r0)
|
|
1165
1166
|
}
|
|
@@ -1175,7 +1176,7 @@ func RegNotifyChangeKeyValue(key Handle, watchSubtree bool, notifyFilter uint32,
|
|
|
1175
1176
|
if asynchronous {
|
|
1176
1177
|
_p1 = 1
|
|
1177
1178
|
}
|
|
1178
|
-
r0, _, _ := syscall.
|
|
1179
|
+
r0, _, _ := syscall.SyscallN(procRegNotifyChangeKeyValue.Addr(), uintptr(key), uintptr(_p0), uintptr(notifyFilter), uintptr(event), uintptr(_p1))
|
|
1179
1180
|
if r0 != 0 {
|
|
1180
1181
|
regerrno = syscall.Errno(r0)
|
|
1181
1182
|
}
|
|
@@ -1183,7 +1184,7 @@ func RegNotifyChangeKeyValue(key Handle, watchSubtree bool, notifyFilter uint32,
|
|
|
1183
1184
|
}
|
|
1184
1185
|
|
|
1185
1186
|
func RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) {
|
|
1186
|
-
r0, _, _ := syscall.
|
|
1187
|
+
r0, _, _ := syscall.SyscallN(procRegOpenKeyExW.Addr(), uintptr(key), uintptr(unsafe.Pointer(subkey)), uintptr(options), uintptr(desiredAccess), uintptr(unsafe.Pointer(result)))
|
|
1187
1188
|
if r0 != 0 {
|
|
1188
1189
|
regerrno = syscall.Errno(r0)
|
|
1189
1190
|
}
|
|
@@ -1191,7 +1192,7 @@ func RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint
|
|
|
1191
1192
|
}
|
|
1192
1193
|
|
|
1193
1194
|
func RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) {
|
|
1194
|
-
r0, _, _ := syscall.
|
|
1195
|
+
r0, _, _ := syscall.SyscallN(procRegQueryInfoKeyW.Addr(), uintptr(key), uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(classLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(subkeysLen)), uintptr(unsafe.Pointer(maxSubkeyLen)), uintptr(unsafe.Pointer(maxClassLen)), uintptr(unsafe.Pointer(valuesLen)), uintptr(unsafe.Pointer(maxValueNameLen)), uintptr(unsafe.Pointer(maxValueLen)), uintptr(unsafe.Pointer(saLen)), uintptr(unsafe.Pointer(lastWriteTime)))
|
|
1195
1196
|
if r0 != 0 {
|
|
1196
1197
|
regerrno = syscall.Errno(r0)
|
|
1197
1198
|
}
|
|
@@ -1199,7 +1200,7 @@ func RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint
|
|
|
1199
1200
|
}
|
|
1200
1201
|
|
|
1201
1202
|
func RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) {
|
|
1202
|
-
r0, _, _ := syscall.
|
|
1203
|
+
r0, _, _ := syscall.SyscallN(procRegQueryValueExW.Addr(), uintptr(key), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(valtype)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(buflen)))
|
|
1203
1204
|
if r0 != 0 {
|
|
1204
1205
|
regerrno = syscall.Errno(r0)
|
|
1205
1206
|
}
|
|
@@ -1207,7 +1208,7 @@ func RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32
|
|
|
1207
1208
|
}
|
|
1208
1209
|
|
|
1209
1210
|
func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) {
|
|
1210
|
-
r0, _, e1 := syscall.
|
|
1211
|
+
r0, _, e1 := syscall.SyscallN(procRegisterEventSourceW.Addr(), uintptr(unsafe.Pointer(uncServerName)), uintptr(unsafe.Pointer(sourceName)))
|
|
1211
1212
|
handle = Handle(r0)
|
|
1212
1213
|
if handle == 0 {
|
|
1213
1214
|
err = errnoErr(e1)
|
|
@@ -1216,7 +1217,7 @@ func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Hand
|
|
|
1216
1217
|
}
|
|
1217
1218
|
|
|
1218
1219
|
func RegisterServiceCtrlHandlerEx(serviceName *uint16, handlerProc uintptr, context uintptr) (handle Handle, err error) {
|
|
1219
|
-
r0, _, e1 := syscall.
|
|
1220
|
+
r0, _, e1 := syscall.SyscallN(procRegisterServiceCtrlHandlerExW.Addr(), uintptr(unsafe.Pointer(serviceName)), uintptr(handlerProc), uintptr(context))
|
|
1220
1221
|
handle = Handle(r0)
|
|
1221
1222
|
if handle == 0 {
|
|
1222
1223
|
err = errnoErr(e1)
|
|
@@ -1225,7 +1226,7 @@ func RegisterServiceCtrlHandlerEx(serviceName *uint16, handlerProc uintptr, cont
|
|
|
1225
1226
|
}
|
|
1226
1227
|
|
|
1227
1228
|
func ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) {
|
|
1228
|
-
r1, _, e1 := syscall.
|
|
1229
|
+
r1, _, e1 := syscall.SyscallN(procReportEventW.Addr(), uintptr(log), uintptr(etype), uintptr(category), uintptr(eventId), uintptr(usrSId), uintptr(numStrings), uintptr(dataSize), uintptr(unsafe.Pointer(strings)), uintptr(unsafe.Pointer(rawData)))
|
|
1229
1230
|
if r1 == 0 {
|
|
1230
1231
|
err = errnoErr(e1)
|
|
1231
1232
|
}
|
|
@@ -1233,7 +1234,7 @@ func ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrS
|
|
|
1233
1234
|
}
|
|
1234
1235
|
|
|
1235
1236
|
func RevertToSelf() (err error) {
|
|
1236
|
-
r1, _, e1 := syscall.
|
|
1237
|
+
r1, _, e1 := syscall.SyscallN(procRevertToSelf.Addr())
|
|
1237
1238
|
if r1 == 0 {
|
|
1238
1239
|
err = errnoErr(e1)
|
|
1239
1240
|
}
|
|
@@ -1241,7 +1242,7 @@ func RevertToSelf() (err error) {
|
|
|
1241
1242
|
}
|
|
1242
1243
|
|
|
1243
1244
|
func setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCESS, oldACL *ACL, newACL **ACL) (ret error) {
|
|
1244
|
-
r0, _, _ := syscall.
|
|
1245
|
+
r0, _, _ := syscall.SyscallN(procSetEntriesInAclW.Addr(), uintptr(countExplicitEntries), uintptr(unsafe.Pointer(explicitEntries)), uintptr(unsafe.Pointer(oldACL)), uintptr(unsafe.Pointer(newACL)))
|
|
1245
1246
|
if r0 != 0 {
|
|
1246
1247
|
ret = syscall.Errno(r0)
|
|
1247
1248
|
}
|
|
@@ -1249,7 +1250,7 @@ func setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCE
|
|
|
1249
1250
|
}
|
|
1250
1251
|
|
|
1251
1252
|
func SetKernelObjectSecurity(handle Handle, securityInformation SECURITY_INFORMATION, securityDescriptor *SECURITY_DESCRIPTOR) (err error) {
|
|
1252
|
-
r1, _, e1 := syscall.
|
|
1253
|
+
r1, _, e1 := syscall.SyscallN(procSetKernelObjectSecurity.Addr(), uintptr(handle), uintptr(securityInformation), uintptr(unsafe.Pointer(securityDescriptor)))
|
|
1253
1254
|
if r1 == 0 {
|
|
1254
1255
|
err = errnoErr(e1)
|
|
1255
1256
|
}
|
|
@@ -1266,7 +1267,7 @@ func SetNamedSecurityInfo(objectName string, objectType SE_OBJECT_TYPE, security
|
|
|
1266
1267
|
}
|
|
1267
1268
|
|
|
1268
1269
|
func _SetNamedSecurityInfo(objectName *uint16, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) {
|
|
1269
|
-
r0, _, _ := syscall.
|
|
1270
|
+
r0, _, _ := syscall.SyscallN(procSetNamedSecurityInfoW.Addr(), uintptr(unsafe.Pointer(objectName)), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)))
|
|
1270
1271
|
if r0 != 0 {
|
|
1271
1272
|
ret = syscall.Errno(r0)
|
|
1272
1273
|
}
|
|
@@ -1274,7 +1275,7 @@ func _SetNamedSecurityInfo(objectName *uint16, objectType SE_OBJECT_TYPE, securi
|
|
|
1274
1275
|
}
|
|
1275
1276
|
|
|
1276
1277
|
func setSecurityDescriptorControl(sd *SECURITY_DESCRIPTOR, controlBitsOfInterest SECURITY_DESCRIPTOR_CONTROL, controlBitsToSet SECURITY_DESCRIPTOR_CONTROL) (err error) {
|
|
1277
|
-
r1, _, e1 := syscall.
|
|
1278
|
+
r1, _, e1 := syscall.SyscallN(procSetSecurityDescriptorControl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(controlBitsOfInterest), uintptr(controlBitsToSet))
|
|
1278
1279
|
if r1 == 0 {
|
|
1279
1280
|
err = errnoErr(e1)
|
|
1280
1281
|
}
|
|
@@ -1290,7 +1291,7 @@ func setSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent bool, dacl *
|
|
|
1290
1291
|
if daclDefaulted {
|
|
1291
1292
|
_p1 = 1
|
|
1292
1293
|
}
|
|
1293
|
-
r1, _, e1 := syscall.
|
|
1294
|
+
r1, _, e1 := syscall.SyscallN(procSetSecurityDescriptorDacl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(dacl)), uintptr(_p1))
|
|
1294
1295
|
if r1 == 0 {
|
|
1295
1296
|
err = errnoErr(e1)
|
|
1296
1297
|
}
|
|
@@ -1302,7 +1303,7 @@ func setSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group *SID, groupDefaul
|
|
|
1302
1303
|
if groupDefaulted {
|
|
1303
1304
|
_p0 = 1
|
|
1304
1305
|
}
|
|
1305
|
-
r1, _, e1 := syscall.
|
|
1306
|
+
r1, _, e1 := syscall.SyscallN(procSetSecurityDescriptorGroup.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(_p0))
|
|
1306
1307
|
if r1 == 0 {
|
|
1307
1308
|
err = errnoErr(e1)
|
|
1308
1309
|
}
|
|
@@ -1314,7 +1315,7 @@ func setSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner *SID, ownerDefaul
|
|
|
1314
1315
|
if ownerDefaulted {
|
|
1315
1316
|
_p0 = 1
|
|
1316
1317
|
}
|
|
1317
|
-
r1, _, e1 := syscall.
|
|
1318
|
+
r1, _, e1 := syscall.SyscallN(procSetSecurityDescriptorOwner.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(_p0))
|
|
1318
1319
|
if r1 == 0 {
|
|
1319
1320
|
err = errnoErr(e1)
|
|
1320
1321
|
}
|
|
@@ -1322,7 +1323,7 @@ func setSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner *SID, ownerDefaul
|
|
|
1322
1323
|
}
|
|
1323
1324
|
|
|
1324
1325
|
func setSecurityDescriptorRMControl(sd *SECURITY_DESCRIPTOR, rmControl *uint8) {
|
|
1325
|
-
syscall.
|
|
1326
|
+
syscall.SyscallN(procSetSecurityDescriptorRMControl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(rmControl)))
|
|
1326
1327
|
return
|
|
1327
1328
|
}
|
|
1328
1329
|
|
|
@@ -1335,7 +1336,7 @@ func setSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent bool, sacl *
|
|
|
1335
1336
|
if saclDefaulted {
|
|
1336
1337
|
_p1 = 1
|
|
1337
1338
|
}
|
|
1338
|
-
r1, _, e1 := syscall.
|
|
1339
|
+
r1, _, e1 := syscall.SyscallN(procSetSecurityDescriptorSacl.Addr(), uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(sacl)), uintptr(_p1))
|
|
1339
1340
|
if r1 == 0 {
|
|
1340
1341
|
err = errnoErr(e1)
|
|
1341
1342
|
}
|
|
@@ -1343,7 +1344,7 @@ func setSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent bool, sacl *
|
|
|
1343
1344
|
}
|
|
1344
1345
|
|
|
1345
1346
|
func SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformation SECURITY_INFORMATION, owner *SID, group *SID, dacl *ACL, sacl *ACL) (ret error) {
|
|
1346
|
-
r0, _, _ := syscall.
|
|
1347
|
+
r0, _, _ := syscall.SyscallN(procSetSecurityInfo.Addr(), uintptr(handle), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)))
|
|
1347
1348
|
if r0 != 0 {
|
|
1348
1349
|
ret = syscall.Errno(r0)
|
|
1349
1350
|
}
|
|
@@ -1351,7 +1352,7 @@ func SetSecurityInfo(handle Handle, objectType SE_OBJECT_TYPE, securityInformati
|
|
|
1351
1352
|
}
|
|
1352
1353
|
|
|
1353
1354
|
func SetServiceStatus(service Handle, serviceStatus *SERVICE_STATUS) (err error) {
|
|
1354
|
-
r1, _, e1 := syscall.
|
|
1355
|
+
r1, _, e1 := syscall.SyscallN(procSetServiceStatus.Addr(), uintptr(service), uintptr(unsafe.Pointer(serviceStatus)))
|
|
1355
1356
|
if r1 == 0 {
|
|
1356
1357
|
err = errnoErr(e1)
|
|
1357
1358
|
}
|
|
@@ -1359,7 +1360,7 @@ func SetServiceStatus(service Handle, serviceStatus *SERVICE_STATUS) (err error)
|
|
|
1359
1360
|
}
|
|
1360
1361
|
|
|
1361
1362
|
func SetThreadToken(thread *Handle, token Token) (err error) {
|
|
1362
|
-
r1, _, e1 := syscall.
|
|
1363
|
+
r1, _, e1 := syscall.SyscallN(procSetThreadToken.Addr(), uintptr(unsafe.Pointer(thread)), uintptr(token))
|
|
1363
1364
|
if r1 == 0 {
|
|
1364
1365
|
err = errnoErr(e1)
|
|
1365
1366
|
}
|
|
@@ -1367,7 +1368,7 @@ func SetThreadToken(thread *Handle, token Token) (err error) {
|
|
|
1367
1368
|
}
|
|
1368
1369
|
|
|
1369
1370
|
func SetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint32) (err error) {
|
|
1370
|
-
r1, _, e1 := syscall.
|
|
1371
|
+
r1, _, e1 := syscall.SyscallN(procSetTokenInformation.Addr(), uintptr(token), uintptr(infoClass), uintptr(unsafe.Pointer(info)), uintptr(infoLen))
|
|
1371
1372
|
if r1 == 0 {
|
|
1372
1373
|
err = errnoErr(e1)
|
|
1373
1374
|
}
|
|
@@ -1375,7 +1376,7 @@ func SetTokenInformation(token Token, infoClass uint32, info *byte, infoLen uint
|
|
|
1375
1376
|
}
|
|
1376
1377
|
|
|
1377
1378
|
func StartServiceCtrlDispatcher(serviceTable *SERVICE_TABLE_ENTRY) (err error) {
|
|
1378
|
-
r1, _, e1 := syscall.
|
|
1379
|
+
r1, _, e1 := syscall.SyscallN(procStartServiceCtrlDispatcherW.Addr(), uintptr(unsafe.Pointer(serviceTable)))
|
|
1379
1380
|
if r1 == 0 {
|
|
1380
1381
|
err = errnoErr(e1)
|
|
1381
1382
|
}
|
|
@@ -1383,7 +1384,7 @@ func StartServiceCtrlDispatcher(serviceTable *SERVICE_TABLE_ENTRY) (err error) {
|
|
|
1383
1384
|
}
|
|
1384
1385
|
|
|
1385
1386
|
func StartService(service Handle, numArgs uint32, argVectors **uint16) (err error) {
|
|
1386
|
-
r1, _, e1 := syscall.
|
|
1387
|
+
r1, _, e1 := syscall.SyscallN(procStartServiceW.Addr(), uintptr(service), uintptr(numArgs), uintptr(unsafe.Pointer(argVectors)))
|
|
1387
1388
|
if r1 == 0 {
|
|
1388
1389
|
err = errnoErr(e1)
|
|
1389
1390
|
}
|
|
@@ -1391,7 +1392,7 @@ func StartService(service Handle, numArgs uint32, argVectors **uint16) (err erro
|
|
|
1391
1392
|
}
|
|
1392
1393
|
|
|
1393
1394
|
func CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) {
|
|
1394
|
-
r1, _, e1 := syscall.
|
|
1395
|
+
r1, _, e1 := syscall.SyscallN(procCertAddCertificateContextToStore.Addr(), uintptr(store), uintptr(unsafe.Pointer(certContext)), uintptr(addDisposition), uintptr(unsafe.Pointer(storeContext)))
|
|
1395
1396
|
if r1 == 0 {
|
|
1396
1397
|
err = errnoErr(e1)
|
|
1397
1398
|
}
|
|
@@ -1399,7 +1400,7 @@ func CertAddCertificateContextToStore(store Handle, certContext *CertContext, ad
|
|
|
1399
1400
|
}
|
|
1400
1401
|
|
|
1401
1402
|
func CertCloseStore(store Handle, flags uint32) (err error) {
|
|
1402
|
-
r1, _, e1 := syscall.
|
|
1403
|
+
r1, _, e1 := syscall.SyscallN(procCertCloseStore.Addr(), uintptr(store), uintptr(flags))
|
|
1403
1404
|
if r1 == 0 {
|
|
1404
1405
|
err = errnoErr(e1)
|
|
1405
1406
|
}
|
|
@@ -1407,7 +1408,7 @@ func CertCloseStore(store Handle, flags uint32) (err error) {
|
|
|
1407
1408
|
}
|
|
1408
1409
|
|
|
1409
1410
|
func CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, encodedLen uint32) (context *CertContext, err error) {
|
|
1410
|
-
r0, _, e1 := syscall.
|
|
1411
|
+
r0, _, e1 := syscall.SyscallN(procCertCreateCertificateContext.Addr(), uintptr(certEncodingType), uintptr(unsafe.Pointer(certEncoded)), uintptr(encodedLen))
|
|
1411
1412
|
context = (*CertContext)(unsafe.Pointer(r0))
|
|
1412
1413
|
if context == nil {
|
|
1413
1414
|
err = errnoErr(e1)
|
|
@@ -1416,7 +1417,7 @@ func CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, en
|
|
|
1416
1417
|
}
|
|
1417
1418
|
|
|
1418
1419
|
func CertDeleteCertificateFromStore(certContext *CertContext) (err error) {
|
|
1419
|
-
r1, _, e1 := syscall.
|
|
1420
|
+
r1, _, e1 := syscall.SyscallN(procCertDeleteCertificateFromStore.Addr(), uintptr(unsafe.Pointer(certContext)))
|
|
1420
1421
|
if r1 == 0 {
|
|
1421
1422
|
err = errnoErr(e1)
|
|
1422
1423
|
}
|
|
@@ -1424,13 +1425,13 @@ func CertDeleteCertificateFromStore(certContext *CertContext) (err error) {
|
|
|
1424
1425
|
}
|
|
1425
1426
|
|
|
1426
1427
|
func CertDuplicateCertificateContext(certContext *CertContext) (dupContext *CertContext) {
|
|
1427
|
-
r0, _, _ := syscall.
|
|
1428
|
+
r0, _, _ := syscall.SyscallN(procCertDuplicateCertificateContext.Addr(), uintptr(unsafe.Pointer(certContext)))
|
|
1428
1429
|
dupContext = (*CertContext)(unsafe.Pointer(r0))
|
|
1429
1430
|
return
|
|
1430
1431
|
}
|
|
1431
1432
|
|
|
1432
1433
|
func CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) {
|
|
1433
|
-
r0, _, e1 := syscall.
|
|
1434
|
+
r0, _, e1 := syscall.SyscallN(procCertEnumCertificatesInStore.Addr(), uintptr(store), uintptr(unsafe.Pointer(prevContext)))
|
|
1434
1435
|
context = (*CertContext)(unsafe.Pointer(r0))
|
|
1435
1436
|
if context == nil {
|
|
1436
1437
|
err = errnoErr(e1)
|
|
@@ -1439,7 +1440,7 @@ func CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (contex
|
|
|
1439
1440
|
}
|
|
1440
1441
|
|
|
1441
1442
|
func CertFindCertificateInStore(store Handle, certEncodingType uint32, findFlags uint32, findType uint32, findPara unsafe.Pointer, prevCertContext *CertContext) (cert *CertContext, err error) {
|
|
1442
|
-
r0, _, e1 := syscall.
|
|
1443
|
+
r0, _, e1 := syscall.SyscallN(procCertFindCertificateInStore.Addr(), uintptr(store), uintptr(certEncodingType), uintptr(findFlags), uintptr(findType), uintptr(findPara), uintptr(unsafe.Pointer(prevCertContext)))
|
|
1443
1444
|
cert = (*CertContext)(unsafe.Pointer(r0))
|
|
1444
1445
|
if cert == nil {
|
|
1445
1446
|
err = errnoErr(e1)
|
|
@@ -1448,7 +1449,7 @@ func CertFindCertificateInStore(store Handle, certEncodingType uint32, findFlags
|
|
|
1448
1449
|
}
|
|
1449
1450
|
|
|
1450
1451
|
func CertFindChainInStore(store Handle, certEncodingType uint32, findFlags uint32, findType uint32, findPara unsafe.Pointer, prevChainContext *CertChainContext) (certchain *CertChainContext, err error) {
|
|
1451
|
-
r0, _, e1 := syscall.
|
|
1452
|
+
r0, _, e1 := syscall.SyscallN(procCertFindChainInStore.Addr(), uintptr(store), uintptr(certEncodingType), uintptr(findFlags), uintptr(findType), uintptr(findPara), uintptr(unsafe.Pointer(prevChainContext)))
|
|
1452
1453
|
certchain = (*CertChainContext)(unsafe.Pointer(r0))
|
|
1453
1454
|
if certchain == nil {
|
|
1454
1455
|
err = errnoErr(e1)
|
|
@@ -1457,18 +1458,18 @@ func CertFindChainInStore(store Handle, certEncodingType uint32, findFlags uint3
|
|
|
1457
1458
|
}
|
|
1458
1459
|
|
|
1459
1460
|
func CertFindExtension(objId *byte, countExtensions uint32, extensions *CertExtension) (ret *CertExtension) {
|
|
1460
|
-
r0, _, _ := syscall.
|
|
1461
|
+
r0, _, _ := syscall.SyscallN(procCertFindExtension.Addr(), uintptr(unsafe.Pointer(objId)), uintptr(countExtensions), uintptr(unsafe.Pointer(extensions)))
|
|
1461
1462
|
ret = (*CertExtension)(unsafe.Pointer(r0))
|
|
1462
1463
|
return
|
|
1463
1464
|
}
|
|
1464
1465
|
|
|
1465
1466
|
func CertFreeCertificateChain(ctx *CertChainContext) {
|
|
1466
|
-
syscall.
|
|
1467
|
+
syscall.SyscallN(procCertFreeCertificateChain.Addr(), uintptr(unsafe.Pointer(ctx)))
|
|
1467
1468
|
return
|
|
1468
1469
|
}
|
|
1469
1470
|
|
|
1470
1471
|
func CertFreeCertificateContext(ctx *CertContext) (err error) {
|
|
1471
|
-
r1, _, e1 := syscall.
|
|
1472
|
+
r1, _, e1 := syscall.SyscallN(procCertFreeCertificateContext.Addr(), uintptr(unsafe.Pointer(ctx)))
|
|
1472
1473
|
if r1 == 0 {
|
|
1473
1474
|
err = errnoErr(e1)
|
|
1474
1475
|
}
|
|
@@ -1476,7 +1477,7 @@ func CertFreeCertificateContext(ctx *CertContext) (err error) {
|
|
|
1476
1477
|
}
|
|
1477
1478
|
|
|
1478
1479
|
func CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) {
|
|
1479
|
-
r1, _, e1 := syscall.
|
|
1480
|
+
r1, _, e1 := syscall.SyscallN(procCertGetCertificateChain.Addr(), uintptr(engine), uintptr(unsafe.Pointer(leaf)), uintptr(unsafe.Pointer(time)), uintptr(additionalStore), uintptr(unsafe.Pointer(para)), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(chainCtx)))
|
|
1480
1481
|
if r1 == 0 {
|
|
1481
1482
|
err = errnoErr(e1)
|
|
1482
1483
|
}
|
|
@@ -1484,13 +1485,13 @@ func CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, a
|
|
|
1484
1485
|
}
|
|
1485
1486
|
|
|
1486
1487
|
func CertGetNameString(certContext *CertContext, nameType uint32, flags uint32, typePara unsafe.Pointer, name *uint16, size uint32) (chars uint32) {
|
|
1487
|
-
r0, _, _ := syscall.
|
|
1488
|
+
r0, _, _ := syscall.SyscallN(procCertGetNameStringW.Addr(), uintptr(unsafe.Pointer(certContext)), uintptr(nameType), uintptr(flags), uintptr(typePara), uintptr(unsafe.Pointer(name)), uintptr(size))
|
|
1488
1489
|
chars = uint32(r0)
|
|
1489
1490
|
return
|
|
1490
1491
|
}
|
|
1491
1492
|
|
|
1492
1493
|
func CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) {
|
|
1493
|
-
r0, _, e1 := syscall.
|
|
1494
|
+
r0, _, e1 := syscall.SyscallN(procCertOpenStore.Addr(), uintptr(storeProvider), uintptr(msgAndCertEncodingType), uintptr(cryptProv), uintptr(flags), uintptr(para))
|
|
1494
1495
|
handle = Handle(r0)
|
|
1495
1496
|
if handle == 0 {
|
|
1496
1497
|
err = errnoErr(e1)
|
|
@@ -1499,7 +1500,7 @@ func CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptPr
|
|
|
1499
1500
|
}
|
|
1500
1501
|
|
|
1501
1502
|
func CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) {
|
|
1502
|
-
r0, _, e1 := syscall.
|
|
1503
|
+
r0, _, e1 := syscall.SyscallN(procCertOpenSystemStoreW.Addr(), uintptr(hprov), uintptr(unsafe.Pointer(name)))
|
|
1503
1504
|
store = Handle(r0)
|
|
1504
1505
|
if store == 0 {
|
|
1505
1506
|
err = errnoErr(e1)
|
|
@@ -1508,7 +1509,7 @@ func CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) {
|
|
|
1508
1509
|
}
|
|
1509
1510
|
|
|
1510
1511
|
func CertVerifyCertificateChainPolicy(policyOID uintptr, chain *CertChainContext, para *CertChainPolicyPara, status *CertChainPolicyStatus) (err error) {
|
|
1511
|
-
r1, _, e1 := syscall.
|
|
1512
|
+
r1, _, e1 := syscall.SyscallN(procCertVerifyCertificateChainPolicy.Addr(), uintptr(policyOID), uintptr(unsafe.Pointer(chain)), uintptr(unsafe.Pointer(para)), uintptr(unsafe.Pointer(status)))
|
|
1512
1513
|
if r1 == 0 {
|
|
1513
1514
|
err = errnoErr(e1)
|
|
1514
1515
|
}
|
|
@@ -1520,7 +1521,7 @@ func CryptAcquireCertificatePrivateKey(cert *CertContext, flags uint32, paramete
|
|
|
1520
1521
|
if *callerFreeProvOrNCryptKey {
|
|
1521
1522
|
_p0 = 1
|
|
1522
1523
|
}
|
|
1523
|
-
r1, _, e1 := syscall.
|
|
1524
|
+
r1, _, e1 := syscall.SyscallN(procCryptAcquireCertificatePrivateKey.Addr(), uintptr(unsafe.Pointer(cert)), uintptr(flags), uintptr(parameters), uintptr(unsafe.Pointer(cryptProvOrNCryptKey)), uintptr(unsafe.Pointer(keySpec)), uintptr(unsafe.Pointer(&_p0)))
|
|
1524
1525
|
*callerFreeProvOrNCryptKey = _p0 != 0
|
|
1525
1526
|
if r1 == 0 {
|
|
1526
1527
|
err = errnoErr(e1)
|
|
@@ -1529,7 +1530,7 @@ func CryptAcquireCertificatePrivateKey(cert *CertContext, flags uint32, paramete
|
|
|
1529
1530
|
}
|
|
1530
1531
|
|
|
1531
1532
|
func CryptDecodeObject(encodingType uint32, structType *byte, encodedBytes *byte, lenEncodedBytes uint32, flags uint32, decoded unsafe.Pointer, decodedLen *uint32) (err error) {
|
|
1532
|
-
r1, _, e1 := syscall.
|
|
1533
|
+
r1, _, e1 := syscall.SyscallN(procCryptDecodeObject.Addr(), uintptr(encodingType), uintptr(unsafe.Pointer(structType)), uintptr(unsafe.Pointer(encodedBytes)), uintptr(lenEncodedBytes), uintptr(flags), uintptr(decoded), uintptr(unsafe.Pointer(decodedLen)))
|
|
1533
1534
|
if r1 == 0 {
|
|
1534
1535
|
err = errnoErr(e1)
|
|
1535
1536
|
}
|
|
@@ -1537,7 +1538,7 @@ func CryptDecodeObject(encodingType uint32, structType *byte, encodedBytes *byte
|
|
|
1537
1538
|
}
|
|
1538
1539
|
|
|
1539
1540
|
func CryptProtectData(dataIn *DataBlob, name *uint16, optionalEntropy *DataBlob, reserved uintptr, promptStruct *CryptProtectPromptStruct, flags uint32, dataOut *DataBlob) (err error) {
|
|
1540
|
-
r1, _, e1 := syscall.
|
|
1541
|
+
r1, _, e1 := syscall.SyscallN(procCryptProtectData.Addr(), uintptr(unsafe.Pointer(dataIn)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(optionalEntropy)), uintptr(reserved), uintptr(unsafe.Pointer(promptStruct)), uintptr(flags), uintptr(unsafe.Pointer(dataOut)))
|
|
1541
1542
|
if r1 == 0 {
|
|
1542
1543
|
err = errnoErr(e1)
|
|
1543
1544
|
}
|
|
@@ -1545,7 +1546,7 @@ func CryptProtectData(dataIn *DataBlob, name *uint16, optionalEntropy *DataBlob,
|
|
|
1545
1546
|
}
|
|
1546
1547
|
|
|
1547
1548
|
func CryptQueryObject(objectType uint32, object unsafe.Pointer, expectedContentTypeFlags uint32, expectedFormatTypeFlags uint32, flags uint32, msgAndCertEncodingType *uint32, contentType *uint32, formatType *uint32, certStore *Handle, msg *Handle, context *unsafe.Pointer) (err error) {
|
|
1548
|
-
r1, _, e1 := syscall.
|
|
1549
|
+
r1, _, e1 := syscall.SyscallN(procCryptQueryObject.Addr(), uintptr(objectType), uintptr(object), uintptr(expectedContentTypeFlags), uintptr(expectedFormatTypeFlags), uintptr(flags), uintptr(unsafe.Pointer(msgAndCertEncodingType)), uintptr(unsafe.Pointer(contentType)), uintptr(unsafe.Pointer(formatType)), uintptr(unsafe.Pointer(certStore)), uintptr(unsafe.Pointer(msg)), uintptr(unsafe.Pointer(context)))
|
|
1549
1550
|
if r1 == 0 {
|
|
1550
1551
|
err = errnoErr(e1)
|
|
1551
1552
|
}
|
|
@@ -1553,7 +1554,7 @@ func CryptQueryObject(objectType uint32, object unsafe.Pointer, expectedContentT
|
|
|
1553
1554
|
}
|
|
1554
1555
|
|
|
1555
1556
|
func CryptUnprotectData(dataIn *DataBlob, name **uint16, optionalEntropy *DataBlob, reserved uintptr, promptStruct *CryptProtectPromptStruct, flags uint32, dataOut *DataBlob) (err error) {
|
|
1556
|
-
r1, _, e1 := syscall.
|
|
1557
|
+
r1, _, e1 := syscall.SyscallN(procCryptUnprotectData.Addr(), uintptr(unsafe.Pointer(dataIn)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(optionalEntropy)), uintptr(reserved), uintptr(unsafe.Pointer(promptStruct)), uintptr(flags), uintptr(unsafe.Pointer(dataOut)))
|
|
1557
1558
|
if r1 == 0 {
|
|
1558
1559
|
err = errnoErr(e1)
|
|
1559
1560
|
}
|
|
@@ -1561,7 +1562,7 @@ func CryptUnprotectData(dataIn *DataBlob, name **uint16, optionalEntropy *DataBl
|
|
|
1561
1562
|
}
|
|
1562
1563
|
|
|
1563
1564
|
func PFXImportCertStore(pfx *CryptDataBlob, password *uint16, flags uint32) (store Handle, err error) {
|
|
1564
|
-
r0, _, e1 := syscall.
|
|
1565
|
+
r0, _, e1 := syscall.SyscallN(procPFXImportCertStore.Addr(), uintptr(unsafe.Pointer(pfx)), uintptr(unsafe.Pointer(password)), uintptr(flags))
|
|
1565
1566
|
store = Handle(r0)
|
|
1566
1567
|
if store == 0 {
|
|
1567
1568
|
err = errnoErr(e1)
|
|
@@ -1570,7 +1571,7 @@ func PFXImportCertStore(pfx *CryptDataBlob, password *uint16, flags uint32) (sto
|
|
|
1570
1571
|
}
|
|
1571
1572
|
|
|
1572
1573
|
func DnsNameCompare(name1 *uint16, name2 *uint16) (same bool) {
|
|
1573
|
-
r0, _, _ := syscall.
|
|
1574
|
+
r0, _, _ := syscall.SyscallN(procDnsNameCompare_W.Addr(), uintptr(unsafe.Pointer(name1)), uintptr(unsafe.Pointer(name2)))
|
|
1574
1575
|
same = r0 != 0
|
|
1575
1576
|
return
|
|
1576
1577
|
}
|
|
@@ -1585,7 +1586,7 @@ func DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSR
|
|
|
1585
1586
|
}
|
|
1586
1587
|
|
|
1587
1588
|
func _DnsQuery(name *uint16, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) {
|
|
1588
|
-
r0, _, _ := syscall.
|
|
1589
|
+
r0, _, _ := syscall.SyscallN(procDnsQuery_W.Addr(), uintptr(unsafe.Pointer(name)), uintptr(qtype), uintptr(options), uintptr(unsafe.Pointer(extra)), uintptr(unsafe.Pointer(qrs)), uintptr(unsafe.Pointer(pr)))
|
|
1589
1590
|
if r0 != 0 {
|
|
1590
1591
|
status = syscall.Errno(r0)
|
|
1591
1592
|
}
|
|
@@ -1593,12 +1594,12 @@ func _DnsQuery(name *uint16, qtype uint16, options uint32, extra *byte, qrs **DN
|
|
|
1593
1594
|
}
|
|
1594
1595
|
|
|
1595
1596
|
func DnsRecordListFree(rl *DNSRecord, freetype uint32) {
|
|
1596
|
-
syscall.
|
|
1597
|
+
syscall.SyscallN(procDnsRecordListFree.Addr(), uintptr(unsafe.Pointer(rl)), uintptr(freetype))
|
|
1597
1598
|
return
|
|
1598
1599
|
}
|
|
1599
1600
|
|
|
1600
1601
|
func DwmGetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) {
|
|
1601
|
-
r0, _, _ := syscall.
|
|
1602
|
+
r0, _, _ := syscall.SyscallN(procDwmGetWindowAttribute.Addr(), uintptr(hwnd), uintptr(attribute), uintptr(value), uintptr(size))
|
|
1602
1603
|
if r0 != 0 {
|
|
1603
1604
|
ret = syscall.Errno(r0)
|
|
1604
1605
|
}
|
|
@@ -1606,7 +1607,7 @@ func DwmGetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, si
|
|
|
1606
1607
|
}
|
|
1607
1608
|
|
|
1608
1609
|
func DwmSetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) {
|
|
1609
|
-
r0, _, _ := syscall.
|
|
1610
|
+
r0, _, _ := syscall.SyscallN(procDwmSetWindowAttribute.Addr(), uintptr(hwnd), uintptr(attribute), uintptr(value), uintptr(size))
|
|
1610
1611
|
if r0 != 0 {
|
|
1611
1612
|
ret = syscall.Errno(r0)
|
|
1612
1613
|
}
|
|
@@ -1614,7 +1615,7 @@ func DwmSetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, si
|
|
|
1614
1615
|
}
|
|
1615
1616
|
|
|
1616
1617
|
func CancelMibChangeNotify2(notificationHandle Handle) (errcode error) {
|
|
1617
|
-
r0, _, _ := syscall.
|
|
1618
|
+
r0, _, _ := syscall.SyscallN(procCancelMibChangeNotify2.Addr(), uintptr(notificationHandle))
|
|
1618
1619
|
if r0 != 0 {
|
|
1619
1620
|
errcode = syscall.Errno(r0)
|
|
1620
1621
|
}
|
|
@@ -1622,7 +1623,7 @@ func CancelMibChangeNotify2(notificationHandle Handle) (errcode error) {
|
|
|
1622
1623
|
}
|
|
1623
1624
|
|
|
1624
1625
|
func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) {
|
|
1625
|
-
r0, _, _ := syscall.
|
|
1626
|
+
r0, _, _ := syscall.SyscallN(procGetAdaptersAddresses.Addr(), uintptr(family), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(adapterAddresses)), uintptr(unsafe.Pointer(sizePointer)))
|
|
1626
1627
|
if r0 != 0 {
|
|
1627
1628
|
errcode = syscall.Errno(r0)
|
|
1628
1629
|
}
|
|
@@ -1630,7 +1631,7 @@ func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapter
|
|
|
1630
1631
|
}
|
|
1631
1632
|
|
|
1632
1633
|
func GetAdaptersInfo(ai *IpAdapterInfo, ol *uint32) (errcode error) {
|
|
1633
|
-
r0, _, _ := syscall.
|
|
1634
|
+
r0, _, _ := syscall.SyscallN(procGetAdaptersInfo.Addr(), uintptr(unsafe.Pointer(ai)), uintptr(unsafe.Pointer(ol)))
|
|
1634
1635
|
if r0 != 0 {
|
|
1635
1636
|
errcode = syscall.Errno(r0)
|
|
1636
1637
|
}
|
|
@@ -1638,7 +1639,7 @@ func GetAdaptersInfo(ai *IpAdapterInfo, ol *uint32) (errcode error) {
|
|
|
1638
1639
|
}
|
|
1639
1640
|
|
|
1640
1641
|
func getBestInterfaceEx(sockaddr unsafe.Pointer, pdwBestIfIndex *uint32) (errcode error) {
|
|
1641
|
-
r0, _, _ := syscall.
|
|
1642
|
+
r0, _, _ := syscall.SyscallN(procGetBestInterfaceEx.Addr(), uintptr(sockaddr), uintptr(unsafe.Pointer(pdwBestIfIndex)))
|
|
1642
1643
|
if r0 != 0 {
|
|
1643
1644
|
errcode = syscall.Errno(r0)
|
|
1644
1645
|
}
|
|
@@ -1646,7 +1647,7 @@ func getBestInterfaceEx(sockaddr unsafe.Pointer, pdwBestIfIndex *uint32) (errcod
|
|
|
1646
1647
|
}
|
|
1647
1648
|
|
|
1648
1649
|
func GetIfEntry(pIfRow *MibIfRow) (errcode error) {
|
|
1649
|
-
r0, _, _ := syscall.
|
|
1650
|
+
r0, _, _ := syscall.SyscallN(procGetIfEntry.Addr(), uintptr(unsafe.Pointer(pIfRow)))
|
|
1650
1651
|
if r0 != 0 {
|
|
1651
1652
|
errcode = syscall.Errno(r0)
|
|
1652
1653
|
}
|
|
@@ -1654,7 +1655,7 @@ func GetIfEntry(pIfRow *MibIfRow) (errcode error) {
|
|
|
1654
1655
|
}
|
|
1655
1656
|
|
|
1656
1657
|
func GetIfEntry2Ex(level uint32, row *MibIfRow2) (errcode error) {
|
|
1657
|
-
r0, _, _ := syscall.
|
|
1658
|
+
r0, _, _ := syscall.SyscallN(procGetIfEntry2Ex.Addr(), uintptr(level), uintptr(unsafe.Pointer(row)))
|
|
1658
1659
|
if r0 != 0 {
|
|
1659
1660
|
errcode = syscall.Errno(r0)
|
|
1660
1661
|
}
|
|
@@ -1662,7 +1663,7 @@ func GetIfEntry2Ex(level uint32, row *MibIfRow2) (errcode error) {
|
|
|
1662
1663
|
}
|
|
1663
1664
|
|
|
1664
1665
|
func GetUnicastIpAddressEntry(row *MibUnicastIpAddressRow) (errcode error) {
|
|
1665
|
-
r0, _, _ := syscall.
|
|
1666
|
+
r0, _, _ := syscall.SyscallN(procGetUnicastIpAddressEntry.Addr(), uintptr(unsafe.Pointer(row)))
|
|
1666
1667
|
if r0 != 0 {
|
|
1667
1668
|
errcode = syscall.Errno(r0)
|
|
1668
1669
|
}
|
|
@@ -1674,7 +1675,7 @@ func NotifyIpInterfaceChange(family uint16, callback uintptr, callerContext unsa
|
|
|
1674
1675
|
if initialNotification {
|
|
1675
1676
|
_p0 = 1
|
|
1676
1677
|
}
|
|
1677
|
-
r0, _, _ := syscall.
|
|
1678
|
+
r0, _, _ := syscall.SyscallN(procNotifyIpInterfaceChange.Addr(), uintptr(family), uintptr(callback), uintptr(callerContext), uintptr(_p0), uintptr(unsafe.Pointer(notificationHandle)))
|
|
1678
1679
|
if r0 != 0 {
|
|
1679
1680
|
errcode = syscall.Errno(r0)
|
|
1680
1681
|
}
|
|
@@ -1686,7 +1687,7 @@ func NotifyUnicastIpAddressChange(family uint16, callback uintptr, callerContext
|
|
|
1686
1687
|
if initialNotification {
|
|
1687
1688
|
_p0 = 1
|
|
1688
1689
|
}
|
|
1689
|
-
r0, _, _ := syscall.
|
|
1690
|
+
r0, _, _ := syscall.SyscallN(procNotifyUnicastIpAddressChange.Addr(), uintptr(family), uintptr(callback), uintptr(callerContext), uintptr(_p0), uintptr(unsafe.Pointer(notificationHandle)))
|
|
1690
1691
|
if r0 != 0 {
|
|
1691
1692
|
errcode = syscall.Errno(r0)
|
|
1692
1693
|
}
|
|
@@ -1694,7 +1695,7 @@ func NotifyUnicastIpAddressChange(family uint16, callback uintptr, callerContext
|
|
|
1694
1695
|
}
|
|
1695
1696
|
|
|
1696
1697
|
func AddDllDirectory(path *uint16) (cookie uintptr, err error) {
|
|
1697
|
-
r0, _, e1 := syscall.
|
|
1698
|
+
r0, _, e1 := syscall.SyscallN(procAddDllDirectory.Addr(), uintptr(unsafe.Pointer(path)))
|
|
1698
1699
|
cookie = uintptr(r0)
|
|
1699
1700
|
if cookie == 0 {
|
|
1700
1701
|
err = errnoErr(e1)
|
|
@@ -1703,7 +1704,7 @@ func AddDllDirectory(path *uint16) (cookie uintptr, err error) {
|
|
|
1703
1704
|
}
|
|
1704
1705
|
|
|
1705
1706
|
func AssignProcessToJobObject(job Handle, process Handle) (err error) {
|
|
1706
|
-
r1, _, e1 := syscall.
|
|
1707
|
+
r1, _, e1 := syscall.SyscallN(procAssignProcessToJobObject.Addr(), uintptr(job), uintptr(process))
|
|
1707
1708
|
if r1 == 0 {
|
|
1708
1709
|
err = errnoErr(e1)
|
|
1709
1710
|
}
|
|
@@ -1711,7 +1712,7 @@ func AssignProcessToJobObject(job Handle, process Handle) (err error) {
|
|
|
1711
1712
|
}
|
|
1712
1713
|
|
|
1713
1714
|
func CancelIo(s Handle) (err error) {
|
|
1714
|
-
r1, _, e1 := syscall.
|
|
1715
|
+
r1, _, e1 := syscall.SyscallN(procCancelIo.Addr(), uintptr(s))
|
|
1715
1716
|
if r1 == 0 {
|
|
1716
1717
|
err = errnoErr(e1)
|
|
1717
1718
|
}
|
|
@@ -1719,7 +1720,7 @@ func CancelIo(s Handle) (err error) {
|
|
|
1719
1720
|
}
|
|
1720
1721
|
|
|
1721
1722
|
func CancelIoEx(s Handle, o *Overlapped) (err error) {
|
|
1722
|
-
r1, _, e1 := syscall.
|
|
1723
|
+
r1, _, e1 := syscall.SyscallN(procCancelIoEx.Addr(), uintptr(s), uintptr(unsafe.Pointer(o)))
|
|
1723
1724
|
if r1 == 0 {
|
|
1724
1725
|
err = errnoErr(e1)
|
|
1725
1726
|
}
|
|
@@ -1727,7 +1728,7 @@ func CancelIoEx(s Handle, o *Overlapped) (err error) {
|
|
|
1727
1728
|
}
|
|
1728
1729
|
|
|
1729
1730
|
func ClearCommBreak(handle Handle) (err error) {
|
|
1730
|
-
r1, _, e1 := syscall.
|
|
1731
|
+
r1, _, e1 := syscall.SyscallN(procClearCommBreak.Addr(), uintptr(handle))
|
|
1731
1732
|
if r1 == 0 {
|
|
1732
1733
|
err = errnoErr(e1)
|
|
1733
1734
|
}
|
|
@@ -1735,7 +1736,7 @@ func ClearCommBreak(handle Handle) (err error) {
|
|
|
1735
1736
|
}
|
|
1736
1737
|
|
|
1737
1738
|
func ClearCommError(handle Handle, lpErrors *uint32, lpStat *ComStat) (err error) {
|
|
1738
|
-
r1, _, e1 := syscall.
|
|
1739
|
+
r1, _, e1 := syscall.SyscallN(procClearCommError.Addr(), uintptr(handle), uintptr(unsafe.Pointer(lpErrors)), uintptr(unsafe.Pointer(lpStat)))
|
|
1739
1740
|
if r1 == 0 {
|
|
1740
1741
|
err = errnoErr(e1)
|
|
1741
1742
|
}
|
|
@@ -1743,7 +1744,7 @@ func ClearCommError(handle Handle, lpErrors *uint32, lpStat *ComStat) (err error
|
|
|
1743
1744
|
}
|
|
1744
1745
|
|
|
1745
1746
|
func CloseHandle(handle Handle) (err error) {
|
|
1746
|
-
r1, _, e1 := syscall.
|
|
1747
|
+
r1, _, e1 := syscall.SyscallN(procCloseHandle.Addr(), uintptr(handle))
|
|
1747
1748
|
if r1 == 0 {
|
|
1748
1749
|
err = errnoErr(e1)
|
|
1749
1750
|
}
|
|
@@ -1751,12 +1752,12 @@ func CloseHandle(handle Handle) (err error) {
|
|
|
1751
1752
|
}
|
|
1752
1753
|
|
|
1753
1754
|
func ClosePseudoConsole(console Handle) {
|
|
1754
|
-
syscall.
|
|
1755
|
+
syscall.SyscallN(procClosePseudoConsole.Addr(), uintptr(console))
|
|
1755
1756
|
return
|
|
1756
1757
|
}
|
|
1757
1758
|
|
|
1758
1759
|
func ConnectNamedPipe(pipe Handle, overlapped *Overlapped) (err error) {
|
|
1759
|
-
r1, _, e1 := syscall.
|
|
1760
|
+
r1, _, e1 := syscall.SyscallN(procConnectNamedPipe.Addr(), uintptr(pipe), uintptr(unsafe.Pointer(overlapped)))
|
|
1760
1761
|
if r1 == 0 {
|
|
1761
1762
|
err = errnoErr(e1)
|
|
1762
1763
|
}
|
|
@@ -1764,7 +1765,7 @@ func ConnectNamedPipe(pipe Handle, overlapped *Overlapped) (err error) {
|
|
|
1764
1765
|
}
|
|
1765
1766
|
|
|
1766
1767
|
func CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) {
|
|
1767
|
-
r1, _, e1 := syscall.
|
|
1768
|
+
r1, _, e1 := syscall.SyscallN(procCreateDirectoryW.Addr(), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(sa)))
|
|
1768
1769
|
if r1 == 0 {
|
|
1769
1770
|
err = errnoErr(e1)
|
|
1770
1771
|
}
|
|
@@ -1772,7 +1773,7 @@ func CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) {
|
|
|
1772
1773
|
}
|
|
1773
1774
|
|
|
1774
1775
|
func CreateEventEx(eventAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) {
|
|
1775
|
-
r0, _, e1 := syscall.
|
|
1776
|
+
r0, _, e1 := syscall.SyscallN(procCreateEventExW.Addr(), uintptr(unsafe.Pointer(eventAttrs)), uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(desiredAccess))
|
|
1776
1777
|
handle = Handle(r0)
|
|
1777
1778
|
if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
|
|
1778
1779
|
err = errnoErr(e1)
|
|
@@ -1781,7 +1782,7 @@ func CreateEventEx(eventAttrs *SecurityAttributes, name *uint16, flags uint32, d
|
|
|
1781
1782
|
}
|
|
1782
1783
|
|
|
1783
1784
|
func CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle Handle, err error) {
|
|
1784
|
-
r0, _, e1 := syscall.
|
|
1785
|
+
r0, _, e1 := syscall.SyscallN(procCreateEventW.Addr(), uintptr(unsafe.Pointer(eventAttrs)), uintptr(manualReset), uintptr(initialState), uintptr(unsafe.Pointer(name)))
|
|
1785
1786
|
handle = Handle(r0)
|
|
1786
1787
|
if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
|
|
1787
1788
|
err = errnoErr(e1)
|
|
@@ -1790,7 +1791,7 @@ func CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialStat
|
|
|
1790
1791
|
}
|
|
1791
1792
|
|
|
1792
1793
|
func CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle, err error) {
|
|
1793
|
-
r0, _, e1 := syscall.
|
|
1794
|
+
r0, _, e1 := syscall.SyscallN(procCreateFileMappingW.Addr(), uintptr(fhandle), uintptr(unsafe.Pointer(sa)), uintptr(prot), uintptr(maxSizeHigh), uintptr(maxSizeLow), uintptr(unsafe.Pointer(name)))
|
|
1794
1795
|
handle = Handle(r0)
|
|
1795
1796
|
if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
|
|
1796
1797
|
err = errnoErr(e1)
|
|
@@ -1799,7 +1800,7 @@ func CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxS
|
|
|
1799
1800
|
}
|
|
1800
1801
|
|
|
1801
1802
|
func CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile Handle) (handle Handle, err error) {
|
|
1802
|
-
r0, _, e1 := syscall.
|
|
1803
|
+
r0, _, e1 := syscall.SyscallN(procCreateFileW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(access), uintptr(mode), uintptr(unsafe.Pointer(sa)), uintptr(createmode), uintptr(attrs), uintptr(templatefile))
|
|
1803
1804
|
handle = Handle(r0)
|
|
1804
1805
|
if handle == InvalidHandle {
|
|
1805
1806
|
err = errnoErr(e1)
|
|
@@ -1808,7 +1809,7 @@ func CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes
|
|
|
1808
1809
|
}
|
|
1809
1810
|
|
|
1810
1811
|
func CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) {
|
|
1811
|
-
r1, _, e1 := syscall.
|
|
1812
|
+
r1, _, e1 := syscall.SyscallN(procCreateHardLinkW.Addr(), uintptr(unsafe.Pointer(filename)), uintptr(unsafe.Pointer(existingfilename)), uintptr(reserved))
|
|
1812
1813
|
if r1&0xff == 0 {
|
|
1813
1814
|
err = errnoErr(e1)
|
|
1814
1815
|
}
|
|
@@ -1816,7 +1817,7 @@ func CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr
|
|
|
1816
1817
|
}
|
|
1817
1818
|
|
|
1818
1819
|
func CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uintptr, threadcnt uint32) (handle Handle, err error) {
|
|
1819
|
-
r0, _, e1 := syscall.
|
|
1820
|
+
r0, _, e1 := syscall.SyscallN(procCreateIoCompletionPort.Addr(), uintptr(filehandle), uintptr(cphandle), uintptr(key), uintptr(threadcnt))
|
|
1820
1821
|
handle = Handle(r0)
|
|
1821
1822
|
if handle == 0 {
|
|
1822
1823
|
err = errnoErr(e1)
|
|
@@ -1825,7 +1826,7 @@ func CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uintptr, thr
|
|
|
1825
1826
|
}
|
|
1826
1827
|
|
|
1827
1828
|
func CreateJobObject(jobAttr *SecurityAttributes, name *uint16) (handle Handle, err error) {
|
|
1828
|
-
r0, _, e1 := syscall.
|
|
1829
|
+
r0, _, e1 := syscall.SyscallN(procCreateJobObjectW.Addr(), uintptr(unsafe.Pointer(jobAttr)), uintptr(unsafe.Pointer(name)))
|
|
1829
1830
|
handle = Handle(r0)
|
|
1830
1831
|
if handle == 0 {
|
|
1831
1832
|
err = errnoErr(e1)
|
|
@@ -1834,7 +1835,7 @@ func CreateJobObject(jobAttr *SecurityAttributes, name *uint16) (handle Handle,
|
|
|
1834
1835
|
}
|
|
1835
1836
|
|
|
1836
1837
|
func CreateMutexEx(mutexAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) {
|
|
1837
|
-
r0, _, e1 := syscall.
|
|
1838
|
+
r0, _, e1 := syscall.SyscallN(procCreateMutexExW.Addr(), uintptr(unsafe.Pointer(mutexAttrs)), uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(desiredAccess))
|
|
1838
1839
|
handle = Handle(r0)
|
|
1839
1840
|
if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
|
|
1840
1841
|
err = errnoErr(e1)
|
|
@@ -1847,7 +1848,7 @@ func CreateMutex(mutexAttrs *SecurityAttributes, initialOwner bool, name *uint16
|
|
|
1847
1848
|
if initialOwner {
|
|
1848
1849
|
_p0 = 1
|
|
1849
1850
|
}
|
|
1850
|
-
r0, _, e1 := syscall.
|
|
1851
|
+
r0, _, e1 := syscall.SyscallN(procCreateMutexW.Addr(), uintptr(unsafe.Pointer(mutexAttrs)), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
|
1851
1852
|
handle = Handle(r0)
|
|
1852
1853
|
if handle == 0 || e1 == ERROR_ALREADY_EXISTS {
|
|
1853
1854
|
err = errnoErr(e1)
|
|
@@ -1856,7 +1857,7 @@ func CreateMutex(mutexAttrs *SecurityAttributes, initialOwner bool, name *uint16
|
|
|
1856
1857
|
}
|
|
1857
1858
|
|
|
1858
1859
|
func CreateNamedPipe(name *uint16, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *SecurityAttributes) (handle Handle, err error) {
|
|
1859
|
-
r0, _, e1 := syscall.
|
|
1860
|
+
r0, _, e1 := syscall.SyscallN(procCreateNamedPipeW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(pipeMode), uintptr(maxInstances), uintptr(outSize), uintptr(inSize), uintptr(defaultTimeout), uintptr(unsafe.Pointer(sa)))
|
|
1860
1861
|
handle = Handle(r0)
|
|
1861
1862
|
if handle == InvalidHandle {
|
|
1862
1863
|
err = errnoErr(e1)
|
|
@@ -1865,7 +1866,7 @@ func CreateNamedPipe(name *uint16, flags uint32, pipeMode uint32, maxInstances u
|
|
|
1865
1866
|
}
|
|
1866
1867
|
|
|
1867
1868
|
func CreatePipe(readhandle *Handle, writehandle *Handle, sa *SecurityAttributes, size uint32) (err error) {
|
|
1868
|
-
r1, _, e1 := syscall.
|
|
1869
|
+
r1, _, e1 := syscall.SyscallN(procCreatePipe.Addr(), uintptr(unsafe.Pointer(readhandle)), uintptr(unsafe.Pointer(writehandle)), uintptr(unsafe.Pointer(sa)), uintptr(size))
|
|
1869
1870
|
if r1 == 0 {
|
|
1870
1871
|
err = errnoErr(e1)
|
|
1871
1872
|
}
|
|
@@ -1877,7 +1878,7 @@ func CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityA
|
|
|
1877
1878
|
if inheritHandles {
|
|
1878
1879
|
_p0 = 1
|
|
1879
1880
|
}
|
|
1880
|
-
r1, _, e1 := syscall.
|
|
1881
|
+
r1, _, e1 := syscall.SyscallN(procCreateProcessW.Addr(), uintptr(unsafe.Pointer(appName)), uintptr(unsafe.Pointer(commandLine)), uintptr(unsafe.Pointer(procSecurity)), uintptr(unsafe.Pointer(threadSecurity)), uintptr(_p0), uintptr(creationFlags), uintptr(unsafe.Pointer(env)), uintptr(unsafe.Pointer(currentDir)), uintptr(unsafe.Pointer(startupInfo)), uintptr(unsafe.Pointer(outProcInfo)))
|
|
1881
1882
|
if r1 == 0 {
|
|
1882
1883
|
err = errnoErr(e1)
|
|
1883
1884
|
}
|
|
@@ -1885,7 +1886,7 @@ func CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityA
|
|
|
1885
1886
|
}
|
|
1886
1887
|
|
|
1887
1888
|
func createPseudoConsole(size uint32, in Handle, out Handle, flags uint32, pconsole *Handle) (hr error) {
|
|
1888
|
-
r0, _, _ := syscall.
|
|
1889
|
+
r0, _, _ := syscall.SyscallN(procCreatePseudoConsole.Addr(), uintptr(size), uintptr(in), uintptr(out), uintptr(flags), uintptr(unsafe.Pointer(pconsole)))
|
|
1889
1890
|
if r0 != 0 {
|
|
1890
1891
|
hr = syscall.Errno(r0)
|
|
1891
1892
|
}
|
|
@@ -1893,7 +1894,7 @@ func createPseudoConsole(size uint32, in Handle, out Handle, flags uint32, pcons
|
|
|
1893
1894
|
}
|
|
1894
1895
|
|
|
1895
1896
|
func CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) {
|
|
1896
|
-
r1, _, e1 := syscall.
|
|
1897
|
+
r1, _, e1 := syscall.SyscallN(procCreateSymbolicLinkW.Addr(), uintptr(unsafe.Pointer(symlinkfilename)), uintptr(unsafe.Pointer(targetfilename)), uintptr(flags))
|
|
1897
1898
|
if r1&0xff == 0 {
|
|
1898
1899
|
err = errnoErr(e1)
|
|
1899
1900
|
}
|
|
@@ -1901,7 +1902,7 @@ func CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags u
|
|
|
1901
1902
|
}
|
|
1902
1903
|
|
|
1903
1904
|
func CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) {
|
|
1904
|
-
r0, _, e1 := syscall.
|
|
1905
|
+
r0, _, e1 := syscall.SyscallN(procCreateToolhelp32Snapshot.Addr(), uintptr(flags), uintptr(processId))
|
|
1905
1906
|
handle = Handle(r0)
|
|
1906
1907
|
if handle == InvalidHandle {
|
|
1907
1908
|
err = errnoErr(e1)
|
|
@@ -1910,7 +1911,7 @@ func CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, er
|
|
|
1910
1911
|
}
|
|
1911
1912
|
|
|
1912
1913
|
func DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) {
|
|
1913
|
-
r1, _, e1 := syscall.
|
|
1914
|
+
r1, _, e1 := syscall.SyscallN(procDefineDosDeviceW.Addr(), uintptr(flags), uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath)))
|
|
1914
1915
|
if r1 == 0 {
|
|
1915
1916
|
err = errnoErr(e1)
|
|
1916
1917
|
}
|
|
@@ -1918,7 +1919,7 @@ func DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err
|
|
|
1918
1919
|
}
|
|
1919
1920
|
|
|
1920
1921
|
func DeleteFile(path *uint16) (err error) {
|
|
1921
|
-
r1, _, e1 := syscall.
|
|
1922
|
+
r1, _, e1 := syscall.SyscallN(procDeleteFileW.Addr(), uintptr(unsafe.Pointer(path)))
|
|
1922
1923
|
if r1 == 0 {
|
|
1923
1924
|
err = errnoErr(e1)
|
|
1924
1925
|
}
|
|
@@ -1926,12 +1927,12 @@ func DeleteFile(path *uint16) (err error) {
|
|
|
1926
1927
|
}
|
|
1927
1928
|
|
|
1928
1929
|
func deleteProcThreadAttributeList(attrlist *ProcThreadAttributeList) {
|
|
1929
|
-
syscall.
|
|
1930
|
+
syscall.SyscallN(procDeleteProcThreadAttributeList.Addr(), uintptr(unsafe.Pointer(attrlist)))
|
|
1930
1931
|
return
|
|
1931
1932
|
}
|
|
1932
1933
|
|
|
1933
1934
|
func DeleteVolumeMountPoint(volumeMountPoint *uint16) (err error) {
|
|
1934
|
-
r1, _, e1 := syscall.
|
|
1935
|
+
r1, _, e1 := syscall.SyscallN(procDeleteVolumeMountPointW.Addr(), uintptr(unsafe.Pointer(volumeMountPoint)))
|
|
1935
1936
|
if r1 == 0 {
|
|
1936
1937
|
err = errnoErr(e1)
|
|
1937
1938
|
}
|
|
@@ -1939,7 +1940,7 @@ func DeleteVolumeMountPoint(volumeMountPoint *uint16) (err error) {
|
|
|
1939
1940
|
}
|
|
1940
1941
|
|
|
1941
1942
|
func DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *Overlapped) (err error) {
|
|
1942
|
-
r1, _, e1 := syscall.
|
|
1943
|
+
r1, _, e1 := syscall.SyscallN(procDeviceIoControl.Addr(), uintptr(handle), uintptr(ioControlCode), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferSize), uintptr(unsafe.Pointer(outBuffer)), uintptr(outBufferSize), uintptr(unsafe.Pointer(bytesReturned)), uintptr(unsafe.Pointer(overlapped)))
|
|
1943
1944
|
if r1 == 0 {
|
|
1944
1945
|
err = errnoErr(e1)
|
|
1945
1946
|
}
|
|
@@ -1947,7 +1948,7 @@ func DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBuff
|
|
|
1947
1948
|
}
|
|
1948
1949
|
|
|
1949
1950
|
func DisconnectNamedPipe(pipe Handle) (err error) {
|
|
1950
|
-
r1, _, e1 := syscall.
|
|
1951
|
+
r1, _, e1 := syscall.SyscallN(procDisconnectNamedPipe.Addr(), uintptr(pipe))
|
|
1951
1952
|
if r1 == 0 {
|
|
1952
1953
|
err = errnoErr(e1)
|
|
1953
1954
|
}
|
|
@@ -1959,7 +1960,7 @@ func DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetP
|
|
|
1959
1960
|
if bInheritHandle {
|
|
1960
1961
|
_p0 = 1
|
|
1961
1962
|
}
|
|
1962
|
-
r1, _, e1 := syscall.
|
|
1963
|
+
r1, _, e1 := syscall.SyscallN(procDuplicateHandle.Addr(), uintptr(hSourceProcessHandle), uintptr(hSourceHandle), uintptr(hTargetProcessHandle), uintptr(unsafe.Pointer(lpTargetHandle)), uintptr(dwDesiredAccess), uintptr(_p0), uintptr(dwOptions))
|
|
1963
1964
|
if r1 == 0 {
|
|
1964
1965
|
err = errnoErr(e1)
|
|
1965
1966
|
}
|
|
@@ -1967,7 +1968,7 @@ func DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetP
|
|
|
1967
1968
|
}
|
|
1968
1969
|
|
|
1969
1970
|
func EscapeCommFunction(handle Handle, dwFunc uint32) (err error) {
|
|
1970
|
-
r1, _, e1 := syscall.
|
|
1971
|
+
r1, _, e1 := syscall.SyscallN(procEscapeCommFunction.Addr(), uintptr(handle), uintptr(dwFunc))
|
|
1971
1972
|
if r1 == 0 {
|
|
1972
1973
|
err = errnoErr(e1)
|
|
1973
1974
|
}
|
|
@@ -1975,12 +1976,12 @@ func EscapeCommFunction(handle Handle, dwFunc uint32) (err error) {
|
|
|
1975
1976
|
}
|
|
1976
1977
|
|
|
1977
1978
|
func ExitProcess(exitcode uint32) {
|
|
1978
|
-
syscall.
|
|
1979
|
+
syscall.SyscallN(procExitProcess.Addr(), uintptr(exitcode))
|
|
1979
1980
|
return
|
|
1980
1981
|
}
|
|
1981
1982
|
|
|
1982
1983
|
func ExpandEnvironmentStrings(src *uint16, dst *uint16, size uint32) (n uint32, err error) {
|
|
1983
|
-
r0, _, e1 := syscall.
|
|
1984
|
+
r0, _, e1 := syscall.SyscallN(procExpandEnvironmentStringsW.Addr(), uintptr(unsafe.Pointer(src)), uintptr(unsafe.Pointer(dst)), uintptr(size))
|
|
1984
1985
|
n = uint32(r0)
|
|
1985
1986
|
if n == 0 {
|
|
1986
1987
|
err = errnoErr(e1)
|
|
@@ -1989,7 +1990,7 @@ func ExpandEnvironmentStrings(src *uint16, dst *uint16, size uint32) (n uint32,
|
|
|
1989
1990
|
}
|
|
1990
1991
|
|
|
1991
1992
|
func FindClose(handle Handle) (err error) {
|
|
1992
|
-
r1, _, e1 := syscall.
|
|
1993
|
+
r1, _, e1 := syscall.SyscallN(procFindClose.Addr(), uintptr(handle))
|
|
1993
1994
|
if r1 == 0 {
|
|
1994
1995
|
err = errnoErr(e1)
|
|
1995
1996
|
}
|
|
@@ -1997,7 +1998,7 @@ func FindClose(handle Handle) (err error) {
|
|
|
1997
1998
|
}
|
|
1998
1999
|
|
|
1999
2000
|
func FindCloseChangeNotification(handle Handle) (err error) {
|
|
2000
|
-
r1, _, e1 := syscall.
|
|
2001
|
+
r1, _, e1 := syscall.SyscallN(procFindCloseChangeNotification.Addr(), uintptr(handle))
|
|
2001
2002
|
if r1 == 0 {
|
|
2002
2003
|
err = errnoErr(e1)
|
|
2003
2004
|
}
|
|
@@ -2018,7 +2019,7 @@ func _FindFirstChangeNotification(path *uint16, watchSubtree bool, notifyFilter
|
|
|
2018
2019
|
if watchSubtree {
|
|
2019
2020
|
_p1 = 1
|
|
2020
2021
|
}
|
|
2021
|
-
r0, _, e1 := syscall.
|
|
2022
|
+
r0, _, e1 := syscall.SyscallN(procFindFirstChangeNotificationW.Addr(), uintptr(unsafe.Pointer(path)), uintptr(_p1), uintptr(notifyFilter))
|
|
2022
2023
|
handle = Handle(r0)
|
|
2023
2024
|
if handle == InvalidHandle {
|
|
2024
2025
|
err = errnoErr(e1)
|
|
@@ -2027,7 +2028,7 @@ func _FindFirstChangeNotification(path *uint16, watchSubtree bool, notifyFilter
|
|
|
2027
2028
|
}
|
|
2028
2029
|
|
|
2029
2030
|
func findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err error) {
|
|
2030
|
-
r0, _, e1 := syscall.
|
|
2031
|
+
r0, _, e1 := syscall.SyscallN(procFindFirstFileW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(data)))
|
|
2031
2032
|
handle = Handle(r0)
|
|
2032
2033
|
if handle == InvalidHandle {
|
|
2033
2034
|
err = errnoErr(e1)
|
|
@@ -2036,7 +2037,7 @@ func findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err erro
|
|
|
2036
2037
|
}
|
|
2037
2038
|
|
|
2038
2039
|
func FindFirstVolumeMountPoint(rootPathName *uint16, volumeMountPoint *uint16, bufferLength uint32) (handle Handle, err error) {
|
|
2039
|
-
r0, _, e1 := syscall.
|
|
2040
|
+
r0, _, e1 := syscall.SyscallN(procFindFirstVolumeMountPointW.Addr(), uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(bufferLength))
|
|
2040
2041
|
handle = Handle(r0)
|
|
2041
2042
|
if handle == InvalidHandle {
|
|
2042
2043
|
err = errnoErr(e1)
|
|
@@ -2045,7 +2046,7 @@ func FindFirstVolumeMountPoint(rootPathName *uint16, volumeMountPoint *uint16, b
|
|
|
2045
2046
|
}
|
|
2046
2047
|
|
|
2047
2048
|
func FindFirstVolume(volumeName *uint16, bufferLength uint32) (handle Handle, err error) {
|
|
2048
|
-
r0, _, e1 := syscall.
|
|
2049
|
+
r0, _, e1 := syscall.SyscallN(procFindFirstVolumeW.Addr(), uintptr(unsafe.Pointer(volumeName)), uintptr(bufferLength))
|
|
2049
2050
|
handle = Handle(r0)
|
|
2050
2051
|
if handle == InvalidHandle {
|
|
2051
2052
|
err = errnoErr(e1)
|
|
@@ -2054,7 +2055,7 @@ func FindFirstVolume(volumeName *uint16, bufferLength uint32) (handle Handle, er
|
|
|
2054
2055
|
}
|
|
2055
2056
|
|
|
2056
2057
|
func FindNextChangeNotification(handle Handle) (err error) {
|
|
2057
|
-
r1, _, e1 := syscall.
|
|
2058
|
+
r1, _, e1 := syscall.SyscallN(procFindNextChangeNotification.Addr(), uintptr(handle))
|
|
2058
2059
|
if r1 == 0 {
|
|
2059
2060
|
err = errnoErr(e1)
|
|
2060
2061
|
}
|
|
@@ -2062,7 +2063,7 @@ func FindNextChangeNotification(handle Handle) (err error) {
|
|
|
2062
2063
|
}
|
|
2063
2064
|
|
|
2064
2065
|
func findNextFile1(handle Handle, data *win32finddata1) (err error) {
|
|
2065
|
-
r1, _, e1 := syscall.
|
|
2066
|
+
r1, _, e1 := syscall.SyscallN(procFindNextFileW.Addr(), uintptr(handle), uintptr(unsafe.Pointer(data)))
|
|
2066
2067
|
if r1 == 0 {
|
|
2067
2068
|
err = errnoErr(e1)
|
|
2068
2069
|
}
|
|
@@ -2070,7 +2071,7 @@ func findNextFile1(handle Handle, data *win32finddata1) (err error) {
|
|
|
2070
2071
|
}
|
|
2071
2072
|
|
|
2072
2073
|
func FindNextVolumeMountPoint(findVolumeMountPoint Handle, volumeMountPoint *uint16, bufferLength uint32) (err error) {
|
|
2073
|
-
r1, _, e1 := syscall.
|
|
2074
|
+
r1, _, e1 := syscall.SyscallN(procFindNextVolumeMountPointW.Addr(), uintptr(findVolumeMountPoint), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(bufferLength))
|
|
2074
2075
|
if r1 == 0 {
|
|
2075
2076
|
err = errnoErr(e1)
|
|
2076
2077
|
}
|
|
@@ -2078,7 +2079,7 @@ func FindNextVolumeMountPoint(findVolumeMountPoint Handle, volumeMountPoint *uin
|
|
|
2078
2079
|
}
|
|
2079
2080
|
|
|
2080
2081
|
func FindNextVolume(findVolume Handle, volumeName *uint16, bufferLength uint32) (err error) {
|
|
2081
|
-
r1, _, e1 := syscall.
|
|
2082
|
+
r1, _, e1 := syscall.SyscallN(procFindNextVolumeW.Addr(), uintptr(findVolume), uintptr(unsafe.Pointer(volumeName)), uintptr(bufferLength))
|
|
2082
2083
|
if r1 == 0 {
|
|
2083
2084
|
err = errnoErr(e1)
|
|
2084
2085
|
}
|
|
@@ -2086,7 +2087,7 @@ func FindNextVolume(findVolume Handle, volumeName *uint16, bufferLength uint32)
|
|
|
2086
2087
|
}
|
|
2087
2088
|
|
|
2088
2089
|
func findResource(module Handle, name uintptr, resType uintptr) (resInfo Handle, err error) {
|
|
2089
|
-
r0, _, e1 := syscall.
|
|
2090
|
+
r0, _, e1 := syscall.SyscallN(procFindResourceW.Addr(), uintptr(module), uintptr(name), uintptr(resType))
|
|
2090
2091
|
resInfo = Handle(r0)
|
|
2091
2092
|
if resInfo == 0 {
|
|
2092
2093
|
err = errnoErr(e1)
|
|
@@ -2095,7 +2096,7 @@ func findResource(module Handle, name uintptr, resType uintptr) (resInfo Handle,
|
|
|
2095
2096
|
}
|
|
2096
2097
|
|
|
2097
2098
|
func FindVolumeClose(findVolume Handle) (err error) {
|
|
2098
|
-
r1, _, e1 := syscall.
|
|
2099
|
+
r1, _, e1 := syscall.SyscallN(procFindVolumeClose.Addr(), uintptr(findVolume))
|
|
2099
2100
|
if r1 == 0 {
|
|
2100
2101
|
err = errnoErr(e1)
|
|
2101
2102
|
}
|
|
@@ -2103,7 +2104,7 @@ func FindVolumeClose(findVolume Handle) (err error) {
|
|
|
2103
2104
|
}
|
|
2104
2105
|
|
|
2105
2106
|
func FindVolumeMountPointClose(findVolumeMountPoint Handle) (err error) {
|
|
2106
|
-
r1, _, e1 := syscall.
|
|
2107
|
+
r1, _, e1 := syscall.SyscallN(procFindVolumeMountPointClose.Addr(), uintptr(findVolumeMountPoint))
|
|
2107
2108
|
if r1 == 0 {
|
|
2108
2109
|
err = errnoErr(e1)
|
|
2109
2110
|
}
|
|
@@ -2111,7 +2112,7 @@ func FindVolumeMountPointClose(findVolumeMountPoint Handle) (err error) {
|
|
|
2111
2112
|
}
|
|
2112
2113
|
|
|
2113
2114
|
func FlushFileBuffers(handle Handle) (err error) {
|
|
2114
|
-
r1, _, e1 := syscall.
|
|
2115
|
+
r1, _, e1 := syscall.SyscallN(procFlushFileBuffers.Addr(), uintptr(handle))
|
|
2115
2116
|
if r1 == 0 {
|
|
2116
2117
|
err = errnoErr(e1)
|
|
2117
2118
|
}
|
|
@@ -2119,7 +2120,7 @@ func FlushFileBuffers(handle Handle) (err error) {
|
|
|
2119
2120
|
}
|
|
2120
2121
|
|
|
2121
2122
|
func FlushViewOfFile(addr uintptr, length uintptr) (err error) {
|
|
2122
|
-
r1, _, e1 := syscall.
|
|
2123
|
+
r1, _, e1 := syscall.SyscallN(procFlushViewOfFile.Addr(), uintptr(addr), uintptr(length))
|
|
2123
2124
|
if r1 == 0 {
|
|
2124
2125
|
err = errnoErr(e1)
|
|
2125
2126
|
}
|
|
@@ -2131,7 +2132,7 @@ func FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, bu
|
|
|
2131
2132
|
if len(buf) > 0 {
|
|
2132
2133
|
_p0 = &buf[0]
|
|
2133
2134
|
}
|
|
2134
|
-
r0, _, e1 := syscall.
|
|
2135
|
+
r0, _, e1 := syscall.SyscallN(procFormatMessageW.Addr(), uintptr(flags), uintptr(msgsrc), uintptr(msgid), uintptr(langid), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(args)))
|
|
2135
2136
|
n = uint32(r0)
|
|
2136
2137
|
if n == 0 {
|
|
2137
2138
|
err = errnoErr(e1)
|
|
@@ -2140,7 +2141,7 @@ func FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, bu
|
|
|
2140
2141
|
}
|
|
2141
2142
|
|
|
2142
2143
|
func FreeEnvironmentStrings(envs *uint16) (err error) {
|
|
2143
|
-
r1, _, e1 := syscall.
|
|
2144
|
+
r1, _, e1 := syscall.SyscallN(procFreeEnvironmentStringsW.Addr(), uintptr(unsafe.Pointer(envs)))
|
|
2144
2145
|
if r1 == 0 {
|
|
2145
2146
|
err = errnoErr(e1)
|
|
2146
2147
|
}
|
|
@@ -2148,7 +2149,7 @@ func FreeEnvironmentStrings(envs *uint16) (err error) {
|
|
|
2148
2149
|
}
|
|
2149
2150
|
|
|
2150
2151
|
func FreeLibrary(handle Handle) (err error) {
|
|
2151
|
-
r1, _, e1 := syscall.
|
|
2152
|
+
r1, _, e1 := syscall.SyscallN(procFreeLibrary.Addr(), uintptr(handle))
|
|
2152
2153
|
if r1 == 0 {
|
|
2153
2154
|
err = errnoErr(e1)
|
|
2154
2155
|
}
|
|
@@ -2156,7 +2157,7 @@ func FreeLibrary(handle Handle) (err error) {
|
|
|
2156
2157
|
}
|
|
2157
2158
|
|
|
2158
2159
|
func GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err error) {
|
|
2159
|
-
r1, _, e1 := syscall.
|
|
2160
|
+
r1, _, e1 := syscall.SyscallN(procGenerateConsoleCtrlEvent.Addr(), uintptr(ctrlEvent), uintptr(processGroupID))
|
|
2160
2161
|
if r1 == 0 {
|
|
2161
2162
|
err = errnoErr(e1)
|
|
2162
2163
|
}
|
|
@@ -2164,19 +2165,19 @@ func GenerateConsoleCtrlEvent(ctrlEvent uint32, processGroupID uint32) (err erro
|
|
|
2164
2165
|
}
|
|
2165
2166
|
|
|
2166
2167
|
func GetACP() (acp uint32) {
|
|
2167
|
-
r0, _, _ := syscall.
|
|
2168
|
+
r0, _, _ := syscall.SyscallN(procGetACP.Addr())
|
|
2168
2169
|
acp = uint32(r0)
|
|
2169
2170
|
return
|
|
2170
2171
|
}
|
|
2171
2172
|
|
|
2172
2173
|
func GetActiveProcessorCount(groupNumber uint16) (ret uint32) {
|
|
2173
|
-
r0, _, _ := syscall.
|
|
2174
|
+
r0, _, _ := syscall.SyscallN(procGetActiveProcessorCount.Addr(), uintptr(groupNumber))
|
|
2174
2175
|
ret = uint32(r0)
|
|
2175
2176
|
return
|
|
2176
2177
|
}
|
|
2177
2178
|
|
|
2178
2179
|
func GetCommModemStatus(handle Handle, lpModemStat *uint32) (err error) {
|
|
2179
|
-
r1, _, e1 := syscall.
|
|
2180
|
+
r1, _, e1 := syscall.SyscallN(procGetCommModemStatus.Addr(), uintptr(handle), uintptr(unsafe.Pointer(lpModemStat)))
|
|
2180
2181
|
if r1 == 0 {
|
|
2181
2182
|
err = errnoErr(e1)
|
|
2182
2183
|
}
|
|
@@ -2184,7 +2185,7 @@ func GetCommModemStatus(handle Handle, lpModemStat *uint32) (err error) {
|
|
|
2184
2185
|
}
|
|
2185
2186
|
|
|
2186
2187
|
func GetCommState(handle Handle, lpDCB *DCB) (err error) {
|
|
2187
|
-
r1, _, e1 := syscall.
|
|
2188
|
+
r1, _, e1 := syscall.SyscallN(procGetCommState.Addr(), uintptr(handle), uintptr(unsafe.Pointer(lpDCB)))
|
|
2188
2189
|
if r1 == 0 {
|
|
2189
2190
|
err = errnoErr(e1)
|
|
2190
2191
|
}
|
|
@@ -2192,7 +2193,7 @@ func GetCommState(handle Handle, lpDCB *DCB) (err error) {
|
|
|
2192
2193
|
}
|
|
2193
2194
|
|
|
2194
2195
|
func GetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error) {
|
|
2195
|
-
r1, _, e1 := syscall.
|
|
2196
|
+
r1, _, e1 := syscall.SyscallN(procGetCommTimeouts.Addr(), uintptr(handle), uintptr(unsafe.Pointer(timeouts)))
|
|
2196
2197
|
if r1 == 0 {
|
|
2197
2198
|
err = errnoErr(e1)
|
|
2198
2199
|
}
|
|
@@ -2200,13 +2201,13 @@ func GetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error) {
|
|
|
2200
2201
|
}
|
|
2201
2202
|
|
|
2202
2203
|
func GetCommandLine() (cmd *uint16) {
|
|
2203
|
-
r0, _, _ := syscall.
|
|
2204
|
+
r0, _, _ := syscall.SyscallN(procGetCommandLineW.Addr())
|
|
2204
2205
|
cmd = (*uint16)(unsafe.Pointer(r0))
|
|
2205
2206
|
return
|
|
2206
2207
|
}
|
|
2207
2208
|
|
|
2208
2209
|
func GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) {
|
|
2209
|
-
r1, _, e1 := syscall.
|
|
2210
|
+
r1, _, e1 := syscall.SyscallN(procGetComputerNameExW.Addr(), uintptr(nametype), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(n)))
|
|
2210
2211
|
if r1 == 0 {
|
|
2211
2212
|
err = errnoErr(e1)
|
|
2212
2213
|
}
|
|
@@ -2214,7 +2215,7 @@ func GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) {
|
|
|
2214
2215
|
}
|
|
2215
2216
|
|
|
2216
2217
|
func GetComputerName(buf *uint16, n *uint32) (err error) {
|
|
2217
|
-
r1, _, e1 := syscall.
|
|
2218
|
+
r1, _, e1 := syscall.SyscallN(procGetComputerNameW.Addr(), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(n)))
|
|
2218
2219
|
if r1 == 0 {
|
|
2219
2220
|
err = errnoErr(e1)
|
|
2220
2221
|
}
|
|
@@ -2222,7 +2223,7 @@ func GetComputerName(buf *uint16, n *uint32) (err error) {
|
|
|
2222
2223
|
}
|
|
2223
2224
|
|
|
2224
2225
|
func GetConsoleCP() (cp uint32, err error) {
|
|
2225
|
-
r0, _, e1 := syscall.
|
|
2226
|
+
r0, _, e1 := syscall.SyscallN(procGetConsoleCP.Addr())
|
|
2226
2227
|
cp = uint32(r0)
|
|
2227
2228
|
if cp == 0 {
|
|
2228
2229
|
err = errnoErr(e1)
|
|
@@ -2231,7 +2232,7 @@ func GetConsoleCP() (cp uint32, err error) {
|
|
|
2231
2232
|
}
|
|
2232
2233
|
|
|
2233
2234
|
func GetConsoleMode(console Handle, mode *uint32) (err error) {
|
|
2234
|
-
r1, _, e1 := syscall.
|
|
2235
|
+
r1, _, e1 := syscall.SyscallN(procGetConsoleMode.Addr(), uintptr(console), uintptr(unsafe.Pointer(mode)))
|
|
2235
2236
|
if r1 == 0 {
|
|
2236
2237
|
err = errnoErr(e1)
|
|
2237
2238
|
}
|
|
@@ -2239,7 +2240,7 @@ func GetConsoleMode(console Handle, mode *uint32) (err error) {
|
|
|
2239
2240
|
}
|
|
2240
2241
|
|
|
2241
2242
|
func GetConsoleOutputCP() (cp uint32, err error) {
|
|
2242
|
-
r0, _, e1 := syscall.
|
|
2243
|
+
r0, _, e1 := syscall.SyscallN(procGetConsoleOutputCP.Addr())
|
|
2243
2244
|
cp = uint32(r0)
|
|
2244
2245
|
if cp == 0 {
|
|
2245
2246
|
err = errnoErr(e1)
|
|
@@ -2248,7 +2249,7 @@ func GetConsoleOutputCP() (cp uint32, err error) {
|
|
|
2248
2249
|
}
|
|
2249
2250
|
|
|
2250
2251
|
func GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) {
|
|
2251
|
-
r1, _, e1 := syscall.
|
|
2252
|
+
r1, _, e1 := syscall.SyscallN(procGetConsoleScreenBufferInfo.Addr(), uintptr(console), uintptr(unsafe.Pointer(info)))
|
|
2252
2253
|
if r1 == 0 {
|
|
2253
2254
|
err = errnoErr(e1)
|
|
2254
2255
|
}
|
|
@@ -2256,7 +2257,7 @@ func GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (
|
|
|
2256
2257
|
}
|
|
2257
2258
|
|
|
2258
2259
|
func GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) {
|
|
2259
|
-
r0, _, e1 := syscall.
|
|
2260
|
+
r0, _, e1 := syscall.SyscallN(procGetCurrentDirectoryW.Addr(), uintptr(buflen), uintptr(unsafe.Pointer(buf)))
|
|
2260
2261
|
n = uint32(r0)
|
|
2261
2262
|
if n == 0 {
|
|
2262
2263
|
err = errnoErr(e1)
|
|
@@ -2265,19 +2266,19 @@ func GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) {
|
|
|
2265
2266
|
}
|
|
2266
2267
|
|
|
2267
2268
|
func GetCurrentProcessId() (pid uint32) {
|
|
2268
|
-
r0, _, _ := syscall.
|
|
2269
|
+
r0, _, _ := syscall.SyscallN(procGetCurrentProcessId.Addr())
|
|
2269
2270
|
pid = uint32(r0)
|
|
2270
2271
|
return
|
|
2271
2272
|
}
|
|
2272
2273
|
|
|
2273
2274
|
func GetCurrentThreadId() (id uint32) {
|
|
2274
|
-
r0, _, _ := syscall.
|
|
2275
|
+
r0, _, _ := syscall.SyscallN(procGetCurrentThreadId.Addr())
|
|
2275
2276
|
id = uint32(r0)
|
|
2276
2277
|
return
|
|
2277
2278
|
}
|
|
2278
2279
|
|
|
2279
2280
|
func GetDiskFreeSpaceEx(directoryName *uint16, freeBytesAvailableToCaller *uint64, totalNumberOfBytes *uint64, totalNumberOfFreeBytes *uint64) (err error) {
|
|
2280
|
-
r1, _, e1 := syscall.
|
|
2281
|
+
r1, _, e1 := syscall.SyscallN(procGetDiskFreeSpaceExW.Addr(), uintptr(unsafe.Pointer(directoryName)), uintptr(unsafe.Pointer(freeBytesAvailableToCaller)), uintptr(unsafe.Pointer(totalNumberOfBytes)), uintptr(unsafe.Pointer(totalNumberOfFreeBytes)))
|
|
2281
2282
|
if r1 == 0 {
|
|
2282
2283
|
err = errnoErr(e1)
|
|
2283
2284
|
}
|
|
@@ -2285,13 +2286,13 @@ func GetDiskFreeSpaceEx(directoryName *uint16, freeBytesAvailableToCaller *uint6
|
|
|
2285
2286
|
}
|
|
2286
2287
|
|
|
2287
2288
|
func GetDriveType(rootPathName *uint16) (driveType uint32) {
|
|
2288
|
-
r0, _, _ := syscall.
|
|
2289
|
+
r0, _, _ := syscall.SyscallN(procGetDriveTypeW.Addr(), uintptr(unsafe.Pointer(rootPathName)))
|
|
2289
2290
|
driveType = uint32(r0)
|
|
2290
2291
|
return
|
|
2291
2292
|
}
|
|
2292
2293
|
|
|
2293
2294
|
func GetEnvironmentStrings() (envs *uint16, err error) {
|
|
2294
|
-
r0, _, e1 := syscall.
|
|
2295
|
+
r0, _, e1 := syscall.SyscallN(procGetEnvironmentStringsW.Addr())
|
|
2295
2296
|
envs = (*uint16)(unsafe.Pointer(r0))
|
|
2296
2297
|
if envs == nil {
|
|
2297
2298
|
err = errnoErr(e1)
|
|
@@ -2300,7 +2301,7 @@ func GetEnvironmentStrings() (envs *uint16, err error) {
|
|
|
2300
2301
|
}
|
|
2301
2302
|
|
|
2302
2303
|
func GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32, err error) {
|
|
2303
|
-
r0, _, e1 := syscall.
|
|
2304
|
+
r0, _, e1 := syscall.SyscallN(procGetEnvironmentVariableW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(buffer)), uintptr(size))
|
|
2304
2305
|
n = uint32(r0)
|
|
2305
2306
|
if n == 0 {
|
|
2306
2307
|
err = errnoErr(e1)
|
|
@@ -2309,7 +2310,7 @@ func GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32
|
|
|
2309
2310
|
}
|
|
2310
2311
|
|
|
2311
2312
|
func GetExitCodeProcess(handle Handle, exitcode *uint32) (err error) {
|
|
2312
|
-
r1, _, e1 := syscall.
|
|
2313
|
+
r1, _, e1 := syscall.SyscallN(procGetExitCodeProcess.Addr(), uintptr(handle), uintptr(unsafe.Pointer(exitcode)))
|
|
2313
2314
|
if r1 == 0 {
|
|
2314
2315
|
err = errnoErr(e1)
|
|
2315
2316
|
}
|
|
@@ -2317,7 +2318,7 @@ func GetExitCodeProcess(handle Handle, exitcode *uint32) (err error) {
|
|
|
2317
2318
|
}
|
|
2318
2319
|
|
|
2319
2320
|
func GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) {
|
|
2320
|
-
r1, _, e1 := syscall.
|
|
2321
|
+
r1, _, e1 := syscall.SyscallN(procGetFileAttributesExW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(level), uintptr(unsafe.Pointer(info)))
|
|
2321
2322
|
if r1 == 0 {
|
|
2322
2323
|
err = errnoErr(e1)
|
|
2323
2324
|
}
|
|
@@ -2325,7 +2326,7 @@ func GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) {
|
|
|
2325
2326
|
}
|
|
2326
2327
|
|
|
2327
2328
|
func GetFileAttributes(name *uint16) (attrs uint32, err error) {
|
|
2328
|
-
r0, _, e1 := syscall.
|
|
2329
|
+
r0, _, e1 := syscall.SyscallN(procGetFileAttributesW.Addr(), uintptr(unsafe.Pointer(name)))
|
|
2329
2330
|
attrs = uint32(r0)
|
|
2330
2331
|
if attrs == INVALID_FILE_ATTRIBUTES {
|
|
2331
2332
|
err = errnoErr(e1)
|
|
@@ -2334,7 +2335,7 @@ func GetFileAttributes(name *uint16) (attrs uint32, err error) {
|
|
|
2334
2335
|
}
|
|
2335
2336
|
|
|
2336
2337
|
func GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error) {
|
|
2337
|
-
r1, _, e1 := syscall.
|
|
2338
|
+
r1, _, e1 := syscall.SyscallN(procGetFileInformationByHandle.Addr(), uintptr(handle), uintptr(unsafe.Pointer(data)))
|
|
2338
2339
|
if r1 == 0 {
|
|
2339
2340
|
err = errnoErr(e1)
|
|
2340
2341
|
}
|
|
@@ -2342,7 +2343,7 @@ func GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (e
|
|
|
2342
2343
|
}
|
|
2343
2344
|
|
|
2344
2345
|
func GetFileInformationByHandleEx(handle Handle, class uint32, outBuffer *byte, outBufferLen uint32) (err error) {
|
|
2345
|
-
r1, _, e1 := syscall.
|
|
2346
|
+
r1, _, e1 := syscall.SyscallN(procGetFileInformationByHandleEx.Addr(), uintptr(handle), uintptr(class), uintptr(unsafe.Pointer(outBuffer)), uintptr(outBufferLen))
|
|
2346
2347
|
if r1 == 0 {
|
|
2347
2348
|
err = errnoErr(e1)
|
|
2348
2349
|
}
|
|
@@ -2350,7 +2351,7 @@ func GetFileInformationByHandleEx(handle Handle, class uint32, outBuffer *byte,
|
|
|
2350
2351
|
}
|
|
2351
2352
|
|
|
2352
2353
|
func GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) {
|
|
2353
|
-
r1, _, e1 := syscall.
|
|
2354
|
+
r1, _, e1 := syscall.SyscallN(procGetFileTime.Addr(), uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)))
|
|
2354
2355
|
if r1 == 0 {
|
|
2355
2356
|
err = errnoErr(e1)
|
|
2356
2357
|
}
|
|
@@ -2358,7 +2359,7 @@ func GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetim
|
|
|
2358
2359
|
}
|
|
2359
2360
|
|
|
2360
2361
|
func GetFileType(filehandle Handle) (n uint32, err error) {
|
|
2361
|
-
r0, _, e1 := syscall.
|
|
2362
|
+
r0, _, e1 := syscall.SyscallN(procGetFileType.Addr(), uintptr(filehandle))
|
|
2362
2363
|
n = uint32(r0)
|
|
2363
2364
|
if n == 0 {
|
|
2364
2365
|
err = errnoErr(e1)
|
|
@@ -2367,7 +2368,7 @@ func GetFileType(filehandle Handle) (n uint32, err error) {
|
|
|
2367
2368
|
}
|
|
2368
2369
|
|
|
2369
2370
|
func GetFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error) {
|
|
2370
|
-
r0, _, e1 := syscall.
|
|
2371
|
+
r0, _, e1 := syscall.SyscallN(procGetFinalPathNameByHandleW.Addr(), uintptr(file), uintptr(unsafe.Pointer(filePath)), uintptr(filePathSize), uintptr(flags))
|
|
2371
2372
|
n = uint32(r0)
|
|
2372
2373
|
if n == 0 {
|
|
2373
2374
|
err = errnoErr(e1)
|
|
@@ -2376,7 +2377,7 @@ func GetFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32
|
|
|
2376
2377
|
}
|
|
2377
2378
|
|
|
2378
2379
|
func GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) {
|
|
2379
|
-
r0, _, e1 := syscall.
|
|
2380
|
+
r0, _, e1 := syscall.SyscallN(procGetFullPathNameW.Addr(), uintptr(unsafe.Pointer(path)), uintptr(buflen), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(fname)))
|
|
2380
2381
|
n = uint32(r0)
|
|
2381
2382
|
if n == 0 {
|
|
2382
2383
|
err = errnoErr(e1)
|
|
@@ -2385,13 +2386,13 @@ func GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (
|
|
|
2385
2386
|
}
|
|
2386
2387
|
|
|
2387
2388
|
func GetLargePageMinimum() (size uintptr) {
|
|
2388
|
-
r0, _, _ := syscall.
|
|
2389
|
+
r0, _, _ := syscall.SyscallN(procGetLargePageMinimum.Addr())
|
|
2389
2390
|
size = uintptr(r0)
|
|
2390
2391
|
return
|
|
2391
2392
|
}
|
|
2392
2393
|
|
|
2393
2394
|
func GetLastError() (lasterr error) {
|
|
2394
|
-
r0, _, _ := syscall.
|
|
2395
|
+
r0, _, _ := syscall.SyscallN(procGetLastError.Addr())
|
|
2395
2396
|
if r0 != 0 {
|
|
2396
2397
|
lasterr = syscall.Errno(r0)
|
|
2397
2398
|
}
|
|
@@ -2399,7 +2400,7 @@ func GetLastError() (lasterr error) {
|
|
|
2399
2400
|
}
|
|
2400
2401
|
|
|
2401
2402
|
func GetLogicalDriveStrings(bufferLength uint32, buffer *uint16) (n uint32, err error) {
|
|
2402
|
-
r0, _, e1 := syscall.
|
|
2403
|
+
r0, _, e1 := syscall.SyscallN(procGetLogicalDriveStringsW.Addr(), uintptr(bufferLength), uintptr(unsafe.Pointer(buffer)))
|
|
2403
2404
|
n = uint32(r0)
|
|
2404
2405
|
if n == 0 {
|
|
2405
2406
|
err = errnoErr(e1)
|
|
@@ -2408,7 +2409,7 @@ func GetLogicalDriveStrings(bufferLength uint32, buffer *uint16) (n uint32, err
|
|
|
2408
2409
|
}
|
|
2409
2410
|
|
|
2410
2411
|
func GetLogicalDrives() (drivesBitMask uint32, err error) {
|
|
2411
|
-
r0, _, e1 := syscall.
|
|
2412
|
+
r0, _, e1 := syscall.SyscallN(procGetLogicalDrives.Addr())
|
|
2412
2413
|
drivesBitMask = uint32(r0)
|
|
2413
2414
|
if drivesBitMask == 0 {
|
|
2414
2415
|
err = errnoErr(e1)
|
|
@@ -2417,7 +2418,7 @@ func GetLogicalDrives() (drivesBitMask uint32, err error) {
|
|
|
2417
2418
|
}
|
|
2418
2419
|
|
|
2419
2420
|
func GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err error) {
|
|
2420
|
-
r0, _, e1 := syscall.
|
|
2421
|
+
r0, _, e1 := syscall.SyscallN(procGetLongPathNameW.Addr(), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(buf)), uintptr(buflen))
|
|
2421
2422
|
n = uint32(r0)
|
|
2422
2423
|
if n == 0 {
|
|
2423
2424
|
err = errnoErr(e1)
|
|
@@ -2426,13 +2427,13 @@ func GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err er
|
|
|
2426
2427
|
}
|
|
2427
2428
|
|
|
2428
2429
|
func GetMaximumProcessorCount(groupNumber uint16) (ret uint32) {
|
|
2429
|
-
r0, _, _ := syscall.
|
|
2430
|
+
r0, _, _ := syscall.SyscallN(procGetMaximumProcessorCount.Addr(), uintptr(groupNumber))
|
|
2430
2431
|
ret = uint32(r0)
|
|
2431
2432
|
return
|
|
2432
2433
|
}
|
|
2433
2434
|
|
|
2434
2435
|
func GetModuleFileName(module Handle, filename *uint16, size uint32) (n uint32, err error) {
|
|
2435
|
-
r0, _, e1 := syscall.
|
|
2436
|
+
r0, _, e1 := syscall.SyscallN(procGetModuleFileNameW.Addr(), uintptr(module), uintptr(unsafe.Pointer(filename)), uintptr(size))
|
|
2436
2437
|
n = uint32(r0)
|
|
2437
2438
|
if n == 0 {
|
|
2438
2439
|
err = errnoErr(e1)
|
|
@@ -2441,7 +2442,7 @@ func GetModuleFileName(module Handle, filename *uint16, size uint32) (n uint32,
|
|
|
2441
2442
|
}
|
|
2442
2443
|
|
|
2443
2444
|
func GetModuleHandleEx(flags uint32, moduleName *uint16, module *Handle) (err error) {
|
|
2444
|
-
r1, _, e1 := syscall.
|
|
2445
|
+
r1, _, e1 := syscall.SyscallN(procGetModuleHandleExW.Addr(), uintptr(flags), uintptr(unsafe.Pointer(moduleName)), uintptr(unsafe.Pointer(module)))
|
|
2445
2446
|
if r1 == 0 {
|
|
2446
2447
|
err = errnoErr(e1)
|
|
2447
2448
|
}
|
|
@@ -2449,7 +2450,7 @@ func GetModuleHandleEx(flags uint32, moduleName *uint16, module *Handle) (err er
|
|
|
2449
2450
|
}
|
|
2450
2451
|
|
|
2451
2452
|
func GetNamedPipeClientProcessId(pipe Handle, clientProcessID *uint32) (err error) {
|
|
2452
|
-
r1, _, e1 := syscall.
|
|
2453
|
+
r1, _, e1 := syscall.SyscallN(procGetNamedPipeClientProcessId.Addr(), uintptr(pipe), uintptr(unsafe.Pointer(clientProcessID)))
|
|
2453
2454
|
if r1 == 0 {
|
|
2454
2455
|
err = errnoErr(e1)
|
|
2455
2456
|
}
|
|
@@ -2457,7 +2458,7 @@ func GetNamedPipeClientProcessId(pipe Handle, clientProcessID *uint32) (err erro
|
|
|
2457
2458
|
}
|
|
2458
2459
|
|
|
2459
2460
|
func GetNamedPipeHandleState(pipe Handle, state *uint32, curInstances *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32, userName *uint16, maxUserNameSize uint32) (err error) {
|
|
2460
|
-
r1, _, e1 := syscall.
|
|
2461
|
+
r1, _, e1 := syscall.SyscallN(procGetNamedPipeHandleStateW.Addr(), uintptr(pipe), uintptr(unsafe.Pointer(state)), uintptr(unsafe.Pointer(curInstances)), uintptr(unsafe.Pointer(maxCollectionCount)), uintptr(unsafe.Pointer(collectDataTimeout)), uintptr(unsafe.Pointer(userName)), uintptr(maxUserNameSize))
|
|
2461
2462
|
if r1 == 0 {
|
|
2462
2463
|
err = errnoErr(e1)
|
|
2463
2464
|
}
|
|
@@ -2465,7 +2466,7 @@ func GetNamedPipeHandleState(pipe Handle, state *uint32, curInstances *uint32, m
|
|
|
2465
2466
|
}
|
|
2466
2467
|
|
|
2467
2468
|
func GetNamedPipeInfo(pipe Handle, flags *uint32, outSize *uint32, inSize *uint32, maxInstances *uint32) (err error) {
|
|
2468
|
-
r1, _, e1 := syscall.
|
|
2469
|
+
r1, _, e1 := syscall.SyscallN(procGetNamedPipeInfo.Addr(), uintptr(pipe), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(outSize)), uintptr(unsafe.Pointer(inSize)), uintptr(unsafe.Pointer(maxInstances)))
|
|
2469
2470
|
if r1 == 0 {
|
|
2470
2471
|
err = errnoErr(e1)
|
|
2471
2472
|
}
|
|
@@ -2473,7 +2474,7 @@ func GetNamedPipeInfo(pipe Handle, flags *uint32, outSize *uint32, inSize *uint3
|
|
|
2473
2474
|
}
|
|
2474
2475
|
|
|
2475
2476
|
func GetNamedPipeServerProcessId(pipe Handle, serverProcessID *uint32) (err error) {
|
|
2476
|
-
r1, _, e1 := syscall.
|
|
2477
|
+
r1, _, e1 := syscall.SyscallN(procGetNamedPipeServerProcessId.Addr(), uintptr(pipe), uintptr(unsafe.Pointer(serverProcessID)))
|
|
2477
2478
|
if r1 == 0 {
|
|
2478
2479
|
err = errnoErr(e1)
|
|
2479
2480
|
}
|
|
@@ -2485,7 +2486,7 @@ func GetOverlappedResult(handle Handle, overlapped *Overlapped, done *uint32, wa
|
|
|
2485
2486
|
if wait {
|
|
2486
2487
|
_p0 = 1
|
|
2487
2488
|
}
|
|
2488
|
-
r1, _, e1 := syscall.
|
|
2489
|
+
r1, _, e1 := syscall.SyscallN(procGetOverlappedResult.Addr(), uintptr(handle), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(done)), uintptr(_p0))
|
|
2489
2490
|
if r1 == 0 {
|
|
2490
2491
|
err = errnoErr(e1)
|
|
2491
2492
|
}
|
|
@@ -2493,7 +2494,7 @@ func GetOverlappedResult(handle Handle, overlapped *Overlapped, done *uint32, wa
|
|
|
2493
2494
|
}
|
|
2494
2495
|
|
|
2495
2496
|
func GetPriorityClass(process Handle) (ret uint32, err error) {
|
|
2496
|
-
r0, _, e1 := syscall.
|
|
2497
|
+
r0, _, e1 := syscall.SyscallN(procGetPriorityClass.Addr(), uintptr(process))
|
|
2497
2498
|
ret = uint32(r0)
|
|
2498
2499
|
if ret == 0 {
|
|
2499
2500
|
err = errnoErr(e1)
|
|
@@ -2511,7 +2512,7 @@ func GetProcAddress(module Handle, procname string) (proc uintptr, err error) {
|
|
|
2511
2512
|
}
|
|
2512
2513
|
|
|
2513
2514
|
func _GetProcAddress(module Handle, procname *byte) (proc uintptr, err error) {
|
|
2514
|
-
r0, _, e1 := syscall.
|
|
2515
|
+
r0, _, e1 := syscall.SyscallN(procGetProcAddress.Addr(), uintptr(module), uintptr(unsafe.Pointer(procname)))
|
|
2515
2516
|
proc = uintptr(r0)
|
|
2516
2517
|
if proc == 0 {
|
|
2517
2518
|
err = errnoErr(e1)
|
|
@@ -2520,7 +2521,7 @@ func _GetProcAddress(module Handle, procname *byte) (proc uintptr, err error) {
|
|
|
2520
2521
|
}
|
|
2521
2522
|
|
|
2522
2523
|
func GetProcessId(process Handle) (id uint32, err error) {
|
|
2523
|
-
r0, _, e1 := syscall.
|
|
2524
|
+
r0, _, e1 := syscall.SyscallN(procGetProcessId.Addr(), uintptr(process))
|
|
2524
2525
|
id = uint32(r0)
|
|
2525
2526
|
if id == 0 {
|
|
2526
2527
|
err = errnoErr(e1)
|
|
@@ -2529,7 +2530,7 @@ func GetProcessId(process Handle) (id uint32, err error) {
|
|
|
2529
2530
|
}
|
|
2530
2531
|
|
|
2531
2532
|
func getProcessPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
|
|
2532
|
-
r1, _, e1 := syscall.
|
|
2533
|
+
r1, _, e1 := syscall.SyscallN(procGetProcessPreferredUILanguages.Addr(), uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)))
|
|
2533
2534
|
if r1 == 0 {
|
|
2534
2535
|
err = errnoErr(e1)
|
|
2535
2536
|
}
|
|
@@ -2537,7 +2538,7 @@ func getProcessPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uin
|
|
|
2537
2538
|
}
|
|
2538
2539
|
|
|
2539
2540
|
func GetProcessShutdownParameters(level *uint32, flags *uint32) (err error) {
|
|
2540
|
-
r1, _, e1 := syscall.
|
|
2541
|
+
r1, _, e1 := syscall.SyscallN(procGetProcessShutdownParameters.Addr(), uintptr(unsafe.Pointer(level)), uintptr(unsafe.Pointer(flags)))
|
|
2541
2542
|
if r1 == 0 {
|
|
2542
2543
|
err = errnoErr(e1)
|
|
2543
2544
|
}
|
|
@@ -2545,7 +2546,7 @@ func GetProcessShutdownParameters(level *uint32, flags *uint32) (err error) {
|
|
|
2545
2546
|
}
|
|
2546
2547
|
|
|
2547
2548
|
func GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error) {
|
|
2548
|
-
r1, _, e1 := syscall.
|
|
2549
|
+
r1, _, e1 := syscall.SyscallN(procGetProcessTimes.Addr(), uintptr(handle), uintptr(unsafe.Pointer(creationTime)), uintptr(unsafe.Pointer(exitTime)), uintptr(unsafe.Pointer(kernelTime)), uintptr(unsafe.Pointer(userTime)))
|
|
2549
2550
|
if r1 == 0 {
|
|
2550
2551
|
err = errnoErr(e1)
|
|
2551
2552
|
}
|
|
@@ -2553,12 +2554,12 @@ func GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime,
|
|
|
2553
2554
|
}
|
|
2554
2555
|
|
|
2555
2556
|
func GetProcessWorkingSetSizeEx(hProcess Handle, lpMinimumWorkingSetSize *uintptr, lpMaximumWorkingSetSize *uintptr, flags *uint32) {
|
|
2556
|
-
syscall.
|
|
2557
|
+
syscall.SyscallN(procGetProcessWorkingSetSizeEx.Addr(), uintptr(hProcess), uintptr(unsafe.Pointer(lpMinimumWorkingSetSize)), uintptr(unsafe.Pointer(lpMaximumWorkingSetSize)), uintptr(unsafe.Pointer(flags)))
|
|
2557
2558
|
return
|
|
2558
2559
|
}
|
|
2559
2560
|
|
|
2560
2561
|
func GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uintptr, overlapped **Overlapped, timeout uint32) (err error) {
|
|
2561
|
-
r1, _, e1 := syscall.
|
|
2562
|
+
r1, _, e1 := syscall.SyscallN(procGetQueuedCompletionStatus.Addr(), uintptr(cphandle), uintptr(unsafe.Pointer(qty)), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(overlapped)), uintptr(timeout))
|
|
2562
2563
|
if r1 == 0 {
|
|
2563
2564
|
err = errnoErr(e1)
|
|
2564
2565
|
}
|
|
@@ -2566,7 +2567,7 @@ func GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uintptr, overl
|
|
|
2566
2567
|
}
|
|
2567
2568
|
|
|
2568
2569
|
func GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) {
|
|
2569
|
-
r0, _, e1 := syscall.
|
|
2570
|
+
r0, _, e1 := syscall.SyscallN(procGetShortPathNameW.Addr(), uintptr(unsafe.Pointer(longpath)), uintptr(unsafe.Pointer(shortpath)), uintptr(buflen))
|
|
2570
2571
|
n = uint32(r0)
|
|
2571
2572
|
if n == 0 {
|
|
2572
2573
|
err = errnoErr(e1)
|
|
@@ -2575,12 +2576,12 @@ func GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uin
|
|
|
2575
2576
|
}
|
|
2576
2577
|
|
|
2577
2578
|
func getStartupInfo(startupInfo *StartupInfo) {
|
|
2578
|
-
syscall.
|
|
2579
|
+
syscall.SyscallN(procGetStartupInfoW.Addr(), uintptr(unsafe.Pointer(startupInfo)))
|
|
2579
2580
|
return
|
|
2580
2581
|
}
|
|
2581
2582
|
|
|
2582
2583
|
func GetStdHandle(stdhandle uint32) (handle Handle, err error) {
|
|
2583
|
-
r0, _, e1 := syscall.
|
|
2584
|
+
r0, _, e1 := syscall.SyscallN(procGetStdHandle.Addr(), uintptr(stdhandle))
|
|
2584
2585
|
handle = Handle(r0)
|
|
2585
2586
|
if handle == InvalidHandle {
|
|
2586
2587
|
err = errnoErr(e1)
|
|
@@ -2589,7 +2590,7 @@ func GetStdHandle(stdhandle uint32) (handle Handle, err error) {
|
|
|
2589
2590
|
}
|
|
2590
2591
|
|
|
2591
2592
|
func getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
|
|
2592
|
-
r0, _, e1 := syscall.
|
|
2593
|
+
r0, _, e1 := syscall.SyscallN(procGetSystemDirectoryW.Addr(), uintptr(unsafe.Pointer(dir)), uintptr(dirLen))
|
|
2593
2594
|
len = uint32(r0)
|
|
2594
2595
|
if len == 0 {
|
|
2595
2596
|
err = errnoErr(e1)
|
|
@@ -2598,7 +2599,7 @@ func getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
|
|
|
2598
2599
|
}
|
|
2599
2600
|
|
|
2600
2601
|
func getSystemPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
|
|
2601
|
-
r1, _, e1 := syscall.
|
|
2602
|
+
r1, _, e1 := syscall.SyscallN(procGetSystemPreferredUILanguages.Addr(), uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)))
|
|
2602
2603
|
if r1 == 0 {
|
|
2603
2604
|
err = errnoErr(e1)
|
|
2604
2605
|
}
|
|
@@ -2606,17 +2607,17 @@ func getSystemPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint
|
|
|
2606
2607
|
}
|
|
2607
2608
|
|
|
2608
2609
|
func GetSystemTimeAsFileTime(time *Filetime) {
|
|
2609
|
-
syscall.
|
|
2610
|
+
syscall.SyscallN(procGetSystemTimeAsFileTime.Addr(), uintptr(unsafe.Pointer(time)))
|
|
2610
2611
|
return
|
|
2611
2612
|
}
|
|
2612
2613
|
|
|
2613
2614
|
func GetSystemTimePreciseAsFileTime(time *Filetime) {
|
|
2614
|
-
syscall.
|
|
2615
|
+
syscall.SyscallN(procGetSystemTimePreciseAsFileTime.Addr(), uintptr(unsafe.Pointer(time)))
|
|
2615
2616
|
return
|
|
2616
2617
|
}
|
|
2617
2618
|
|
|
2618
2619
|
func getSystemWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
|
|
2619
|
-
r0, _, e1 := syscall.
|
|
2620
|
+
r0, _, e1 := syscall.SyscallN(procGetSystemWindowsDirectoryW.Addr(), uintptr(unsafe.Pointer(dir)), uintptr(dirLen))
|
|
2620
2621
|
len = uint32(r0)
|
|
2621
2622
|
if len == 0 {
|
|
2622
2623
|
err = errnoErr(e1)
|
|
@@ -2625,7 +2626,7 @@ func getSystemWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err erro
|
|
|
2625
2626
|
}
|
|
2626
2627
|
|
|
2627
2628
|
func GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) {
|
|
2628
|
-
r0, _, e1 := syscall.
|
|
2629
|
+
r0, _, e1 := syscall.SyscallN(procGetTempPathW.Addr(), uintptr(buflen), uintptr(unsafe.Pointer(buf)))
|
|
2629
2630
|
n = uint32(r0)
|
|
2630
2631
|
if n == 0 {
|
|
2631
2632
|
err = errnoErr(e1)
|
|
@@ -2634,7 +2635,7 @@ func GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) {
|
|
|
2634
2635
|
}
|
|
2635
2636
|
|
|
2636
2637
|
func getThreadPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
|
|
2637
|
-
r1, _, e1 := syscall.
|
|
2638
|
+
r1, _, e1 := syscall.SyscallN(procGetThreadPreferredUILanguages.Addr(), uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)))
|
|
2638
2639
|
if r1 == 0 {
|
|
2639
2640
|
err = errnoErr(e1)
|
|
2640
2641
|
}
|
|
@@ -2642,13 +2643,13 @@ func getThreadPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint
|
|
|
2642
2643
|
}
|
|
2643
2644
|
|
|
2644
2645
|
func getTickCount64() (ms uint64) {
|
|
2645
|
-
r0, _, _ := syscall.
|
|
2646
|
+
r0, _, _ := syscall.SyscallN(procGetTickCount64.Addr())
|
|
2646
2647
|
ms = uint64(r0)
|
|
2647
2648
|
return
|
|
2648
2649
|
}
|
|
2649
2650
|
|
|
2650
2651
|
func GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) {
|
|
2651
|
-
r0, _, e1 := syscall.
|
|
2652
|
+
r0, _, e1 := syscall.SyscallN(procGetTimeZoneInformation.Addr(), uintptr(unsafe.Pointer(tzi)))
|
|
2652
2653
|
rc = uint32(r0)
|
|
2653
2654
|
if rc == 0xffffffff {
|
|
2654
2655
|
err = errnoErr(e1)
|
|
@@ -2657,7 +2658,7 @@ func GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) {
|
|
|
2657
2658
|
}
|
|
2658
2659
|
|
|
2659
2660
|
func getUserPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16, bufSize *uint32) (err error) {
|
|
2660
|
-
r1, _, e1 := syscall.
|
|
2661
|
+
r1, _, e1 := syscall.SyscallN(procGetUserPreferredUILanguages.Addr(), uintptr(flags), uintptr(unsafe.Pointer(numLanguages)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(bufSize)))
|
|
2661
2662
|
if r1 == 0 {
|
|
2662
2663
|
err = errnoErr(e1)
|
|
2663
2664
|
}
|
|
@@ -2665,7 +2666,7 @@ func getUserPreferredUILanguages(flags uint32, numLanguages *uint32, buf *uint16
|
|
|
2665
2666
|
}
|
|
2666
2667
|
|
|
2667
2668
|
func GetVersion() (ver uint32, err error) {
|
|
2668
|
-
r0, _, e1 := syscall.
|
|
2669
|
+
r0, _, e1 := syscall.SyscallN(procGetVersion.Addr())
|
|
2669
2670
|
ver = uint32(r0)
|
|
2670
2671
|
if ver == 0 {
|
|
2671
2672
|
err = errnoErr(e1)
|
|
@@ -2674,7 +2675,7 @@ func GetVersion() (ver uint32, err error) {
|
|
|
2674
2675
|
}
|
|
2675
2676
|
|
|
2676
2677
|
func GetVolumeInformationByHandle(file Handle, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) {
|
|
2677
|
-
r1, _, e1 := syscall.
|
|
2678
|
+
r1, _, e1 := syscall.SyscallN(procGetVolumeInformationByHandleW.Addr(), uintptr(file), uintptr(unsafe.Pointer(volumeNameBuffer)), uintptr(volumeNameSize), uintptr(unsafe.Pointer(volumeNameSerialNumber)), uintptr(unsafe.Pointer(maximumComponentLength)), uintptr(unsafe.Pointer(fileSystemFlags)), uintptr(unsafe.Pointer(fileSystemNameBuffer)), uintptr(fileSystemNameSize))
|
|
2678
2679
|
if r1 == 0 {
|
|
2679
2680
|
err = errnoErr(e1)
|
|
2680
2681
|
}
|
|
@@ -2682,7 +2683,7 @@ func GetVolumeInformationByHandle(file Handle, volumeNameBuffer *uint16, volumeN
|
|
|
2682
2683
|
}
|
|
2683
2684
|
|
|
2684
2685
|
func GetVolumeInformation(rootPathName *uint16, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) {
|
|
2685
|
-
r1, _, e1 := syscall.
|
|
2686
|
+
r1, _, e1 := syscall.SyscallN(procGetVolumeInformationW.Addr(), uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeNameBuffer)), uintptr(volumeNameSize), uintptr(unsafe.Pointer(volumeNameSerialNumber)), uintptr(unsafe.Pointer(maximumComponentLength)), uintptr(unsafe.Pointer(fileSystemFlags)), uintptr(unsafe.Pointer(fileSystemNameBuffer)), uintptr(fileSystemNameSize))
|
|
2686
2687
|
if r1 == 0 {
|
|
2687
2688
|
err = errnoErr(e1)
|
|
2688
2689
|
}
|
|
@@ -2690,7 +2691,7 @@ func GetVolumeInformation(rootPathName *uint16, volumeNameBuffer *uint16, volume
|
|
|
2690
2691
|
}
|
|
2691
2692
|
|
|
2692
2693
|
func GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferlength uint32) (err error) {
|
|
2693
|
-
r1, _, e1 := syscall.
|
|
2694
|
+
r1, _, e1 := syscall.SyscallN(procGetVolumeNameForVolumeMountPointW.Addr(), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(unsafe.Pointer(volumeName)), uintptr(bufferlength))
|
|
2694
2695
|
if r1 == 0 {
|
|
2695
2696
|
err = errnoErr(e1)
|
|
2696
2697
|
}
|
|
@@ -2698,7 +2699,7 @@ func GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint
|
|
|
2698
2699
|
}
|
|
2699
2700
|
|
|
2700
2701
|
func GetVolumePathName(fileName *uint16, volumePathName *uint16, bufferLength uint32) (err error) {
|
|
2701
|
-
r1, _, e1 := syscall.
|
|
2702
|
+
r1, _, e1 := syscall.SyscallN(procGetVolumePathNameW.Addr(), uintptr(unsafe.Pointer(fileName)), uintptr(unsafe.Pointer(volumePathName)), uintptr(bufferLength))
|
|
2702
2703
|
if r1 == 0 {
|
|
2703
2704
|
err = errnoErr(e1)
|
|
2704
2705
|
}
|
|
@@ -2706,7 +2707,7 @@ func GetVolumePathName(fileName *uint16, volumePathName *uint16, bufferLength ui
|
|
|
2706
2707
|
}
|
|
2707
2708
|
|
|
2708
2709
|
func GetVolumePathNamesForVolumeName(volumeName *uint16, volumePathNames *uint16, bufferLength uint32, returnLength *uint32) (err error) {
|
|
2709
|
-
r1, _, e1 := syscall.
|
|
2710
|
+
r1, _, e1 := syscall.SyscallN(procGetVolumePathNamesForVolumeNameW.Addr(), uintptr(unsafe.Pointer(volumeName)), uintptr(unsafe.Pointer(volumePathNames)), uintptr(bufferLength), uintptr(unsafe.Pointer(returnLength)))
|
|
2710
2711
|
if r1 == 0 {
|
|
2711
2712
|
err = errnoErr(e1)
|
|
2712
2713
|
}
|
|
@@ -2714,7 +2715,7 @@ func GetVolumePathNamesForVolumeName(volumeName *uint16, volumePathNames *uint16
|
|
|
2714
2715
|
}
|
|
2715
2716
|
|
|
2716
2717
|
func getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
|
|
2717
|
-
r0, _, e1 := syscall.
|
|
2718
|
+
r0, _, e1 := syscall.SyscallN(procGetWindowsDirectoryW.Addr(), uintptr(unsafe.Pointer(dir)), uintptr(dirLen))
|
|
2718
2719
|
len = uint32(r0)
|
|
2719
2720
|
if len == 0 {
|
|
2720
2721
|
err = errnoErr(e1)
|
|
@@ -2723,7 +2724,7 @@ func getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
|
|
|
2723
2724
|
}
|
|
2724
2725
|
|
|
2725
2726
|
func initializeProcThreadAttributeList(attrlist *ProcThreadAttributeList, attrcount uint32, flags uint32, size *uintptr) (err error) {
|
|
2726
|
-
r1, _, e1 := syscall.
|
|
2727
|
+
r1, _, e1 := syscall.SyscallN(procInitializeProcThreadAttributeList.Addr(), uintptr(unsafe.Pointer(attrlist)), uintptr(attrcount), uintptr(flags), uintptr(unsafe.Pointer(size)))
|
|
2727
2728
|
if r1 == 0 {
|
|
2728
2729
|
err = errnoErr(e1)
|
|
2729
2730
|
}
|
|
@@ -2735,7 +2736,7 @@ func IsWow64Process(handle Handle, isWow64 *bool) (err error) {
|
|
|
2735
2736
|
if *isWow64 {
|
|
2736
2737
|
_p0 = 1
|
|
2737
2738
|
}
|
|
2738
|
-
r1, _, e1 := syscall.
|
|
2739
|
+
r1, _, e1 := syscall.SyscallN(procIsWow64Process.Addr(), uintptr(handle), uintptr(unsafe.Pointer(&_p0)))
|
|
2739
2740
|
*isWow64 = _p0 != 0
|
|
2740
2741
|
if r1 == 0 {
|
|
2741
2742
|
err = errnoErr(e1)
|
|
@@ -2748,7 +2749,7 @@ func IsWow64Process2(handle Handle, processMachine *uint16, nativeMachine *uint1
|
|
|
2748
2749
|
if err != nil {
|
|
2749
2750
|
return
|
|
2750
2751
|
}
|
|
2751
|
-
r1, _, e1 := syscall.
|
|
2752
|
+
r1, _, e1 := syscall.SyscallN(procIsWow64Process2.Addr(), uintptr(handle), uintptr(unsafe.Pointer(processMachine)), uintptr(unsafe.Pointer(nativeMachine)))
|
|
2752
2753
|
if r1 == 0 {
|
|
2753
2754
|
err = errnoErr(e1)
|
|
2754
2755
|
}
|
|
@@ -2765,7 +2766,7 @@ func LoadLibraryEx(libname string, zero Handle, flags uintptr) (handle Handle, e
|
|
|
2765
2766
|
}
|
|
2766
2767
|
|
|
2767
2768
|
func _LoadLibraryEx(libname *uint16, zero Handle, flags uintptr) (handle Handle, err error) {
|
|
2768
|
-
r0, _, e1 := syscall.
|
|
2769
|
+
r0, _, e1 := syscall.SyscallN(procLoadLibraryExW.Addr(), uintptr(unsafe.Pointer(libname)), uintptr(zero), uintptr(flags))
|
|
2769
2770
|
handle = Handle(r0)
|
|
2770
2771
|
if handle == 0 {
|
|
2771
2772
|
err = errnoErr(e1)
|
|
@@ -2783,7 +2784,7 @@ func LoadLibrary(libname string) (handle Handle, err error) {
|
|
|
2783
2784
|
}
|
|
2784
2785
|
|
|
2785
2786
|
func _LoadLibrary(libname *uint16) (handle Handle, err error) {
|
|
2786
|
-
r0, _, e1 := syscall.
|
|
2787
|
+
r0, _, e1 := syscall.SyscallN(procLoadLibraryW.Addr(), uintptr(unsafe.Pointer(libname)))
|
|
2787
2788
|
handle = Handle(r0)
|
|
2788
2789
|
if handle == 0 {
|
|
2789
2790
|
err = errnoErr(e1)
|
|
@@ -2792,7 +2793,7 @@ func _LoadLibrary(libname *uint16) (handle Handle, err error) {
|
|
|
2792
2793
|
}
|
|
2793
2794
|
|
|
2794
2795
|
func LoadResource(module Handle, resInfo Handle) (resData Handle, err error) {
|
|
2795
|
-
r0, _, e1 := syscall.
|
|
2796
|
+
r0, _, e1 := syscall.SyscallN(procLoadResource.Addr(), uintptr(module), uintptr(resInfo))
|
|
2796
2797
|
resData = Handle(r0)
|
|
2797
2798
|
if resData == 0 {
|
|
2798
2799
|
err = errnoErr(e1)
|
|
@@ -2801,7 +2802,7 @@ func LoadResource(module Handle, resInfo Handle) (resData Handle, err error) {
|
|
|
2801
2802
|
}
|
|
2802
2803
|
|
|
2803
2804
|
func LocalAlloc(flags uint32, length uint32) (ptr uintptr, err error) {
|
|
2804
|
-
r0, _, e1 := syscall.
|
|
2805
|
+
r0, _, e1 := syscall.SyscallN(procLocalAlloc.Addr(), uintptr(flags), uintptr(length))
|
|
2805
2806
|
ptr = uintptr(r0)
|
|
2806
2807
|
if ptr == 0 {
|
|
2807
2808
|
err = errnoErr(e1)
|
|
@@ -2810,7 +2811,7 @@ func LocalAlloc(flags uint32, length uint32) (ptr uintptr, err error) {
|
|
|
2810
2811
|
}
|
|
2811
2812
|
|
|
2812
2813
|
func LocalFree(hmem Handle) (handle Handle, err error) {
|
|
2813
|
-
r0, _, e1 := syscall.
|
|
2814
|
+
r0, _, e1 := syscall.SyscallN(procLocalFree.Addr(), uintptr(hmem))
|
|
2814
2815
|
handle = Handle(r0)
|
|
2815
2816
|
if handle != 0 {
|
|
2816
2817
|
err = errnoErr(e1)
|
|
@@ -2819,7 +2820,7 @@ func LocalFree(hmem Handle) (handle Handle, err error) {
|
|
|
2819
2820
|
}
|
|
2820
2821
|
|
|
2821
2822
|
func LockFileEx(file Handle, flags uint32, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error) {
|
|
2822
|
-
r1, _, e1 := syscall.
|
|
2823
|
+
r1, _, e1 := syscall.SyscallN(procLockFileEx.Addr(), uintptr(file), uintptr(flags), uintptr(reserved), uintptr(bytesLow), uintptr(bytesHigh), uintptr(unsafe.Pointer(overlapped)))
|
|
2823
2824
|
if r1 == 0 {
|
|
2824
2825
|
err = errnoErr(e1)
|
|
2825
2826
|
}
|
|
@@ -2827,7 +2828,7 @@ func LockFileEx(file Handle, flags uint32, reserved uint32, bytesLow uint32, byt
|
|
|
2827
2828
|
}
|
|
2828
2829
|
|
|
2829
2830
|
func LockResource(resData Handle) (addr uintptr, err error) {
|
|
2830
|
-
r0, _, e1 := syscall.
|
|
2831
|
+
r0, _, e1 := syscall.SyscallN(procLockResource.Addr(), uintptr(resData))
|
|
2831
2832
|
addr = uintptr(r0)
|
|
2832
2833
|
if addr == 0 {
|
|
2833
2834
|
err = errnoErr(e1)
|
|
@@ -2836,7 +2837,7 @@ func LockResource(resData Handle) (addr uintptr, err error) {
|
|
|
2836
2837
|
}
|
|
2837
2838
|
|
|
2838
2839
|
func MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error) {
|
|
2839
|
-
r0, _, e1 := syscall.
|
|
2840
|
+
r0, _, e1 := syscall.SyscallN(procMapViewOfFile.Addr(), uintptr(handle), uintptr(access), uintptr(offsetHigh), uintptr(offsetLow), uintptr(length))
|
|
2840
2841
|
addr = uintptr(r0)
|
|
2841
2842
|
if addr == 0 {
|
|
2842
2843
|
err = errnoErr(e1)
|
|
@@ -2845,7 +2846,7 @@ func MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow ui
|
|
|
2845
2846
|
}
|
|
2846
2847
|
|
|
2847
2848
|
func Module32First(snapshot Handle, moduleEntry *ModuleEntry32) (err error) {
|
|
2848
|
-
r1, _, e1 := syscall.
|
|
2849
|
+
r1, _, e1 := syscall.SyscallN(procModule32FirstW.Addr(), uintptr(snapshot), uintptr(unsafe.Pointer(moduleEntry)))
|
|
2849
2850
|
if r1 == 0 {
|
|
2850
2851
|
err = errnoErr(e1)
|
|
2851
2852
|
}
|
|
@@ -2853,7 +2854,7 @@ func Module32First(snapshot Handle, moduleEntry *ModuleEntry32) (err error) {
|
|
|
2853
2854
|
}
|
|
2854
2855
|
|
|
2855
2856
|
func Module32Next(snapshot Handle, moduleEntry *ModuleEntry32) (err error) {
|
|
2856
|
-
r1, _, e1 := syscall.
|
|
2857
|
+
r1, _, e1 := syscall.SyscallN(procModule32NextW.Addr(), uintptr(snapshot), uintptr(unsafe.Pointer(moduleEntry)))
|
|
2857
2858
|
if r1 == 0 {
|
|
2858
2859
|
err = errnoErr(e1)
|
|
2859
2860
|
}
|
|
@@ -2861,7 +2862,7 @@ func Module32Next(snapshot Handle, moduleEntry *ModuleEntry32) (err error) {
|
|
|
2861
2862
|
}
|
|
2862
2863
|
|
|
2863
2864
|
func MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) {
|
|
2864
|
-
r1, _, e1 := syscall.
|
|
2865
|
+
r1, _, e1 := syscall.SyscallN(procMoveFileExW.Addr(), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)), uintptr(flags))
|
|
2865
2866
|
if r1 == 0 {
|
|
2866
2867
|
err = errnoErr(e1)
|
|
2867
2868
|
}
|
|
@@ -2869,7 +2870,7 @@ func MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) {
|
|
|
2869
2870
|
}
|
|
2870
2871
|
|
|
2871
2872
|
func MoveFile(from *uint16, to *uint16) (err error) {
|
|
2872
|
-
r1, _, e1 := syscall.
|
|
2873
|
+
r1, _, e1 := syscall.SyscallN(procMoveFileW.Addr(), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)))
|
|
2873
2874
|
if r1 == 0 {
|
|
2874
2875
|
err = errnoErr(e1)
|
|
2875
2876
|
}
|
|
@@ -2877,7 +2878,7 @@ func MoveFile(from *uint16, to *uint16) (err error) {
|
|
|
2877
2878
|
}
|
|
2878
2879
|
|
|
2879
2880
|
func MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error) {
|
|
2880
|
-
r0, _, e1 := syscall.
|
|
2881
|
+
r0, _, e1 := syscall.SyscallN(procMultiByteToWideChar.Addr(), uintptr(codePage), uintptr(dwFlags), uintptr(unsafe.Pointer(str)), uintptr(nstr), uintptr(unsafe.Pointer(wchar)), uintptr(nwchar))
|
|
2881
2882
|
nwrite = int32(r0)
|
|
2882
2883
|
if nwrite == 0 {
|
|
2883
2884
|
err = errnoErr(e1)
|
|
@@ -2890,7 +2891,7 @@ func OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (handle H
|
|
|
2890
2891
|
if inheritHandle {
|
|
2891
2892
|
_p0 = 1
|
|
2892
2893
|
}
|
|
2893
|
-
r0, _, e1 := syscall.
|
|
2894
|
+
r0, _, e1 := syscall.SyscallN(procOpenEventW.Addr(), uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
|
2894
2895
|
handle = Handle(r0)
|
|
2895
2896
|
if handle == 0 {
|
|
2896
2897
|
err = errnoErr(e1)
|
|
@@ -2903,7 +2904,7 @@ func OpenMutex(desiredAccess uint32, inheritHandle bool, name *uint16) (handle H
|
|
|
2903
2904
|
if inheritHandle {
|
|
2904
2905
|
_p0 = 1
|
|
2905
2906
|
}
|
|
2906
|
-
r0, _, e1 := syscall.
|
|
2907
|
+
r0, _, e1 := syscall.SyscallN(procOpenMutexW.Addr(), uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
|
2907
2908
|
handle = Handle(r0)
|
|
2908
2909
|
if handle == 0 {
|
|
2909
2910
|
err = errnoErr(e1)
|
|
@@ -2916,7 +2917,7 @@ func OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (ha
|
|
|
2916
2917
|
if inheritHandle {
|
|
2917
2918
|
_p0 = 1
|
|
2918
2919
|
}
|
|
2919
|
-
r0, _, e1 := syscall.
|
|
2920
|
+
r0, _, e1 := syscall.SyscallN(procOpenProcess.Addr(), uintptr(desiredAccess), uintptr(_p0), uintptr(processId))
|
|
2920
2921
|
handle = Handle(r0)
|
|
2921
2922
|
if handle == 0 {
|
|
2922
2923
|
err = errnoErr(e1)
|
|
@@ -2929,7 +2930,7 @@ func OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (hand
|
|
|
2929
2930
|
if inheritHandle {
|
|
2930
2931
|
_p0 = 1
|
|
2931
2932
|
}
|
|
2932
|
-
r0, _, e1 := syscall.
|
|
2933
|
+
r0, _, e1 := syscall.SyscallN(procOpenThread.Addr(), uintptr(desiredAccess), uintptr(_p0), uintptr(threadId))
|
|
2933
2934
|
handle = Handle(r0)
|
|
2934
2935
|
if handle == 0 {
|
|
2935
2936
|
err = errnoErr(e1)
|
|
@@ -2938,7 +2939,7 @@ func OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (hand
|
|
|
2938
2939
|
}
|
|
2939
2940
|
|
|
2940
2941
|
func PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uintptr, overlapped *Overlapped) (err error) {
|
|
2941
|
-
r1, _, e1 := syscall.
|
|
2942
|
+
r1, _, e1 := syscall.SyscallN(procPostQueuedCompletionStatus.Addr(), uintptr(cphandle), uintptr(qty), uintptr(key), uintptr(unsafe.Pointer(overlapped)))
|
|
2942
2943
|
if r1 == 0 {
|
|
2943
2944
|
err = errnoErr(e1)
|
|
2944
2945
|
}
|
|
@@ -2946,7 +2947,7 @@ func PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uintptr, overla
|
|
|
2946
2947
|
}
|
|
2947
2948
|
|
|
2948
2949
|
func Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) {
|
|
2949
|
-
r1, _, e1 := syscall.
|
|
2950
|
+
r1, _, e1 := syscall.SyscallN(procProcess32FirstW.Addr(), uintptr(snapshot), uintptr(unsafe.Pointer(procEntry)))
|
|
2950
2951
|
if r1 == 0 {
|
|
2951
2952
|
err = errnoErr(e1)
|
|
2952
2953
|
}
|
|
@@ -2954,7 +2955,7 @@ func Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) {
|
|
|
2954
2955
|
}
|
|
2955
2956
|
|
|
2956
2957
|
func Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) {
|
|
2957
|
-
r1, _, e1 := syscall.
|
|
2958
|
+
r1, _, e1 := syscall.SyscallN(procProcess32NextW.Addr(), uintptr(snapshot), uintptr(unsafe.Pointer(procEntry)))
|
|
2958
2959
|
if r1 == 0 {
|
|
2959
2960
|
err = errnoErr(e1)
|
|
2960
2961
|
}
|
|
@@ -2962,7 +2963,7 @@ func Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) {
|
|
|
2962
2963
|
}
|
|
2963
2964
|
|
|
2964
2965
|
func ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) {
|
|
2965
|
-
r1, _, e1 := syscall.
|
|
2966
|
+
r1, _, e1 := syscall.SyscallN(procProcessIdToSessionId.Addr(), uintptr(pid), uintptr(unsafe.Pointer(sessionid)))
|
|
2966
2967
|
if r1 == 0 {
|
|
2967
2968
|
err = errnoErr(e1)
|
|
2968
2969
|
}
|
|
@@ -2970,7 +2971,7 @@ func ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) {
|
|
|
2970
2971
|
}
|
|
2971
2972
|
|
|
2972
2973
|
func PulseEvent(event Handle) (err error) {
|
|
2973
|
-
r1, _, e1 := syscall.
|
|
2974
|
+
r1, _, e1 := syscall.SyscallN(procPulseEvent.Addr(), uintptr(event))
|
|
2974
2975
|
if r1 == 0 {
|
|
2975
2976
|
err = errnoErr(e1)
|
|
2976
2977
|
}
|
|
@@ -2978,7 +2979,7 @@ func PulseEvent(event Handle) (err error) {
|
|
|
2978
2979
|
}
|
|
2979
2980
|
|
|
2980
2981
|
func PurgeComm(handle Handle, dwFlags uint32) (err error) {
|
|
2981
|
-
r1, _, e1 := syscall.
|
|
2982
|
+
r1, _, e1 := syscall.SyscallN(procPurgeComm.Addr(), uintptr(handle), uintptr(dwFlags))
|
|
2982
2983
|
if r1 == 0 {
|
|
2983
2984
|
err = errnoErr(e1)
|
|
2984
2985
|
}
|
|
@@ -2986,7 +2987,7 @@ func PurgeComm(handle Handle, dwFlags uint32) (err error) {
|
|
|
2986
2987
|
}
|
|
2987
2988
|
|
|
2988
2989
|
func QueryDosDevice(deviceName *uint16, targetPath *uint16, max uint32) (n uint32, err error) {
|
|
2989
|
-
r0, _, e1 := syscall.
|
|
2990
|
+
r0, _, e1 := syscall.SyscallN(procQueryDosDeviceW.Addr(), uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath)), uintptr(max))
|
|
2990
2991
|
n = uint32(r0)
|
|
2991
2992
|
if n == 0 {
|
|
2992
2993
|
err = errnoErr(e1)
|
|
@@ -2995,7 +2996,7 @@ func QueryDosDevice(deviceName *uint16, targetPath *uint16, max uint32) (n uint3
|
|
|
2995
2996
|
}
|
|
2996
2997
|
|
|
2997
2998
|
func QueryFullProcessImageName(proc Handle, flags uint32, exeName *uint16, size *uint32) (err error) {
|
|
2998
|
-
r1, _, e1 := syscall.
|
|
2999
|
+
r1, _, e1 := syscall.SyscallN(procQueryFullProcessImageNameW.Addr(), uintptr(proc), uintptr(flags), uintptr(unsafe.Pointer(exeName)), uintptr(unsafe.Pointer(size)))
|
|
2999
3000
|
if r1 == 0 {
|
|
3000
3001
|
err = errnoErr(e1)
|
|
3001
3002
|
}
|
|
@@ -3003,7 +3004,7 @@ func QueryFullProcessImageName(proc Handle, flags uint32, exeName *uint16, size
|
|
|
3003
3004
|
}
|
|
3004
3005
|
|
|
3005
3006
|
func QueryInformationJobObject(job Handle, JobObjectInformationClass int32, JobObjectInformation uintptr, JobObjectInformationLength uint32, retlen *uint32) (err error) {
|
|
3006
|
-
r1, _, e1 := syscall.
|
|
3007
|
+
r1, _, e1 := syscall.SyscallN(procQueryInformationJobObject.Addr(), uintptr(job), uintptr(JobObjectInformationClass), uintptr(JobObjectInformation), uintptr(JobObjectInformationLength), uintptr(unsafe.Pointer(retlen)))
|
|
3007
3008
|
if r1 == 0 {
|
|
3008
3009
|
err = errnoErr(e1)
|
|
3009
3010
|
}
|
|
@@ -3011,7 +3012,7 @@ func QueryInformationJobObject(job Handle, JobObjectInformationClass int32, JobO
|
|
|
3011
3012
|
}
|
|
3012
3013
|
|
|
3013
3014
|
func ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) {
|
|
3014
|
-
r1, _, e1 := syscall.
|
|
3015
|
+
r1, _, e1 := syscall.SyscallN(procReadConsoleW.Addr(), uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(toread), uintptr(unsafe.Pointer(read)), uintptr(unsafe.Pointer(inputControl)))
|
|
3015
3016
|
if r1 == 0 {
|
|
3016
3017
|
err = errnoErr(e1)
|
|
3017
3018
|
}
|
|
@@ -3023,7 +3024,7 @@ func ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree
|
|
|
3023
3024
|
if watchSubTree {
|
|
3024
3025
|
_p0 = 1
|
|
3025
3026
|
}
|
|
3026
|
-
r1, _, e1 := syscall.
|
|
3027
|
+
r1, _, e1 := syscall.SyscallN(procReadDirectoryChangesW.Addr(), uintptr(handle), uintptr(unsafe.Pointer(buf)), uintptr(buflen), uintptr(_p0), uintptr(mask), uintptr(unsafe.Pointer(retlen)), uintptr(unsafe.Pointer(overlapped)), uintptr(completionRoutine))
|
|
3027
3028
|
if r1 == 0 {
|
|
3028
3029
|
err = errnoErr(e1)
|
|
3029
3030
|
}
|
|
@@ -3035,7 +3036,7 @@ func readFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (
|
|
|
3035
3036
|
if len(buf) > 0 {
|
|
3036
3037
|
_p0 = &buf[0]
|
|
3037
3038
|
}
|
|
3038
|
-
r1, _, e1 := syscall.
|
|
3039
|
+
r1, _, e1 := syscall.SyscallN(procReadFile.Addr(), uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)))
|
|
3039
3040
|
if r1 == 0 {
|
|
3040
3041
|
err = errnoErr(e1)
|
|
3041
3042
|
}
|
|
@@ -3043,7 +3044,7 @@ func readFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (
|
|
|
3043
3044
|
}
|
|
3044
3045
|
|
|
3045
3046
|
func ReadProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size uintptr, numberOfBytesRead *uintptr) (err error) {
|
|
3046
|
-
r1, _, e1 := syscall.
|
|
3047
|
+
r1, _, e1 := syscall.SyscallN(procReadProcessMemory.Addr(), uintptr(process), uintptr(baseAddress), uintptr(unsafe.Pointer(buffer)), uintptr(size), uintptr(unsafe.Pointer(numberOfBytesRead)))
|
|
3047
3048
|
if r1 == 0 {
|
|
3048
3049
|
err = errnoErr(e1)
|
|
3049
3050
|
}
|
|
@@ -3051,7 +3052,7 @@ func ReadProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size u
|
|
|
3051
3052
|
}
|
|
3052
3053
|
|
|
3053
3054
|
func ReleaseMutex(mutex Handle) (err error) {
|
|
3054
|
-
r1, _, e1 := syscall.
|
|
3055
|
+
r1, _, e1 := syscall.SyscallN(procReleaseMutex.Addr(), uintptr(mutex))
|
|
3055
3056
|
if r1 == 0 {
|
|
3056
3057
|
err = errnoErr(e1)
|
|
3057
3058
|
}
|
|
@@ -3059,7 +3060,7 @@ func ReleaseMutex(mutex Handle) (err error) {
|
|
|
3059
3060
|
}
|
|
3060
3061
|
|
|
3061
3062
|
func RemoveDirectory(path *uint16) (err error) {
|
|
3062
|
-
r1, _, e1 := syscall.
|
|
3063
|
+
r1, _, e1 := syscall.SyscallN(procRemoveDirectoryW.Addr(), uintptr(unsafe.Pointer(path)))
|
|
3063
3064
|
if r1 == 0 {
|
|
3064
3065
|
err = errnoErr(e1)
|
|
3065
3066
|
}
|
|
@@ -3067,7 +3068,7 @@ func RemoveDirectory(path *uint16) (err error) {
|
|
|
3067
3068
|
}
|
|
3068
3069
|
|
|
3069
3070
|
func RemoveDllDirectory(cookie uintptr) (err error) {
|
|
3070
|
-
r1, _, e1 := syscall.
|
|
3071
|
+
r1, _, e1 := syscall.SyscallN(procRemoveDllDirectory.Addr(), uintptr(cookie))
|
|
3071
3072
|
if r1 == 0 {
|
|
3072
3073
|
err = errnoErr(e1)
|
|
3073
3074
|
}
|
|
@@ -3075,7 +3076,7 @@ func RemoveDllDirectory(cookie uintptr) (err error) {
|
|
|
3075
3076
|
}
|
|
3076
3077
|
|
|
3077
3078
|
func ResetEvent(event Handle) (err error) {
|
|
3078
|
-
r1, _, e1 := syscall.
|
|
3079
|
+
r1, _, e1 := syscall.SyscallN(procResetEvent.Addr(), uintptr(event))
|
|
3079
3080
|
if r1 == 0 {
|
|
3080
3081
|
err = errnoErr(e1)
|
|
3081
3082
|
}
|
|
@@ -3083,7 +3084,7 @@ func ResetEvent(event Handle) (err error) {
|
|
|
3083
3084
|
}
|
|
3084
3085
|
|
|
3085
3086
|
func resizePseudoConsole(pconsole Handle, size uint32) (hr error) {
|
|
3086
|
-
r0, _, _ := syscall.
|
|
3087
|
+
r0, _, _ := syscall.SyscallN(procResizePseudoConsole.Addr(), uintptr(pconsole), uintptr(size))
|
|
3087
3088
|
if r0 != 0 {
|
|
3088
3089
|
hr = syscall.Errno(r0)
|
|
3089
3090
|
}
|
|
@@ -3091,7 +3092,7 @@ func resizePseudoConsole(pconsole Handle, size uint32) (hr error) {
|
|
|
3091
3092
|
}
|
|
3092
3093
|
|
|
3093
3094
|
func ResumeThread(thread Handle) (ret uint32, err error) {
|
|
3094
|
-
r0, _, e1 := syscall.
|
|
3095
|
+
r0, _, e1 := syscall.SyscallN(procResumeThread.Addr(), uintptr(thread))
|
|
3095
3096
|
ret = uint32(r0)
|
|
3096
3097
|
if ret == 0xffffffff {
|
|
3097
3098
|
err = errnoErr(e1)
|
|
@@ -3100,7 +3101,7 @@ func ResumeThread(thread Handle) (ret uint32, err error) {
|
|
|
3100
3101
|
}
|
|
3101
3102
|
|
|
3102
3103
|
func SetCommBreak(handle Handle) (err error) {
|
|
3103
|
-
r1, _, e1 := syscall.
|
|
3104
|
+
r1, _, e1 := syscall.SyscallN(procSetCommBreak.Addr(), uintptr(handle))
|
|
3104
3105
|
if r1 == 0 {
|
|
3105
3106
|
err = errnoErr(e1)
|
|
3106
3107
|
}
|
|
@@ -3108,7 +3109,7 @@ func SetCommBreak(handle Handle) (err error) {
|
|
|
3108
3109
|
}
|
|
3109
3110
|
|
|
3110
3111
|
func SetCommMask(handle Handle, dwEvtMask uint32) (err error) {
|
|
3111
|
-
r1, _, e1 := syscall.
|
|
3112
|
+
r1, _, e1 := syscall.SyscallN(procSetCommMask.Addr(), uintptr(handle), uintptr(dwEvtMask))
|
|
3112
3113
|
if r1 == 0 {
|
|
3113
3114
|
err = errnoErr(e1)
|
|
3114
3115
|
}
|
|
@@ -3116,7 +3117,7 @@ func SetCommMask(handle Handle, dwEvtMask uint32) (err error) {
|
|
|
3116
3117
|
}
|
|
3117
3118
|
|
|
3118
3119
|
func SetCommState(handle Handle, lpDCB *DCB) (err error) {
|
|
3119
|
-
r1, _, e1 := syscall.
|
|
3120
|
+
r1, _, e1 := syscall.SyscallN(procSetCommState.Addr(), uintptr(handle), uintptr(unsafe.Pointer(lpDCB)))
|
|
3120
3121
|
if r1 == 0 {
|
|
3121
3122
|
err = errnoErr(e1)
|
|
3122
3123
|
}
|
|
@@ -3124,7 +3125,7 @@ func SetCommState(handle Handle, lpDCB *DCB) (err error) {
|
|
|
3124
3125
|
}
|
|
3125
3126
|
|
|
3126
3127
|
func SetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error) {
|
|
3127
|
-
r1, _, e1 := syscall.
|
|
3128
|
+
r1, _, e1 := syscall.SyscallN(procSetCommTimeouts.Addr(), uintptr(handle), uintptr(unsafe.Pointer(timeouts)))
|
|
3128
3129
|
if r1 == 0 {
|
|
3129
3130
|
err = errnoErr(e1)
|
|
3130
3131
|
}
|
|
@@ -3132,7 +3133,7 @@ func SetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error) {
|
|
|
3132
3133
|
}
|
|
3133
3134
|
|
|
3134
3135
|
func SetConsoleCP(cp uint32) (err error) {
|
|
3135
|
-
r1, _, e1 := syscall.
|
|
3136
|
+
r1, _, e1 := syscall.SyscallN(procSetConsoleCP.Addr(), uintptr(cp))
|
|
3136
3137
|
if r1 == 0 {
|
|
3137
3138
|
err = errnoErr(e1)
|
|
3138
3139
|
}
|
|
@@ -3140,7 +3141,7 @@ func SetConsoleCP(cp uint32) (err error) {
|
|
|
3140
3141
|
}
|
|
3141
3142
|
|
|
3142
3143
|
func setConsoleCursorPosition(console Handle, position uint32) (err error) {
|
|
3143
|
-
r1, _, e1 := syscall.
|
|
3144
|
+
r1, _, e1 := syscall.SyscallN(procSetConsoleCursorPosition.Addr(), uintptr(console), uintptr(position))
|
|
3144
3145
|
if r1 == 0 {
|
|
3145
3146
|
err = errnoErr(e1)
|
|
3146
3147
|
}
|
|
@@ -3148,7 +3149,7 @@ func setConsoleCursorPosition(console Handle, position uint32) (err error) {
|
|
|
3148
3149
|
}
|
|
3149
3150
|
|
|
3150
3151
|
func SetConsoleMode(console Handle, mode uint32) (err error) {
|
|
3151
|
-
r1, _, e1 := syscall.
|
|
3152
|
+
r1, _, e1 := syscall.SyscallN(procSetConsoleMode.Addr(), uintptr(console), uintptr(mode))
|
|
3152
3153
|
if r1 == 0 {
|
|
3153
3154
|
err = errnoErr(e1)
|
|
3154
3155
|
}
|
|
@@ -3156,7 +3157,7 @@ func SetConsoleMode(console Handle, mode uint32) (err error) {
|
|
|
3156
3157
|
}
|
|
3157
3158
|
|
|
3158
3159
|
func SetConsoleOutputCP(cp uint32) (err error) {
|
|
3159
|
-
r1, _, e1 := syscall.
|
|
3160
|
+
r1, _, e1 := syscall.SyscallN(procSetConsoleOutputCP.Addr(), uintptr(cp))
|
|
3160
3161
|
if r1 == 0 {
|
|
3161
3162
|
err = errnoErr(e1)
|
|
3162
3163
|
}
|
|
@@ -3164,7 +3165,7 @@ func SetConsoleOutputCP(cp uint32) (err error) {
|
|
|
3164
3165
|
}
|
|
3165
3166
|
|
|
3166
3167
|
func SetCurrentDirectory(path *uint16) (err error) {
|
|
3167
|
-
r1, _, e1 := syscall.
|
|
3168
|
+
r1, _, e1 := syscall.SyscallN(procSetCurrentDirectoryW.Addr(), uintptr(unsafe.Pointer(path)))
|
|
3168
3169
|
if r1 == 0 {
|
|
3169
3170
|
err = errnoErr(e1)
|
|
3170
3171
|
}
|
|
@@ -3172,7 +3173,7 @@ func SetCurrentDirectory(path *uint16) (err error) {
|
|
|
3172
3173
|
}
|
|
3173
3174
|
|
|
3174
3175
|
func SetDefaultDllDirectories(directoryFlags uint32) (err error) {
|
|
3175
|
-
r1, _, e1 := syscall.
|
|
3176
|
+
r1, _, e1 := syscall.SyscallN(procSetDefaultDllDirectories.Addr(), uintptr(directoryFlags))
|
|
3176
3177
|
if r1 == 0 {
|
|
3177
3178
|
err = errnoErr(e1)
|
|
3178
3179
|
}
|
|
@@ -3189,7 +3190,7 @@ func SetDllDirectory(path string) (err error) {
|
|
|
3189
3190
|
}
|
|
3190
3191
|
|
|
3191
3192
|
func _SetDllDirectory(path *uint16) (err error) {
|
|
3192
|
-
r1, _, e1 := syscall.
|
|
3193
|
+
r1, _, e1 := syscall.SyscallN(procSetDllDirectoryW.Addr(), uintptr(unsafe.Pointer(path)))
|
|
3193
3194
|
if r1 == 0 {
|
|
3194
3195
|
err = errnoErr(e1)
|
|
3195
3196
|
}
|
|
@@ -3197,7 +3198,7 @@ func _SetDllDirectory(path *uint16) (err error) {
|
|
|
3197
3198
|
}
|
|
3198
3199
|
|
|
3199
3200
|
func SetEndOfFile(handle Handle) (err error) {
|
|
3200
|
-
r1, _, e1 := syscall.
|
|
3201
|
+
r1, _, e1 := syscall.SyscallN(procSetEndOfFile.Addr(), uintptr(handle))
|
|
3201
3202
|
if r1 == 0 {
|
|
3202
3203
|
err = errnoErr(e1)
|
|
3203
3204
|
}
|
|
@@ -3205,7 +3206,7 @@ func SetEndOfFile(handle Handle) (err error) {
|
|
|
3205
3206
|
}
|
|
3206
3207
|
|
|
3207
3208
|
func SetEnvironmentVariable(name *uint16, value *uint16) (err error) {
|
|
3208
|
-
r1, _, e1 := syscall.
|
|
3209
|
+
r1, _, e1 := syscall.SyscallN(procSetEnvironmentVariableW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(value)))
|
|
3209
3210
|
if r1 == 0 {
|
|
3210
3211
|
err = errnoErr(e1)
|
|
3211
3212
|
}
|
|
@@ -3213,13 +3214,13 @@ func SetEnvironmentVariable(name *uint16, value *uint16) (err error) {
|
|
|
3213
3214
|
}
|
|
3214
3215
|
|
|
3215
3216
|
func SetErrorMode(mode uint32) (ret uint32) {
|
|
3216
|
-
r0, _, _ := syscall.
|
|
3217
|
+
r0, _, _ := syscall.SyscallN(procSetErrorMode.Addr(), uintptr(mode))
|
|
3217
3218
|
ret = uint32(r0)
|
|
3218
3219
|
return
|
|
3219
3220
|
}
|
|
3220
3221
|
|
|
3221
3222
|
func SetEvent(event Handle) (err error) {
|
|
3222
|
-
r1, _, e1 := syscall.
|
|
3223
|
+
r1, _, e1 := syscall.SyscallN(procSetEvent.Addr(), uintptr(event))
|
|
3223
3224
|
if r1 == 0 {
|
|
3224
3225
|
err = errnoErr(e1)
|
|
3225
3226
|
}
|
|
@@ -3227,7 +3228,7 @@ func SetEvent(event Handle) (err error) {
|
|
|
3227
3228
|
}
|
|
3228
3229
|
|
|
3229
3230
|
func SetFileAttributes(name *uint16, attrs uint32) (err error) {
|
|
3230
|
-
r1, _, e1 := syscall.
|
|
3231
|
+
r1, _, e1 := syscall.SyscallN(procSetFileAttributesW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(attrs))
|
|
3231
3232
|
if r1 == 0 {
|
|
3232
3233
|
err = errnoErr(e1)
|
|
3233
3234
|
}
|
|
@@ -3235,7 +3236,7 @@ func SetFileAttributes(name *uint16, attrs uint32) (err error) {
|
|
|
3235
3236
|
}
|
|
3236
3237
|
|
|
3237
3238
|
func SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error) {
|
|
3238
|
-
r1, _, e1 := syscall.
|
|
3239
|
+
r1, _, e1 := syscall.SyscallN(procSetFileCompletionNotificationModes.Addr(), uintptr(handle), uintptr(flags))
|
|
3239
3240
|
if r1 == 0 {
|
|
3240
3241
|
err = errnoErr(e1)
|
|
3241
3242
|
}
|
|
@@ -3243,7 +3244,7 @@ func SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error)
|
|
|
3243
3244
|
}
|
|
3244
3245
|
|
|
3245
3246
|
func SetFileInformationByHandle(handle Handle, class uint32, inBuffer *byte, inBufferLen uint32) (err error) {
|
|
3246
|
-
r1, _, e1 := syscall.
|
|
3247
|
+
r1, _, e1 := syscall.SyscallN(procSetFileInformationByHandle.Addr(), uintptr(handle), uintptr(class), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferLen))
|
|
3247
3248
|
if r1 == 0 {
|
|
3248
3249
|
err = errnoErr(e1)
|
|
3249
3250
|
}
|
|
@@ -3251,7 +3252,7 @@ func SetFileInformationByHandle(handle Handle, class uint32, inBuffer *byte, inB
|
|
|
3251
3252
|
}
|
|
3252
3253
|
|
|
3253
3254
|
func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) {
|
|
3254
|
-
r0, _, e1 := syscall.
|
|
3255
|
+
r0, _, e1 := syscall.SyscallN(procSetFilePointer.Addr(), uintptr(handle), uintptr(lowoffset), uintptr(unsafe.Pointer(highoffsetptr)), uintptr(whence))
|
|
3255
3256
|
newlowoffset = uint32(r0)
|
|
3256
3257
|
if newlowoffset == 0xffffffff {
|
|
3257
3258
|
err = errnoErr(e1)
|
|
@@ -3260,7 +3261,7 @@ func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence
|
|
|
3260
3261
|
}
|
|
3261
3262
|
|
|
3262
3263
|
func SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) {
|
|
3263
|
-
r1, _, e1 := syscall.
|
|
3264
|
+
r1, _, e1 := syscall.SyscallN(procSetFileTime.Addr(), uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)))
|
|
3264
3265
|
if r1 == 0 {
|
|
3265
3266
|
err = errnoErr(e1)
|
|
3266
3267
|
}
|
|
@@ -3268,7 +3269,7 @@ func SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetim
|
|
|
3268
3269
|
}
|
|
3269
3270
|
|
|
3270
3271
|
func SetFileValidData(handle Handle, validDataLength int64) (err error) {
|
|
3271
|
-
r1, _, e1 := syscall.
|
|
3272
|
+
r1, _, e1 := syscall.SyscallN(procSetFileValidData.Addr(), uintptr(handle), uintptr(validDataLength))
|
|
3272
3273
|
if r1 == 0 {
|
|
3273
3274
|
err = errnoErr(e1)
|
|
3274
3275
|
}
|
|
@@ -3276,7 +3277,7 @@ func SetFileValidData(handle Handle, validDataLength int64) (err error) {
|
|
|
3276
3277
|
}
|
|
3277
3278
|
|
|
3278
3279
|
func SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error) {
|
|
3279
|
-
r1, _, e1 := syscall.
|
|
3280
|
+
r1, _, e1 := syscall.SyscallN(procSetHandleInformation.Addr(), uintptr(handle), uintptr(mask), uintptr(flags))
|
|
3280
3281
|
if r1 == 0 {
|
|
3281
3282
|
err = errnoErr(e1)
|
|
3282
3283
|
}
|
|
@@ -3284,7 +3285,7 @@ func SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error)
|
|
|
3284
3285
|
}
|
|
3285
3286
|
|
|
3286
3287
|
func SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobObjectInformation uintptr, JobObjectInformationLength uint32) (ret int, err error) {
|
|
3287
|
-
r0, _, e1 := syscall.
|
|
3288
|
+
r0, _, e1 := syscall.SyscallN(procSetInformationJobObject.Addr(), uintptr(job), uintptr(JobObjectInformationClass), uintptr(JobObjectInformation), uintptr(JobObjectInformationLength))
|
|
3288
3289
|
ret = int(r0)
|
|
3289
3290
|
if ret == 0 {
|
|
3290
3291
|
err = errnoErr(e1)
|
|
@@ -3293,7 +3294,7 @@ func SetInformationJobObject(job Handle, JobObjectInformationClass uint32, JobOb
|
|
|
3293
3294
|
}
|
|
3294
3295
|
|
|
3295
3296
|
func SetNamedPipeHandleState(pipe Handle, state *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32) (err error) {
|
|
3296
|
-
r1, _, e1 := syscall.
|
|
3297
|
+
r1, _, e1 := syscall.SyscallN(procSetNamedPipeHandleState.Addr(), uintptr(pipe), uintptr(unsafe.Pointer(state)), uintptr(unsafe.Pointer(maxCollectionCount)), uintptr(unsafe.Pointer(collectDataTimeout)))
|
|
3297
3298
|
if r1 == 0 {
|
|
3298
3299
|
err = errnoErr(e1)
|
|
3299
3300
|
}
|
|
@@ -3301,7 +3302,7 @@ func SetNamedPipeHandleState(pipe Handle, state *uint32, maxCollectionCount *uin
|
|
|
3301
3302
|
}
|
|
3302
3303
|
|
|
3303
3304
|
func SetPriorityClass(process Handle, priorityClass uint32) (err error) {
|
|
3304
|
-
r1, _, e1 := syscall.
|
|
3305
|
+
r1, _, e1 := syscall.SyscallN(procSetPriorityClass.Addr(), uintptr(process), uintptr(priorityClass))
|
|
3305
3306
|
if r1 == 0 {
|
|
3306
3307
|
err = errnoErr(e1)
|
|
3307
3308
|
}
|
|
@@ -3313,7 +3314,7 @@ func SetProcessPriorityBoost(process Handle, disable bool) (err error) {
|
|
|
3313
3314
|
if disable {
|
|
3314
3315
|
_p0 = 1
|
|
3315
3316
|
}
|
|
3316
|
-
r1, _, e1 := syscall.
|
|
3317
|
+
r1, _, e1 := syscall.SyscallN(procSetProcessPriorityBoost.Addr(), uintptr(process), uintptr(_p0))
|
|
3317
3318
|
if r1 == 0 {
|
|
3318
3319
|
err = errnoErr(e1)
|
|
3319
3320
|
}
|
|
@@ -3321,7 +3322,7 @@ func SetProcessPriorityBoost(process Handle, disable bool) (err error) {
|
|
|
3321
3322
|
}
|
|
3322
3323
|
|
|
3323
3324
|
func SetProcessShutdownParameters(level uint32, flags uint32) (err error) {
|
|
3324
|
-
r1, _, e1 := syscall.
|
|
3325
|
+
r1, _, e1 := syscall.SyscallN(procSetProcessShutdownParameters.Addr(), uintptr(level), uintptr(flags))
|
|
3325
3326
|
if r1 == 0 {
|
|
3326
3327
|
err = errnoErr(e1)
|
|
3327
3328
|
}
|
|
@@ -3329,7 +3330,7 @@ func SetProcessShutdownParameters(level uint32, flags uint32) (err error) {
|
|
|
3329
3330
|
}
|
|
3330
3331
|
|
|
3331
3332
|
func SetProcessWorkingSetSizeEx(hProcess Handle, dwMinimumWorkingSetSize uintptr, dwMaximumWorkingSetSize uintptr, flags uint32) (err error) {
|
|
3332
|
-
r1, _, e1 := syscall.
|
|
3333
|
+
r1, _, e1 := syscall.SyscallN(procSetProcessWorkingSetSizeEx.Addr(), uintptr(hProcess), uintptr(dwMinimumWorkingSetSize), uintptr(dwMaximumWorkingSetSize), uintptr(flags))
|
|
3333
3334
|
if r1 == 0 {
|
|
3334
3335
|
err = errnoErr(e1)
|
|
3335
3336
|
}
|
|
@@ -3337,7 +3338,7 @@ func SetProcessWorkingSetSizeEx(hProcess Handle, dwMinimumWorkingSetSize uintptr
|
|
|
3337
3338
|
}
|
|
3338
3339
|
|
|
3339
3340
|
func SetStdHandle(stdhandle uint32, handle Handle) (err error) {
|
|
3340
|
-
r1, _, e1 := syscall.
|
|
3341
|
+
r1, _, e1 := syscall.SyscallN(procSetStdHandle.Addr(), uintptr(stdhandle), uintptr(handle))
|
|
3341
3342
|
if r1 == 0 {
|
|
3342
3343
|
err = errnoErr(e1)
|
|
3343
3344
|
}
|
|
@@ -3345,7 +3346,7 @@ func SetStdHandle(stdhandle uint32, handle Handle) (err error) {
|
|
|
3345
3346
|
}
|
|
3346
3347
|
|
|
3347
3348
|
func SetVolumeLabel(rootPathName *uint16, volumeName *uint16) (err error) {
|
|
3348
|
-
r1, _, e1 := syscall.
|
|
3349
|
+
r1, _, e1 := syscall.SyscallN(procSetVolumeLabelW.Addr(), uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeName)))
|
|
3349
3350
|
if r1 == 0 {
|
|
3350
3351
|
err = errnoErr(e1)
|
|
3351
3352
|
}
|
|
@@ -3353,7 +3354,7 @@ func SetVolumeLabel(rootPathName *uint16, volumeName *uint16) (err error) {
|
|
|
3353
3354
|
}
|
|
3354
3355
|
|
|
3355
3356
|
func SetVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16) (err error) {
|
|
3356
|
-
r1, _, e1 := syscall.
|
|
3357
|
+
r1, _, e1 := syscall.SyscallN(procSetVolumeMountPointW.Addr(), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(unsafe.Pointer(volumeName)))
|
|
3357
3358
|
if r1 == 0 {
|
|
3358
3359
|
err = errnoErr(e1)
|
|
3359
3360
|
}
|
|
@@ -3361,7 +3362,7 @@ func SetVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16) (err erro
|
|
|
3361
3362
|
}
|
|
3362
3363
|
|
|
3363
3364
|
func SetupComm(handle Handle, dwInQueue uint32, dwOutQueue uint32) (err error) {
|
|
3364
|
-
r1, _, e1 := syscall.
|
|
3365
|
+
r1, _, e1 := syscall.SyscallN(procSetupComm.Addr(), uintptr(handle), uintptr(dwInQueue), uintptr(dwOutQueue))
|
|
3365
3366
|
if r1 == 0 {
|
|
3366
3367
|
err = errnoErr(e1)
|
|
3367
3368
|
}
|
|
@@ -3369,7 +3370,7 @@ func SetupComm(handle Handle, dwInQueue uint32, dwOutQueue uint32) (err error) {
|
|
|
3369
3370
|
}
|
|
3370
3371
|
|
|
3371
3372
|
func SizeofResource(module Handle, resInfo Handle) (size uint32, err error) {
|
|
3372
|
-
r0, _, e1 := syscall.
|
|
3373
|
+
r0, _, e1 := syscall.SyscallN(procSizeofResource.Addr(), uintptr(module), uintptr(resInfo))
|
|
3373
3374
|
size = uint32(r0)
|
|
3374
3375
|
if size == 0 {
|
|
3375
3376
|
err = errnoErr(e1)
|
|
@@ -3382,13 +3383,13 @@ func SleepEx(milliseconds uint32, alertable bool) (ret uint32) {
|
|
|
3382
3383
|
if alertable {
|
|
3383
3384
|
_p0 = 1
|
|
3384
3385
|
}
|
|
3385
|
-
r0, _, _ := syscall.
|
|
3386
|
+
r0, _, _ := syscall.SyscallN(procSleepEx.Addr(), uintptr(milliseconds), uintptr(_p0))
|
|
3386
3387
|
ret = uint32(r0)
|
|
3387
3388
|
return
|
|
3388
3389
|
}
|
|
3389
3390
|
|
|
3390
3391
|
func TerminateJobObject(job Handle, exitCode uint32) (err error) {
|
|
3391
|
-
r1, _, e1 := syscall.
|
|
3392
|
+
r1, _, e1 := syscall.SyscallN(procTerminateJobObject.Addr(), uintptr(job), uintptr(exitCode))
|
|
3392
3393
|
if r1 == 0 {
|
|
3393
3394
|
err = errnoErr(e1)
|
|
3394
3395
|
}
|
|
@@ -3396,7 +3397,7 @@ func TerminateJobObject(job Handle, exitCode uint32) (err error) {
|
|
|
3396
3397
|
}
|
|
3397
3398
|
|
|
3398
3399
|
func TerminateProcess(handle Handle, exitcode uint32) (err error) {
|
|
3399
|
-
r1, _, e1 := syscall.
|
|
3400
|
+
r1, _, e1 := syscall.SyscallN(procTerminateProcess.Addr(), uintptr(handle), uintptr(exitcode))
|
|
3400
3401
|
if r1 == 0 {
|
|
3401
3402
|
err = errnoErr(e1)
|
|
3402
3403
|
}
|
|
@@ -3404,7 +3405,7 @@ func TerminateProcess(handle Handle, exitcode uint32) (err error) {
|
|
|
3404
3405
|
}
|
|
3405
3406
|
|
|
3406
3407
|
func Thread32First(snapshot Handle, threadEntry *ThreadEntry32) (err error) {
|
|
3407
|
-
r1, _, e1 := syscall.
|
|
3408
|
+
r1, _, e1 := syscall.SyscallN(procThread32First.Addr(), uintptr(snapshot), uintptr(unsafe.Pointer(threadEntry)))
|
|
3408
3409
|
if r1 == 0 {
|
|
3409
3410
|
err = errnoErr(e1)
|
|
3410
3411
|
}
|
|
@@ -3412,7 +3413,7 @@ func Thread32First(snapshot Handle, threadEntry *ThreadEntry32) (err error) {
|
|
|
3412
3413
|
}
|
|
3413
3414
|
|
|
3414
3415
|
func Thread32Next(snapshot Handle, threadEntry *ThreadEntry32) (err error) {
|
|
3415
|
-
r1, _, e1 := syscall.
|
|
3416
|
+
r1, _, e1 := syscall.SyscallN(procThread32Next.Addr(), uintptr(snapshot), uintptr(unsafe.Pointer(threadEntry)))
|
|
3416
3417
|
if r1 == 0 {
|
|
3417
3418
|
err = errnoErr(e1)
|
|
3418
3419
|
}
|
|
@@ -3420,7 +3421,7 @@ func Thread32Next(snapshot Handle, threadEntry *ThreadEntry32) (err error) {
|
|
|
3420
3421
|
}
|
|
3421
3422
|
|
|
3422
3423
|
func UnlockFileEx(file Handle, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *Overlapped) (err error) {
|
|
3423
|
-
r1, _, e1 := syscall.
|
|
3424
|
+
r1, _, e1 := syscall.SyscallN(procUnlockFileEx.Addr(), uintptr(file), uintptr(reserved), uintptr(bytesLow), uintptr(bytesHigh), uintptr(unsafe.Pointer(overlapped)))
|
|
3424
3425
|
if r1 == 0 {
|
|
3425
3426
|
err = errnoErr(e1)
|
|
3426
3427
|
}
|
|
@@ -3428,7 +3429,7 @@ func UnlockFileEx(file Handle, reserved uint32, bytesLow uint32, bytesHigh uint3
|
|
|
3428
3429
|
}
|
|
3429
3430
|
|
|
3430
3431
|
func UnmapViewOfFile(addr uintptr) (err error) {
|
|
3431
|
-
r1, _, e1 := syscall.
|
|
3432
|
+
r1, _, e1 := syscall.SyscallN(procUnmapViewOfFile.Addr(), uintptr(addr))
|
|
3432
3433
|
if r1 == 0 {
|
|
3433
3434
|
err = errnoErr(e1)
|
|
3434
3435
|
}
|
|
@@ -3436,7 +3437,7 @@ func UnmapViewOfFile(addr uintptr) (err error) {
|
|
|
3436
3437
|
}
|
|
3437
3438
|
|
|
3438
3439
|
func updateProcThreadAttribute(attrlist *ProcThreadAttributeList, flags uint32, attr uintptr, value unsafe.Pointer, size uintptr, prevvalue unsafe.Pointer, returnedsize *uintptr) (err error) {
|
|
3439
|
-
r1, _, e1 := syscall.
|
|
3440
|
+
r1, _, e1 := syscall.SyscallN(procUpdateProcThreadAttribute.Addr(), uintptr(unsafe.Pointer(attrlist)), uintptr(flags), uintptr(attr), uintptr(value), uintptr(size), uintptr(prevvalue), uintptr(unsafe.Pointer(returnedsize)))
|
|
3440
3441
|
if r1 == 0 {
|
|
3441
3442
|
err = errnoErr(e1)
|
|
3442
3443
|
}
|
|
@@ -3444,7 +3445,7 @@ func updateProcThreadAttribute(attrlist *ProcThreadAttributeList, flags uint32,
|
|
|
3444
3445
|
}
|
|
3445
3446
|
|
|
3446
3447
|
func VirtualAlloc(address uintptr, size uintptr, alloctype uint32, protect uint32) (value uintptr, err error) {
|
|
3447
|
-
r0, _, e1 := syscall.
|
|
3448
|
+
r0, _, e1 := syscall.SyscallN(procVirtualAlloc.Addr(), uintptr(address), uintptr(size), uintptr(alloctype), uintptr(protect))
|
|
3448
3449
|
value = uintptr(r0)
|
|
3449
3450
|
if value == 0 {
|
|
3450
3451
|
err = errnoErr(e1)
|
|
@@ -3453,7 +3454,7 @@ func VirtualAlloc(address uintptr, size uintptr, alloctype uint32, protect uint3
|
|
|
3453
3454
|
}
|
|
3454
3455
|
|
|
3455
3456
|
func VirtualFree(address uintptr, size uintptr, freetype uint32) (err error) {
|
|
3456
|
-
r1, _, e1 := syscall.
|
|
3457
|
+
r1, _, e1 := syscall.SyscallN(procVirtualFree.Addr(), uintptr(address), uintptr(size), uintptr(freetype))
|
|
3457
3458
|
if r1 == 0 {
|
|
3458
3459
|
err = errnoErr(e1)
|
|
3459
3460
|
}
|
|
@@ -3461,7 +3462,7 @@ func VirtualFree(address uintptr, size uintptr, freetype uint32) (err error) {
|
|
|
3461
3462
|
}
|
|
3462
3463
|
|
|
3463
3464
|
func VirtualLock(addr uintptr, length uintptr) (err error) {
|
|
3464
|
-
r1, _, e1 := syscall.
|
|
3465
|
+
r1, _, e1 := syscall.SyscallN(procVirtualLock.Addr(), uintptr(addr), uintptr(length))
|
|
3465
3466
|
if r1 == 0 {
|
|
3466
3467
|
err = errnoErr(e1)
|
|
3467
3468
|
}
|
|
@@ -3469,7 +3470,7 @@ func VirtualLock(addr uintptr, length uintptr) (err error) {
|
|
|
3469
3470
|
}
|
|
3470
3471
|
|
|
3471
3472
|
func VirtualProtect(address uintptr, size uintptr, newprotect uint32, oldprotect *uint32) (err error) {
|
|
3472
|
-
r1, _, e1 := syscall.
|
|
3473
|
+
r1, _, e1 := syscall.SyscallN(procVirtualProtect.Addr(), uintptr(address), uintptr(size), uintptr(newprotect), uintptr(unsafe.Pointer(oldprotect)))
|
|
3473
3474
|
if r1 == 0 {
|
|
3474
3475
|
err = errnoErr(e1)
|
|
3475
3476
|
}
|
|
@@ -3477,7 +3478,7 @@ func VirtualProtect(address uintptr, size uintptr, newprotect uint32, oldprotect
|
|
|
3477
3478
|
}
|
|
3478
3479
|
|
|
3479
3480
|
func VirtualProtectEx(process Handle, address uintptr, size uintptr, newProtect uint32, oldProtect *uint32) (err error) {
|
|
3480
|
-
r1, _, e1 := syscall.
|
|
3481
|
+
r1, _, e1 := syscall.SyscallN(procVirtualProtectEx.Addr(), uintptr(process), uintptr(address), uintptr(size), uintptr(newProtect), uintptr(unsafe.Pointer(oldProtect)))
|
|
3481
3482
|
if r1 == 0 {
|
|
3482
3483
|
err = errnoErr(e1)
|
|
3483
3484
|
}
|
|
@@ -3485,7 +3486,7 @@ func VirtualProtectEx(process Handle, address uintptr, size uintptr, newProtect
|
|
|
3485
3486
|
}
|
|
3486
3487
|
|
|
3487
3488
|
func VirtualQuery(address uintptr, buffer *MemoryBasicInformation, length uintptr) (err error) {
|
|
3488
|
-
r1, _, e1 := syscall.
|
|
3489
|
+
r1, _, e1 := syscall.SyscallN(procVirtualQuery.Addr(), uintptr(address), uintptr(unsafe.Pointer(buffer)), uintptr(length))
|
|
3489
3490
|
if r1 == 0 {
|
|
3490
3491
|
err = errnoErr(e1)
|
|
3491
3492
|
}
|
|
@@ -3493,7 +3494,7 @@ func VirtualQuery(address uintptr, buffer *MemoryBasicInformation, length uintpt
|
|
|
3493
3494
|
}
|
|
3494
3495
|
|
|
3495
3496
|
func VirtualQueryEx(process Handle, address uintptr, buffer *MemoryBasicInformation, length uintptr) (err error) {
|
|
3496
|
-
r1, _, e1 := syscall.
|
|
3497
|
+
r1, _, e1 := syscall.SyscallN(procVirtualQueryEx.Addr(), uintptr(process), uintptr(address), uintptr(unsafe.Pointer(buffer)), uintptr(length))
|
|
3497
3498
|
if r1 == 0 {
|
|
3498
3499
|
err = errnoErr(e1)
|
|
3499
3500
|
}
|
|
@@ -3501,7 +3502,7 @@ func VirtualQueryEx(process Handle, address uintptr, buffer *MemoryBasicInformat
|
|
|
3501
3502
|
}
|
|
3502
3503
|
|
|
3503
3504
|
func VirtualUnlock(addr uintptr, length uintptr) (err error) {
|
|
3504
|
-
r1, _, e1 := syscall.
|
|
3505
|
+
r1, _, e1 := syscall.SyscallN(procVirtualUnlock.Addr(), uintptr(addr), uintptr(length))
|
|
3505
3506
|
if r1 == 0 {
|
|
3506
3507
|
err = errnoErr(e1)
|
|
3507
3508
|
}
|
|
@@ -3509,13 +3510,13 @@ func VirtualUnlock(addr uintptr, length uintptr) (err error) {
|
|
|
3509
3510
|
}
|
|
3510
3511
|
|
|
3511
3512
|
func WTSGetActiveConsoleSessionId() (sessionID uint32) {
|
|
3512
|
-
r0, _, _ := syscall.
|
|
3513
|
+
r0, _, _ := syscall.SyscallN(procWTSGetActiveConsoleSessionId.Addr())
|
|
3513
3514
|
sessionID = uint32(r0)
|
|
3514
3515
|
return
|
|
3515
3516
|
}
|
|
3516
3517
|
|
|
3517
3518
|
func WaitCommEvent(handle Handle, lpEvtMask *uint32, lpOverlapped *Overlapped) (err error) {
|
|
3518
|
-
r1, _, e1 := syscall.
|
|
3519
|
+
r1, _, e1 := syscall.SyscallN(procWaitCommEvent.Addr(), uintptr(handle), uintptr(unsafe.Pointer(lpEvtMask)), uintptr(unsafe.Pointer(lpOverlapped)))
|
|
3519
3520
|
if r1 == 0 {
|
|
3520
3521
|
err = errnoErr(e1)
|
|
3521
3522
|
}
|
|
@@ -3527,7 +3528,7 @@ func waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMil
|
|
|
3527
3528
|
if waitAll {
|
|
3528
3529
|
_p0 = 1
|
|
3529
3530
|
}
|
|
3530
|
-
r0, _, e1 := syscall.
|
|
3531
|
+
r0, _, e1 := syscall.SyscallN(procWaitForMultipleObjects.Addr(), uintptr(count), uintptr(handles), uintptr(_p0), uintptr(waitMilliseconds))
|
|
3531
3532
|
event = uint32(r0)
|
|
3532
3533
|
if event == 0xffffffff {
|
|
3533
3534
|
err = errnoErr(e1)
|
|
@@ -3536,7 +3537,7 @@ func waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMil
|
|
|
3536
3537
|
}
|
|
3537
3538
|
|
|
3538
3539
|
func WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32, err error) {
|
|
3539
|
-
r0, _, e1 := syscall.
|
|
3540
|
+
r0, _, e1 := syscall.SyscallN(procWaitForSingleObject.Addr(), uintptr(handle), uintptr(waitMilliseconds))
|
|
3540
3541
|
event = uint32(r0)
|
|
3541
3542
|
if event == 0xffffffff {
|
|
3542
3543
|
err = errnoErr(e1)
|
|
@@ -3545,7 +3546,7 @@ func WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32,
|
|
|
3545
3546
|
}
|
|
3546
3547
|
|
|
3547
3548
|
func WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) {
|
|
3548
|
-
r1, _, e1 := syscall.
|
|
3549
|
+
r1, _, e1 := syscall.SyscallN(procWriteConsoleW.Addr(), uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(towrite), uintptr(unsafe.Pointer(written)), uintptr(unsafe.Pointer(reserved)))
|
|
3549
3550
|
if r1 == 0 {
|
|
3550
3551
|
err = errnoErr(e1)
|
|
3551
3552
|
}
|
|
@@ -3557,7 +3558,7 @@ func writeFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped)
|
|
|
3557
3558
|
if len(buf) > 0 {
|
|
3558
3559
|
_p0 = &buf[0]
|
|
3559
3560
|
}
|
|
3560
|
-
r1, _, e1 := syscall.
|
|
3561
|
+
r1, _, e1 := syscall.SyscallN(procWriteFile.Addr(), uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)))
|
|
3561
3562
|
if r1 == 0 {
|
|
3562
3563
|
err = errnoErr(e1)
|
|
3563
3564
|
}
|
|
@@ -3565,7 +3566,7 @@ func writeFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped)
|
|
|
3565
3566
|
}
|
|
3566
3567
|
|
|
3567
3568
|
func WriteProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size uintptr, numberOfBytesWritten *uintptr) (err error) {
|
|
3568
|
-
r1, _, e1 := syscall.
|
|
3569
|
+
r1, _, e1 := syscall.SyscallN(procWriteProcessMemory.Addr(), uintptr(process), uintptr(baseAddress), uintptr(unsafe.Pointer(buffer)), uintptr(size), uintptr(unsafe.Pointer(numberOfBytesWritten)))
|
|
3569
3570
|
if r1 == 0 {
|
|
3570
3571
|
err = errnoErr(e1)
|
|
3571
3572
|
}
|
|
@@ -3573,7 +3574,7 @@ func WriteProcessMemory(process Handle, baseAddress uintptr, buffer *byte, size
|
|
|
3573
3574
|
}
|
|
3574
3575
|
|
|
3575
3576
|
func AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (err error) {
|
|
3576
|
-
r1, _, e1 := syscall.
|
|
3577
|
+
r1, _, e1 := syscall.SyscallN(procAcceptEx.Addr(), uintptr(ls), uintptr(as), uintptr(unsafe.Pointer(buf)), uintptr(rxdatalen), uintptr(laddrlen), uintptr(raddrlen), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(overlapped)))
|
|
3577
3578
|
if r1 == 0 {
|
|
3578
3579
|
err = errnoErr(e1)
|
|
3579
3580
|
}
|
|
@@ -3581,12 +3582,12 @@ func AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32
|
|
|
3581
3582
|
}
|
|
3582
3583
|
|
|
3583
3584
|
func GetAcceptExSockaddrs(buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, lrsa **RawSockaddrAny, lrsalen *int32, rrsa **RawSockaddrAny, rrsalen *int32) {
|
|
3584
|
-
syscall.
|
|
3585
|
+
syscall.SyscallN(procGetAcceptExSockaddrs.Addr(), uintptr(unsafe.Pointer(buf)), uintptr(rxdatalen), uintptr(laddrlen), uintptr(raddrlen), uintptr(unsafe.Pointer(lrsa)), uintptr(unsafe.Pointer(lrsalen)), uintptr(unsafe.Pointer(rrsa)), uintptr(unsafe.Pointer(rrsalen)))
|
|
3585
3586
|
return
|
|
3586
3587
|
}
|
|
3587
3588
|
|
|
3588
3589
|
func TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) {
|
|
3589
|
-
r1, _, e1 := syscall.
|
|
3590
|
+
r1, _, e1 := syscall.SyscallN(procTransmitFile.Addr(), uintptr(s), uintptr(handle), uintptr(bytesToWrite), uintptr(bytsPerSend), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(transmitFileBuf)), uintptr(flags))
|
|
3590
3591
|
if r1 == 0 {
|
|
3591
3592
|
err = errnoErr(e1)
|
|
3592
3593
|
}
|
|
@@ -3594,7 +3595,7 @@ func TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint
|
|
|
3594
3595
|
}
|
|
3595
3596
|
|
|
3596
3597
|
func NetApiBufferFree(buf *byte) (neterr error) {
|
|
3597
|
-
r0, _, _ := syscall.
|
|
3598
|
+
r0, _, _ := syscall.SyscallN(procNetApiBufferFree.Addr(), uintptr(unsafe.Pointer(buf)))
|
|
3598
3599
|
if r0 != 0 {
|
|
3599
3600
|
neterr = syscall.Errno(r0)
|
|
3600
3601
|
}
|
|
@@ -3602,7 +3603,7 @@ func NetApiBufferFree(buf *byte) (neterr error) {
|
|
|
3602
3603
|
}
|
|
3603
3604
|
|
|
3604
3605
|
func NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (neterr error) {
|
|
3605
|
-
r0, _, _ := syscall.
|
|
3606
|
+
r0, _, _ := syscall.SyscallN(procNetGetJoinInformation.Addr(), uintptr(unsafe.Pointer(server)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(bufType)))
|
|
3606
3607
|
if r0 != 0 {
|
|
3607
3608
|
neterr = syscall.Errno(r0)
|
|
3608
3609
|
}
|
|
@@ -3610,7 +3611,7 @@ func NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (nete
|
|
|
3610
3611
|
}
|
|
3611
3612
|
|
|
3612
3613
|
func NetUserEnum(serverName *uint16, level uint32, filter uint32, buf **byte, prefMaxLen uint32, entriesRead *uint32, totalEntries *uint32, resumeHandle *uint32) (neterr error) {
|
|
3613
|
-
r0, _, _ := syscall.
|
|
3614
|
+
r0, _, _ := syscall.SyscallN(procNetUserEnum.Addr(), uintptr(unsafe.Pointer(serverName)), uintptr(level), uintptr(filter), uintptr(unsafe.Pointer(buf)), uintptr(prefMaxLen), uintptr(unsafe.Pointer(entriesRead)), uintptr(unsafe.Pointer(totalEntries)), uintptr(unsafe.Pointer(resumeHandle)))
|
|
3614
3615
|
if r0 != 0 {
|
|
3615
3616
|
neterr = syscall.Errno(r0)
|
|
3616
3617
|
}
|
|
@@ -3618,7 +3619,7 @@ func NetUserEnum(serverName *uint16, level uint32, filter uint32, buf **byte, pr
|
|
|
3618
3619
|
}
|
|
3619
3620
|
|
|
3620
3621
|
func NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **byte) (neterr error) {
|
|
3621
|
-
r0, _, _ := syscall.
|
|
3622
|
+
r0, _, _ := syscall.SyscallN(procNetUserGetInfo.Addr(), uintptr(unsafe.Pointer(serverName)), uintptr(unsafe.Pointer(userName)), uintptr(level), uintptr(unsafe.Pointer(buf)))
|
|
3622
3623
|
if r0 != 0 {
|
|
3623
3624
|
neterr = syscall.Errno(r0)
|
|
3624
3625
|
}
|
|
@@ -3626,7 +3627,7 @@ func NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **by
|
|
|
3626
3627
|
}
|
|
3627
3628
|
|
|
3628
3629
|
func NtCreateFile(handle *Handle, access uint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, allocationSize *int64, attributes uint32, share uint32, disposition uint32, options uint32, eabuffer uintptr, ealength uint32) (ntstatus error) {
|
|
3629
|
-
r0, _, _ := syscall.
|
|
3630
|
+
r0, _, _ := syscall.SyscallN(procNtCreateFile.Addr(), uintptr(unsafe.Pointer(handle)), uintptr(access), uintptr(unsafe.Pointer(oa)), uintptr(unsafe.Pointer(iosb)), uintptr(unsafe.Pointer(allocationSize)), uintptr(attributes), uintptr(share), uintptr(disposition), uintptr(options), uintptr(eabuffer), uintptr(ealength))
|
|
3630
3631
|
if r0 != 0 {
|
|
3631
3632
|
ntstatus = NTStatus(r0)
|
|
3632
3633
|
}
|
|
@@ -3634,7 +3635,7 @@ func NtCreateFile(handle *Handle, access uint32, oa *OBJECT_ATTRIBUTES, iosb *IO
|
|
|
3634
3635
|
}
|
|
3635
3636
|
|
|
3636
3637
|
func NtCreateNamedPipeFile(pipe *Handle, access uint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, share uint32, disposition uint32, options uint32, typ uint32, readMode uint32, completionMode uint32, maxInstances uint32, inboundQuota uint32, outputQuota uint32, timeout *int64) (ntstatus error) {
|
|
3637
|
-
r0, _, _ := syscall.
|
|
3638
|
+
r0, _, _ := syscall.SyscallN(procNtCreateNamedPipeFile.Addr(), uintptr(unsafe.Pointer(pipe)), uintptr(access), uintptr(unsafe.Pointer(oa)), uintptr(unsafe.Pointer(iosb)), uintptr(share), uintptr(disposition), uintptr(options), uintptr(typ), uintptr(readMode), uintptr(completionMode), uintptr(maxInstances), uintptr(inboundQuota), uintptr(outputQuota), uintptr(unsafe.Pointer(timeout)))
|
|
3638
3639
|
if r0 != 0 {
|
|
3639
3640
|
ntstatus = NTStatus(r0)
|
|
3640
3641
|
}
|
|
@@ -3642,7 +3643,7 @@ func NtCreateNamedPipeFile(pipe *Handle, access uint32, oa *OBJECT_ATTRIBUTES, i
|
|
|
3642
3643
|
}
|
|
3643
3644
|
|
|
3644
3645
|
func NtQueryInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe.Pointer, procInfoLen uint32, retLen *uint32) (ntstatus error) {
|
|
3645
|
-
r0, _, _ := syscall.
|
|
3646
|
+
r0, _, _ := syscall.SyscallN(procNtQueryInformationProcess.Addr(), uintptr(proc), uintptr(procInfoClass), uintptr(procInfo), uintptr(procInfoLen), uintptr(unsafe.Pointer(retLen)))
|
|
3646
3647
|
if r0 != 0 {
|
|
3647
3648
|
ntstatus = NTStatus(r0)
|
|
3648
3649
|
}
|
|
@@ -3650,7 +3651,7 @@ func NtQueryInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe
|
|
|
3650
3651
|
}
|
|
3651
3652
|
|
|
3652
3653
|
func NtQuerySystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInfoLen uint32, retLen *uint32) (ntstatus error) {
|
|
3653
|
-
r0, _, _ := syscall.
|
|
3654
|
+
r0, _, _ := syscall.SyscallN(procNtQuerySystemInformation.Addr(), uintptr(sysInfoClass), uintptr(sysInfo), uintptr(sysInfoLen), uintptr(unsafe.Pointer(retLen)))
|
|
3654
3655
|
if r0 != 0 {
|
|
3655
3656
|
ntstatus = NTStatus(r0)
|
|
3656
3657
|
}
|
|
@@ -3658,7 +3659,7 @@ func NtQuerySystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInf
|
|
|
3658
3659
|
}
|
|
3659
3660
|
|
|
3660
3661
|
func NtSetInformationFile(handle Handle, iosb *IO_STATUS_BLOCK, inBuffer *byte, inBufferLen uint32, class uint32) (ntstatus error) {
|
|
3661
|
-
r0, _, _ := syscall.
|
|
3662
|
+
r0, _, _ := syscall.SyscallN(procNtSetInformationFile.Addr(), uintptr(handle), uintptr(unsafe.Pointer(iosb)), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferLen), uintptr(class))
|
|
3662
3663
|
if r0 != 0 {
|
|
3663
3664
|
ntstatus = NTStatus(r0)
|
|
3664
3665
|
}
|
|
@@ -3666,7 +3667,7 @@ func NtSetInformationFile(handle Handle, iosb *IO_STATUS_BLOCK, inBuffer *byte,
|
|
|
3666
3667
|
}
|
|
3667
3668
|
|
|
3668
3669
|
func NtSetInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe.Pointer, procInfoLen uint32) (ntstatus error) {
|
|
3669
|
-
r0, _, _ := syscall.
|
|
3670
|
+
r0, _, _ := syscall.SyscallN(procNtSetInformationProcess.Addr(), uintptr(proc), uintptr(procInfoClass), uintptr(procInfo), uintptr(procInfoLen))
|
|
3670
3671
|
if r0 != 0 {
|
|
3671
3672
|
ntstatus = NTStatus(r0)
|
|
3672
3673
|
}
|
|
@@ -3674,7 +3675,7 @@ func NtSetInformationProcess(proc Handle, procInfoClass int32, procInfo unsafe.P
|
|
|
3674
3675
|
}
|
|
3675
3676
|
|
|
3676
3677
|
func NtSetSystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInfoLen uint32) (ntstatus error) {
|
|
3677
|
-
r0, _, _ := syscall.
|
|
3678
|
+
r0, _, _ := syscall.SyscallN(procNtSetSystemInformation.Addr(), uintptr(sysInfoClass), uintptr(sysInfo), uintptr(sysInfoLen))
|
|
3678
3679
|
if r0 != 0 {
|
|
3679
3680
|
ntstatus = NTStatus(r0)
|
|
3680
3681
|
}
|
|
@@ -3682,13 +3683,13 @@ func NtSetSystemInformation(sysInfoClass int32, sysInfo unsafe.Pointer, sysInfoL
|
|
|
3682
3683
|
}
|
|
3683
3684
|
|
|
3684
3685
|
func RtlAddFunctionTable(functionTable *RUNTIME_FUNCTION, entryCount uint32, baseAddress uintptr) (ret bool) {
|
|
3685
|
-
r0, _, _ := syscall.
|
|
3686
|
+
r0, _, _ := syscall.SyscallN(procRtlAddFunctionTable.Addr(), uintptr(unsafe.Pointer(functionTable)), uintptr(entryCount), uintptr(baseAddress))
|
|
3686
3687
|
ret = r0 != 0
|
|
3687
3688
|
return
|
|
3688
3689
|
}
|
|
3689
3690
|
|
|
3690
3691
|
func RtlDefaultNpAcl(acl **ACL) (ntstatus error) {
|
|
3691
|
-
r0, _, _ := syscall.
|
|
3692
|
+
r0, _, _ := syscall.SyscallN(procRtlDefaultNpAcl.Addr(), uintptr(unsafe.Pointer(acl)))
|
|
3692
3693
|
if r0 != 0 {
|
|
3693
3694
|
ntstatus = NTStatus(r0)
|
|
3694
3695
|
}
|
|
@@ -3696,13 +3697,13 @@ func RtlDefaultNpAcl(acl **ACL) (ntstatus error) {
|
|
|
3696
3697
|
}
|
|
3697
3698
|
|
|
3698
3699
|
func RtlDeleteFunctionTable(functionTable *RUNTIME_FUNCTION) (ret bool) {
|
|
3699
|
-
r0, _, _ := syscall.
|
|
3700
|
+
r0, _, _ := syscall.SyscallN(procRtlDeleteFunctionTable.Addr(), uintptr(unsafe.Pointer(functionTable)))
|
|
3700
3701
|
ret = r0 != 0
|
|
3701
3702
|
return
|
|
3702
3703
|
}
|
|
3703
3704
|
|
|
3704
3705
|
func RtlDosPathNameToNtPathName(dosName *uint16, ntName *NTUnicodeString, ntFileNamePart *uint16, relativeName *RTL_RELATIVE_NAME) (ntstatus error) {
|
|
3705
|
-
r0, _, _ := syscall.
|
|
3706
|
+
r0, _, _ := syscall.SyscallN(procRtlDosPathNameToNtPathName_U_WithStatus.Addr(), uintptr(unsafe.Pointer(dosName)), uintptr(unsafe.Pointer(ntName)), uintptr(unsafe.Pointer(ntFileNamePart)), uintptr(unsafe.Pointer(relativeName)))
|
|
3706
3707
|
if r0 != 0 {
|
|
3707
3708
|
ntstatus = NTStatus(r0)
|
|
3708
3709
|
}
|
|
@@ -3710,7 +3711,7 @@ func RtlDosPathNameToNtPathName(dosName *uint16, ntName *NTUnicodeString, ntFile
|
|
|
3710
3711
|
}
|
|
3711
3712
|
|
|
3712
3713
|
func RtlDosPathNameToRelativeNtPathName(dosName *uint16, ntName *NTUnicodeString, ntFileNamePart *uint16, relativeName *RTL_RELATIVE_NAME) (ntstatus error) {
|
|
3713
|
-
r0, _, _ := syscall.
|
|
3714
|
+
r0, _, _ := syscall.SyscallN(procRtlDosPathNameToRelativeNtPathName_U_WithStatus.Addr(), uintptr(unsafe.Pointer(dosName)), uintptr(unsafe.Pointer(ntName)), uintptr(unsafe.Pointer(ntFileNamePart)), uintptr(unsafe.Pointer(relativeName)))
|
|
3714
3715
|
if r0 != 0 {
|
|
3715
3716
|
ntstatus = NTStatus(r0)
|
|
3716
3717
|
}
|
|
@@ -3718,18 +3719,18 @@ func RtlDosPathNameToRelativeNtPathName(dosName *uint16, ntName *NTUnicodeString
|
|
|
3718
3719
|
}
|
|
3719
3720
|
|
|
3720
3721
|
func RtlGetCurrentPeb() (peb *PEB) {
|
|
3721
|
-
r0, _, _ := syscall.
|
|
3722
|
+
r0, _, _ := syscall.SyscallN(procRtlGetCurrentPeb.Addr())
|
|
3722
3723
|
peb = (*PEB)(unsafe.Pointer(r0))
|
|
3723
3724
|
return
|
|
3724
3725
|
}
|
|
3725
3726
|
|
|
3726
3727
|
func rtlGetNtVersionNumbers(majorVersion *uint32, minorVersion *uint32, buildNumber *uint32) {
|
|
3727
|
-
syscall.
|
|
3728
|
+
syscall.SyscallN(procRtlGetNtVersionNumbers.Addr(), uintptr(unsafe.Pointer(majorVersion)), uintptr(unsafe.Pointer(minorVersion)), uintptr(unsafe.Pointer(buildNumber)))
|
|
3728
3729
|
return
|
|
3729
3730
|
}
|
|
3730
3731
|
|
|
3731
3732
|
func rtlGetVersion(info *OsVersionInfoEx) (ntstatus error) {
|
|
3732
|
-
r0, _, _ := syscall.
|
|
3733
|
+
r0, _, _ := syscall.SyscallN(procRtlGetVersion.Addr(), uintptr(unsafe.Pointer(info)))
|
|
3733
3734
|
if r0 != 0 {
|
|
3734
3735
|
ntstatus = NTStatus(r0)
|
|
3735
3736
|
}
|
|
@@ -3737,23 +3738,23 @@ func rtlGetVersion(info *OsVersionInfoEx) (ntstatus error) {
|
|
|
3737
3738
|
}
|
|
3738
3739
|
|
|
3739
3740
|
func RtlInitString(destinationString *NTString, sourceString *byte) {
|
|
3740
|
-
syscall.
|
|
3741
|
+
syscall.SyscallN(procRtlInitString.Addr(), uintptr(unsafe.Pointer(destinationString)), uintptr(unsafe.Pointer(sourceString)))
|
|
3741
3742
|
return
|
|
3742
3743
|
}
|
|
3743
3744
|
|
|
3744
3745
|
func RtlInitUnicodeString(destinationString *NTUnicodeString, sourceString *uint16) {
|
|
3745
|
-
syscall.
|
|
3746
|
+
syscall.SyscallN(procRtlInitUnicodeString.Addr(), uintptr(unsafe.Pointer(destinationString)), uintptr(unsafe.Pointer(sourceString)))
|
|
3746
3747
|
return
|
|
3747
3748
|
}
|
|
3748
3749
|
|
|
3749
3750
|
func rtlNtStatusToDosErrorNoTeb(ntstatus NTStatus) (ret syscall.Errno) {
|
|
3750
|
-
r0, _, _ := syscall.
|
|
3751
|
+
r0, _, _ := syscall.SyscallN(procRtlNtStatusToDosErrorNoTeb.Addr(), uintptr(ntstatus))
|
|
3751
3752
|
ret = syscall.Errno(r0)
|
|
3752
3753
|
return
|
|
3753
3754
|
}
|
|
3754
3755
|
|
|
3755
3756
|
func clsidFromString(lpsz *uint16, pclsid *GUID) (ret error) {
|
|
3756
|
-
r0, _, _ := syscall.
|
|
3757
|
+
r0, _, _ := syscall.SyscallN(procCLSIDFromString.Addr(), uintptr(unsafe.Pointer(lpsz)), uintptr(unsafe.Pointer(pclsid)))
|
|
3757
3758
|
if r0 != 0 {
|
|
3758
3759
|
ret = syscall.Errno(r0)
|
|
3759
3760
|
}
|
|
@@ -3761,7 +3762,7 @@ func clsidFromString(lpsz *uint16, pclsid *GUID) (ret error) {
|
|
|
3761
3762
|
}
|
|
3762
3763
|
|
|
3763
3764
|
func coCreateGuid(pguid *GUID) (ret error) {
|
|
3764
|
-
r0, _, _ := syscall.
|
|
3765
|
+
r0, _, _ := syscall.SyscallN(procCoCreateGuid.Addr(), uintptr(unsafe.Pointer(pguid)))
|
|
3765
3766
|
if r0 != 0 {
|
|
3766
3767
|
ret = syscall.Errno(r0)
|
|
3767
3768
|
}
|
|
@@ -3769,7 +3770,7 @@ func coCreateGuid(pguid *GUID) (ret error) {
|
|
|
3769
3770
|
}
|
|
3770
3771
|
|
|
3771
3772
|
func CoGetObject(name *uint16, bindOpts *BIND_OPTS3, guid *GUID, functionTable **uintptr) (ret error) {
|
|
3772
|
-
r0, _, _ := syscall.
|
|
3773
|
+
r0, _, _ := syscall.SyscallN(procCoGetObject.Addr(), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(bindOpts)), uintptr(unsafe.Pointer(guid)), uintptr(unsafe.Pointer(functionTable)))
|
|
3773
3774
|
if r0 != 0 {
|
|
3774
3775
|
ret = syscall.Errno(r0)
|
|
3775
3776
|
}
|
|
@@ -3777,7 +3778,7 @@ func CoGetObject(name *uint16, bindOpts *BIND_OPTS3, guid *GUID, functionTable *
|
|
|
3777
3778
|
}
|
|
3778
3779
|
|
|
3779
3780
|
func CoInitializeEx(reserved uintptr, coInit uint32) (ret error) {
|
|
3780
|
-
r0, _, _ := syscall.
|
|
3781
|
+
r0, _, _ := syscall.SyscallN(procCoInitializeEx.Addr(), uintptr(reserved), uintptr(coInit))
|
|
3781
3782
|
if r0 != 0 {
|
|
3782
3783
|
ret = syscall.Errno(r0)
|
|
3783
3784
|
}
|
|
@@ -3785,23 +3786,23 @@ func CoInitializeEx(reserved uintptr, coInit uint32) (ret error) {
|
|
|
3785
3786
|
}
|
|
3786
3787
|
|
|
3787
3788
|
func CoTaskMemFree(address unsafe.Pointer) {
|
|
3788
|
-
syscall.
|
|
3789
|
+
syscall.SyscallN(procCoTaskMemFree.Addr(), uintptr(address))
|
|
3789
3790
|
return
|
|
3790
3791
|
}
|
|
3791
3792
|
|
|
3792
3793
|
func CoUninitialize() {
|
|
3793
|
-
syscall.
|
|
3794
|
+
syscall.SyscallN(procCoUninitialize.Addr())
|
|
3794
3795
|
return
|
|
3795
3796
|
}
|
|
3796
3797
|
|
|
3797
3798
|
func stringFromGUID2(rguid *GUID, lpsz *uint16, cchMax int32) (chars int32) {
|
|
3798
|
-
r0, _, _ := syscall.
|
|
3799
|
+
r0, _, _ := syscall.SyscallN(procStringFromGUID2.Addr(), uintptr(unsafe.Pointer(rguid)), uintptr(unsafe.Pointer(lpsz)), uintptr(cchMax))
|
|
3799
3800
|
chars = int32(r0)
|
|
3800
3801
|
return
|
|
3801
3802
|
}
|
|
3802
3803
|
|
|
3803
3804
|
func EnumProcessModules(process Handle, module *Handle, cb uint32, cbNeeded *uint32) (err error) {
|
|
3804
|
-
r1, _, e1 := syscall.
|
|
3805
|
+
r1, _, e1 := syscall.SyscallN(procEnumProcessModules.Addr(), uintptr(process), uintptr(unsafe.Pointer(module)), uintptr(cb), uintptr(unsafe.Pointer(cbNeeded)))
|
|
3805
3806
|
if r1 == 0 {
|
|
3806
3807
|
err = errnoErr(e1)
|
|
3807
3808
|
}
|
|
@@ -3809,7 +3810,7 @@ func EnumProcessModules(process Handle, module *Handle, cb uint32, cbNeeded *uin
|
|
|
3809
3810
|
}
|
|
3810
3811
|
|
|
3811
3812
|
func EnumProcessModulesEx(process Handle, module *Handle, cb uint32, cbNeeded *uint32, filterFlag uint32) (err error) {
|
|
3812
|
-
r1, _, e1 := syscall.
|
|
3813
|
+
r1, _, e1 := syscall.SyscallN(procEnumProcessModulesEx.Addr(), uintptr(process), uintptr(unsafe.Pointer(module)), uintptr(cb), uintptr(unsafe.Pointer(cbNeeded)), uintptr(filterFlag))
|
|
3813
3814
|
if r1 == 0 {
|
|
3814
3815
|
err = errnoErr(e1)
|
|
3815
3816
|
}
|
|
@@ -3817,7 +3818,7 @@ func EnumProcessModulesEx(process Handle, module *Handle, cb uint32, cbNeeded *u
|
|
|
3817
3818
|
}
|
|
3818
3819
|
|
|
3819
3820
|
func enumProcesses(processIds *uint32, nSize uint32, bytesReturned *uint32) (err error) {
|
|
3820
|
-
r1, _, e1 := syscall.
|
|
3821
|
+
r1, _, e1 := syscall.SyscallN(procEnumProcesses.Addr(), uintptr(unsafe.Pointer(processIds)), uintptr(nSize), uintptr(unsafe.Pointer(bytesReturned)))
|
|
3821
3822
|
if r1 == 0 {
|
|
3822
3823
|
err = errnoErr(e1)
|
|
3823
3824
|
}
|
|
@@ -3825,7 +3826,7 @@ func enumProcesses(processIds *uint32, nSize uint32, bytesReturned *uint32) (err
|
|
|
3825
3826
|
}
|
|
3826
3827
|
|
|
3827
3828
|
func GetModuleBaseName(process Handle, module Handle, baseName *uint16, size uint32) (err error) {
|
|
3828
|
-
r1, _, e1 := syscall.
|
|
3829
|
+
r1, _, e1 := syscall.SyscallN(procGetModuleBaseNameW.Addr(), uintptr(process), uintptr(module), uintptr(unsafe.Pointer(baseName)), uintptr(size))
|
|
3829
3830
|
if r1 == 0 {
|
|
3830
3831
|
err = errnoErr(e1)
|
|
3831
3832
|
}
|
|
@@ -3833,7 +3834,7 @@ func GetModuleBaseName(process Handle, module Handle, baseName *uint16, size uin
|
|
|
3833
3834
|
}
|
|
3834
3835
|
|
|
3835
3836
|
func GetModuleFileNameEx(process Handle, module Handle, filename *uint16, size uint32) (err error) {
|
|
3836
|
-
r1, _, e1 := syscall.
|
|
3837
|
+
r1, _, e1 := syscall.SyscallN(procGetModuleFileNameExW.Addr(), uintptr(process), uintptr(module), uintptr(unsafe.Pointer(filename)), uintptr(size))
|
|
3837
3838
|
if r1 == 0 {
|
|
3838
3839
|
err = errnoErr(e1)
|
|
3839
3840
|
}
|
|
@@ -3841,7 +3842,7 @@ func GetModuleFileNameEx(process Handle, module Handle, filename *uint16, size u
|
|
|
3841
3842
|
}
|
|
3842
3843
|
|
|
3843
3844
|
func GetModuleInformation(process Handle, module Handle, modinfo *ModuleInfo, cb uint32) (err error) {
|
|
3844
|
-
r1, _, e1 := syscall.
|
|
3845
|
+
r1, _, e1 := syscall.SyscallN(procGetModuleInformation.Addr(), uintptr(process), uintptr(module), uintptr(unsafe.Pointer(modinfo)), uintptr(cb))
|
|
3845
3846
|
if r1 == 0 {
|
|
3846
3847
|
err = errnoErr(e1)
|
|
3847
3848
|
}
|
|
@@ -3849,7 +3850,7 @@ func GetModuleInformation(process Handle, module Handle, modinfo *ModuleInfo, cb
|
|
|
3849
3850
|
}
|
|
3850
3851
|
|
|
3851
3852
|
func QueryWorkingSetEx(process Handle, pv uintptr, cb uint32) (err error) {
|
|
3852
|
-
r1, _, e1 := syscall.
|
|
3853
|
+
r1, _, e1 := syscall.SyscallN(procQueryWorkingSetEx.Addr(), uintptr(process), uintptr(pv), uintptr(cb))
|
|
3853
3854
|
if r1 == 0 {
|
|
3854
3855
|
err = errnoErr(e1)
|
|
3855
3856
|
}
|
|
@@ -3861,7 +3862,7 @@ func SubscribeServiceChangeNotifications(service Handle, eventType uint32, callb
|
|
|
3861
3862
|
if ret != nil {
|
|
3862
3863
|
return
|
|
3863
3864
|
}
|
|
3864
|
-
r0, _, _ := syscall.
|
|
3865
|
+
r0, _, _ := syscall.SyscallN(procSubscribeServiceChangeNotifications.Addr(), uintptr(service), uintptr(eventType), uintptr(callback), uintptr(callbackCtx), uintptr(unsafe.Pointer(subscription)))
|
|
3865
3866
|
if r0 != 0 {
|
|
3866
3867
|
ret = syscall.Errno(r0)
|
|
3867
3868
|
}
|
|
@@ -3873,12 +3874,12 @@ func UnsubscribeServiceChangeNotifications(subscription uintptr) (err error) {
|
|
|
3873
3874
|
if err != nil {
|
|
3874
3875
|
return
|
|
3875
3876
|
}
|
|
3876
|
-
syscall.
|
|
3877
|
+
syscall.SyscallN(procUnsubscribeServiceChangeNotifications.Addr(), uintptr(subscription))
|
|
3877
3878
|
return
|
|
3878
3879
|
}
|
|
3879
3880
|
|
|
3880
3881
|
func GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err error) {
|
|
3881
|
-
r1, _, e1 := syscall.
|
|
3882
|
+
r1, _, e1 := syscall.SyscallN(procGetUserNameExW.Addr(), uintptr(nameFormat), uintptr(unsafe.Pointer(nameBuffre)), uintptr(unsafe.Pointer(nSize)))
|
|
3882
3883
|
if r1&0xff == 0 {
|
|
3883
3884
|
err = errnoErr(e1)
|
|
3884
3885
|
}
|
|
@@ -3886,7 +3887,7 @@ func GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err er
|
|
|
3886
3887
|
}
|
|
3887
3888
|
|
|
3888
3889
|
func TranslateName(accName *uint16, accNameFormat uint32, desiredNameFormat uint32, translatedName *uint16, nSize *uint32) (err error) {
|
|
3889
|
-
r1, _, e1 := syscall.
|
|
3890
|
+
r1, _, e1 := syscall.SyscallN(procTranslateNameW.Addr(), uintptr(unsafe.Pointer(accName)), uintptr(accNameFormat), uintptr(desiredNameFormat), uintptr(unsafe.Pointer(translatedName)), uintptr(unsafe.Pointer(nSize)))
|
|
3890
3891
|
if r1&0xff == 0 {
|
|
3891
3892
|
err = errnoErr(e1)
|
|
3892
3893
|
}
|
|
@@ -3894,7 +3895,7 @@ func TranslateName(accName *uint16, accNameFormat uint32, desiredNameFormat uint
|
|
|
3894
3895
|
}
|
|
3895
3896
|
|
|
3896
3897
|
func SetupDiBuildDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT) (err error) {
|
|
3897
|
-
r1, _, e1 := syscall.
|
|
3898
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiBuildDriverInfoList.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(driverType))
|
|
3898
3899
|
if r1 == 0 {
|
|
3899
3900
|
err = errnoErr(e1)
|
|
3900
3901
|
}
|
|
@@ -3902,7 +3903,7 @@ func SetupDiBuildDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfoDa
|
|
|
3902
3903
|
}
|
|
3903
3904
|
|
|
3904
3905
|
func SetupDiCallClassInstaller(installFunction DI_FUNCTION, deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) {
|
|
3905
|
-
r1, _, e1 := syscall.
|
|
3906
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiCallClassInstaller.Addr(), uintptr(installFunction), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)))
|
|
3906
3907
|
if r1 == 0 {
|
|
3907
3908
|
err = errnoErr(e1)
|
|
3908
3909
|
}
|
|
@@ -3910,7 +3911,7 @@ func SetupDiCallClassInstaller(installFunction DI_FUNCTION, deviceInfoSet DevInf
|
|
|
3910
3911
|
}
|
|
3911
3912
|
|
|
3912
3913
|
func SetupDiCancelDriverInfoSearch(deviceInfoSet DevInfo) (err error) {
|
|
3913
|
-
r1, _, e1 := syscall.
|
|
3914
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiCancelDriverInfoSearch.Addr(), uintptr(deviceInfoSet))
|
|
3914
3915
|
if r1 == 0 {
|
|
3915
3916
|
err = errnoErr(e1)
|
|
3916
3917
|
}
|
|
@@ -3918,7 +3919,7 @@ func SetupDiCancelDriverInfoSearch(deviceInfoSet DevInfo) (err error) {
|
|
|
3918
3919
|
}
|
|
3919
3920
|
|
|
3920
3921
|
func setupDiClassGuidsFromNameEx(className *uint16, classGuidList *GUID, classGuidListSize uint32, requiredSize *uint32, machineName *uint16, reserved uintptr) (err error) {
|
|
3921
|
-
r1, _, e1 := syscall.
|
|
3922
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiClassGuidsFromNameExW.Addr(), uintptr(unsafe.Pointer(className)), uintptr(unsafe.Pointer(classGuidList)), uintptr(classGuidListSize), uintptr(unsafe.Pointer(requiredSize)), uintptr(unsafe.Pointer(machineName)), uintptr(reserved))
|
|
3922
3923
|
if r1 == 0 {
|
|
3923
3924
|
err = errnoErr(e1)
|
|
3924
3925
|
}
|
|
@@ -3926,7 +3927,7 @@ func setupDiClassGuidsFromNameEx(className *uint16, classGuidList *GUID, classGu
|
|
|
3926
3927
|
}
|
|
3927
3928
|
|
|
3928
3929
|
func setupDiClassNameFromGuidEx(classGUID *GUID, className *uint16, classNameSize uint32, requiredSize *uint32, machineName *uint16, reserved uintptr) (err error) {
|
|
3929
|
-
r1, _, e1 := syscall.
|
|
3930
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiClassNameFromGuidExW.Addr(), uintptr(unsafe.Pointer(classGUID)), uintptr(unsafe.Pointer(className)), uintptr(classNameSize), uintptr(unsafe.Pointer(requiredSize)), uintptr(unsafe.Pointer(machineName)), uintptr(reserved))
|
|
3930
3931
|
if r1 == 0 {
|
|
3931
3932
|
err = errnoErr(e1)
|
|
3932
3933
|
}
|
|
@@ -3934,7 +3935,7 @@ func setupDiClassNameFromGuidEx(classGUID *GUID, className *uint16, classNameSiz
|
|
|
3934
3935
|
}
|
|
3935
3936
|
|
|
3936
3937
|
func setupDiCreateDeviceInfoListEx(classGUID *GUID, hwndParent uintptr, machineName *uint16, reserved uintptr) (handle DevInfo, err error) {
|
|
3937
|
-
r0, _, e1 := syscall.
|
|
3938
|
+
r0, _, e1 := syscall.SyscallN(procSetupDiCreateDeviceInfoListExW.Addr(), uintptr(unsafe.Pointer(classGUID)), uintptr(hwndParent), uintptr(unsafe.Pointer(machineName)), uintptr(reserved))
|
|
3938
3939
|
handle = DevInfo(r0)
|
|
3939
3940
|
if handle == DevInfo(InvalidHandle) {
|
|
3940
3941
|
err = errnoErr(e1)
|
|
@@ -3943,7 +3944,7 @@ func setupDiCreateDeviceInfoListEx(classGUID *GUID, hwndParent uintptr, machineN
|
|
|
3943
3944
|
}
|
|
3944
3945
|
|
|
3945
3946
|
func setupDiCreateDeviceInfo(deviceInfoSet DevInfo, DeviceName *uint16, classGUID *GUID, DeviceDescription *uint16, hwndParent uintptr, CreationFlags DICD, deviceInfoData *DevInfoData) (err error) {
|
|
3946
|
-
r1, _, e1 := syscall.
|
|
3947
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiCreateDeviceInfoW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(DeviceName)), uintptr(unsafe.Pointer(classGUID)), uintptr(unsafe.Pointer(DeviceDescription)), uintptr(hwndParent), uintptr(CreationFlags), uintptr(unsafe.Pointer(deviceInfoData)))
|
|
3947
3948
|
if r1 == 0 {
|
|
3948
3949
|
err = errnoErr(e1)
|
|
3949
3950
|
}
|
|
@@ -3951,7 +3952,7 @@ func setupDiCreateDeviceInfo(deviceInfoSet DevInfo, DeviceName *uint16, classGUI
|
|
|
3951
3952
|
}
|
|
3952
3953
|
|
|
3953
3954
|
func SetupDiDestroyDeviceInfoList(deviceInfoSet DevInfo) (err error) {
|
|
3954
|
-
r1, _, e1 := syscall.
|
|
3955
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiDestroyDeviceInfoList.Addr(), uintptr(deviceInfoSet))
|
|
3955
3956
|
if r1 == 0 {
|
|
3956
3957
|
err = errnoErr(e1)
|
|
3957
3958
|
}
|
|
@@ -3959,7 +3960,7 @@ func SetupDiDestroyDeviceInfoList(deviceInfoSet DevInfo) (err error) {
|
|
|
3959
3960
|
}
|
|
3960
3961
|
|
|
3961
3962
|
func SetupDiDestroyDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT) (err error) {
|
|
3962
|
-
r1, _, e1 := syscall.
|
|
3963
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiDestroyDriverInfoList.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(driverType))
|
|
3963
3964
|
if r1 == 0 {
|
|
3964
3965
|
err = errnoErr(e1)
|
|
3965
3966
|
}
|
|
@@ -3967,7 +3968,7 @@ func SetupDiDestroyDriverInfoList(deviceInfoSet DevInfo, deviceInfoData *DevInfo
|
|
|
3967
3968
|
}
|
|
3968
3969
|
|
|
3969
3970
|
func setupDiEnumDeviceInfo(deviceInfoSet DevInfo, memberIndex uint32, deviceInfoData *DevInfoData) (err error) {
|
|
3970
|
-
r1, _, e1 := syscall.
|
|
3971
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiEnumDeviceInfo.Addr(), uintptr(deviceInfoSet), uintptr(memberIndex), uintptr(unsafe.Pointer(deviceInfoData)))
|
|
3971
3972
|
if r1 == 0 {
|
|
3972
3973
|
err = errnoErr(e1)
|
|
3973
3974
|
}
|
|
@@ -3975,7 +3976,7 @@ func setupDiEnumDeviceInfo(deviceInfoSet DevInfo, memberIndex uint32, deviceInfo
|
|
|
3975
3976
|
}
|
|
3976
3977
|
|
|
3977
3978
|
func setupDiEnumDriverInfo(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverType SPDIT, memberIndex uint32, driverInfoData *DrvInfoData) (err error) {
|
|
3978
|
-
r1, _, e1 := syscall.
|
|
3979
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiEnumDriverInfoW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(driverType), uintptr(memberIndex), uintptr(unsafe.Pointer(driverInfoData)))
|
|
3979
3980
|
if r1 == 0 {
|
|
3980
3981
|
err = errnoErr(e1)
|
|
3981
3982
|
}
|
|
@@ -3983,7 +3984,7 @@ func setupDiEnumDriverInfo(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, d
|
|
|
3983
3984
|
}
|
|
3984
3985
|
|
|
3985
3986
|
func setupDiGetClassDevsEx(classGUID *GUID, Enumerator *uint16, hwndParent uintptr, Flags DIGCF, deviceInfoSet DevInfo, machineName *uint16, reserved uintptr) (handle DevInfo, err error) {
|
|
3986
|
-
r0, _, e1 := syscall.
|
|
3987
|
+
r0, _, e1 := syscall.SyscallN(procSetupDiGetClassDevsExW.Addr(), uintptr(unsafe.Pointer(classGUID)), uintptr(unsafe.Pointer(Enumerator)), uintptr(hwndParent), uintptr(Flags), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(machineName)), uintptr(reserved))
|
|
3987
3988
|
handle = DevInfo(r0)
|
|
3988
3989
|
if handle == DevInfo(InvalidHandle) {
|
|
3989
3990
|
err = errnoErr(e1)
|
|
@@ -3992,7 +3993,7 @@ func setupDiGetClassDevsEx(classGUID *GUID, Enumerator *uint16, hwndParent uintp
|
|
|
3992
3993
|
}
|
|
3993
3994
|
|
|
3994
3995
|
func SetupDiGetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32, requiredSize *uint32) (err error) {
|
|
3995
|
-
r1, _, e1 := syscall.
|
|
3996
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetClassInstallParamsW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(classInstallParams)), uintptr(classInstallParamsSize), uintptr(unsafe.Pointer(requiredSize)))
|
|
3996
3997
|
if r1 == 0 {
|
|
3997
3998
|
err = errnoErr(e1)
|
|
3998
3999
|
}
|
|
@@ -4000,7 +4001,7 @@ func SetupDiGetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfo
|
|
|
4000
4001
|
}
|
|
4001
4002
|
|
|
4002
4003
|
func setupDiGetDeviceInfoListDetail(deviceInfoSet DevInfo, deviceInfoSetDetailData *DevInfoListDetailData) (err error) {
|
|
4003
|
-
r1, _, e1 := syscall.
|
|
4004
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetDeviceInfoListDetailW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoSetDetailData)))
|
|
4004
4005
|
if r1 == 0 {
|
|
4005
4006
|
err = errnoErr(e1)
|
|
4006
4007
|
}
|
|
@@ -4008,7 +4009,7 @@ func setupDiGetDeviceInfoListDetail(deviceInfoSet DevInfo, deviceInfoSetDetailDa
|
|
|
4008
4009
|
}
|
|
4009
4010
|
|
|
4010
4011
|
func setupDiGetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, deviceInstallParams *DevInstallParams) (err error) {
|
|
4011
|
-
r1, _, e1 := syscall.
|
|
4012
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetDeviceInstallParamsW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(deviceInstallParams)))
|
|
4012
4013
|
if r1 == 0 {
|
|
4013
4014
|
err = errnoErr(e1)
|
|
4014
4015
|
}
|
|
@@ -4016,7 +4017,7 @@ func setupDiGetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInf
|
|
|
4016
4017
|
}
|
|
4017
4018
|
|
|
4018
4019
|
func setupDiGetDeviceInstanceId(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, instanceId *uint16, instanceIdSize uint32, instanceIdRequiredSize *uint32) (err error) {
|
|
4019
|
-
r1, _, e1 := syscall.
|
|
4020
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetDeviceInstanceIdW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(instanceId)), uintptr(instanceIdSize), uintptr(unsafe.Pointer(instanceIdRequiredSize)))
|
|
4020
4021
|
if r1 == 0 {
|
|
4021
4022
|
err = errnoErr(e1)
|
|
4022
4023
|
}
|
|
@@ -4024,7 +4025,7 @@ func setupDiGetDeviceInstanceId(deviceInfoSet DevInfo, deviceInfoData *DevInfoDa
|
|
|
4024
4025
|
}
|
|
4025
4026
|
|
|
4026
4027
|
func setupDiGetDeviceProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, propertyKey *DEVPROPKEY, propertyType *DEVPROPTYPE, propertyBuffer *byte, propertyBufferSize uint32, requiredSize *uint32, flags uint32) (err error) {
|
|
4027
|
-
r1, _, e1 := syscall.
|
|
4028
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetDevicePropertyW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(propertyKey)), uintptr(unsafe.Pointer(propertyType)), uintptr(unsafe.Pointer(propertyBuffer)), uintptr(propertyBufferSize), uintptr(unsafe.Pointer(requiredSize)), uintptr(flags))
|
|
4028
4029
|
if r1 == 0 {
|
|
4029
4030
|
err = errnoErr(e1)
|
|
4030
4031
|
}
|
|
@@ -4032,7 +4033,7 @@ func setupDiGetDeviceProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData
|
|
|
4032
4033
|
}
|
|
4033
4034
|
|
|
4034
4035
|
func setupDiGetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP, propertyRegDataType *uint32, propertyBuffer *byte, propertyBufferSize uint32, requiredSize *uint32) (err error) {
|
|
4035
|
-
r1, _, e1 := syscall.
|
|
4036
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetDeviceRegistryPropertyW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(property), uintptr(unsafe.Pointer(propertyRegDataType)), uintptr(unsafe.Pointer(propertyBuffer)), uintptr(propertyBufferSize), uintptr(unsafe.Pointer(requiredSize)))
|
|
4036
4037
|
if r1 == 0 {
|
|
4037
4038
|
err = errnoErr(e1)
|
|
4038
4039
|
}
|
|
@@ -4040,7 +4041,7 @@ func setupDiGetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *Dev
|
|
|
4040
4041
|
}
|
|
4041
4042
|
|
|
4042
4043
|
func setupDiGetDriverInfoDetail(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData, driverInfoDetailData *DrvInfoDetailData, driverInfoDetailDataSize uint32, requiredSize *uint32) (err error) {
|
|
4043
|
-
r1, _, e1 := syscall.
|
|
4044
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetDriverInfoDetailW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(driverInfoData)), uintptr(unsafe.Pointer(driverInfoDetailData)), uintptr(driverInfoDetailDataSize), uintptr(unsafe.Pointer(requiredSize)))
|
|
4044
4045
|
if r1 == 0 {
|
|
4045
4046
|
err = errnoErr(e1)
|
|
4046
4047
|
}
|
|
@@ -4048,7 +4049,7 @@ func setupDiGetDriverInfoDetail(deviceInfoSet DevInfo, deviceInfoData *DevInfoDa
|
|
|
4048
4049
|
}
|
|
4049
4050
|
|
|
4050
4051
|
func setupDiGetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) {
|
|
4051
|
-
r1, _, e1 := syscall.
|
|
4052
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetSelectedDevice.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)))
|
|
4052
4053
|
if r1 == 0 {
|
|
4053
4054
|
err = errnoErr(e1)
|
|
4054
4055
|
}
|
|
@@ -4056,7 +4057,7 @@ func setupDiGetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData
|
|
|
4056
4057
|
}
|
|
4057
4058
|
|
|
4058
4059
|
func setupDiGetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (err error) {
|
|
4059
|
-
r1, _, e1 := syscall.
|
|
4060
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiGetSelectedDriverW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(driverInfoData)))
|
|
4060
4061
|
if r1 == 0 {
|
|
4061
4062
|
err = errnoErr(e1)
|
|
4062
4063
|
}
|
|
@@ -4064,7 +4065,7 @@ func setupDiGetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData
|
|
|
4064
4065
|
}
|
|
4065
4066
|
|
|
4066
4067
|
func SetupDiOpenDevRegKey(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, Scope DICS_FLAG, HwProfile uint32, KeyType DIREG, samDesired uint32) (key Handle, err error) {
|
|
4067
|
-
r0, _, e1 := syscall.
|
|
4068
|
+
r0, _, e1 := syscall.SyscallN(procSetupDiOpenDevRegKey.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(Scope), uintptr(HwProfile), uintptr(KeyType), uintptr(samDesired))
|
|
4068
4069
|
key = Handle(r0)
|
|
4069
4070
|
if key == InvalidHandle {
|
|
4070
4071
|
err = errnoErr(e1)
|
|
@@ -4073,7 +4074,7 @@ func SetupDiOpenDevRegKey(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, Sc
|
|
|
4073
4074
|
}
|
|
4074
4075
|
|
|
4075
4076
|
func SetupDiSetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, classInstallParams *ClassInstallHeader, classInstallParamsSize uint32) (err error) {
|
|
4076
|
-
r1, _, e1 := syscall.
|
|
4077
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiSetClassInstallParamsW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(classInstallParams)), uintptr(classInstallParamsSize))
|
|
4077
4078
|
if r1 == 0 {
|
|
4078
4079
|
err = errnoErr(e1)
|
|
4079
4080
|
}
|
|
@@ -4081,7 +4082,7 @@ func SetupDiSetClassInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfo
|
|
|
4081
4082
|
}
|
|
4082
4083
|
|
|
4083
4084
|
func SetupDiSetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, deviceInstallParams *DevInstallParams) (err error) {
|
|
4084
|
-
r1, _, e1 := syscall.
|
|
4085
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiSetDeviceInstallParamsW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(deviceInstallParams)))
|
|
4085
4086
|
if r1 == 0 {
|
|
4086
4087
|
err = errnoErr(e1)
|
|
4087
4088
|
}
|
|
@@ -4089,7 +4090,7 @@ func SetupDiSetDeviceInstallParams(deviceInfoSet DevInfo, deviceInfoData *DevInf
|
|
|
4089
4090
|
}
|
|
4090
4091
|
|
|
4091
4092
|
func setupDiSetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, property SPDRP, propertyBuffer *byte, propertyBufferSize uint32) (err error) {
|
|
4092
|
-
r1, _, e1 := syscall.
|
|
4093
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiSetDeviceRegistryPropertyW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(property), uintptr(unsafe.Pointer(propertyBuffer)), uintptr(propertyBufferSize))
|
|
4093
4094
|
if r1 == 0 {
|
|
4094
4095
|
err = errnoErr(e1)
|
|
4095
4096
|
}
|
|
@@ -4097,7 +4098,7 @@ func setupDiSetDeviceRegistryProperty(deviceInfoSet DevInfo, deviceInfoData *Dev
|
|
|
4097
4098
|
}
|
|
4098
4099
|
|
|
4099
4100
|
func SetupDiSetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData) (err error) {
|
|
4100
|
-
r1, _, e1 := syscall.
|
|
4101
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiSetSelectedDevice.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)))
|
|
4101
4102
|
if r1 == 0 {
|
|
4102
4103
|
err = errnoErr(e1)
|
|
4103
4104
|
}
|
|
@@ -4105,7 +4106,7 @@ func SetupDiSetSelectedDevice(deviceInfoSet DevInfo, deviceInfoData *DevInfoData
|
|
|
4105
4106
|
}
|
|
4106
4107
|
|
|
4107
4108
|
func SetupDiSetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData, driverInfoData *DrvInfoData) (err error) {
|
|
4108
|
-
r1, _, e1 := syscall.
|
|
4109
|
+
r1, _, e1 := syscall.SyscallN(procSetupDiSetSelectedDriverW.Addr(), uintptr(deviceInfoSet), uintptr(unsafe.Pointer(deviceInfoData)), uintptr(unsafe.Pointer(driverInfoData)))
|
|
4109
4110
|
if r1 == 0 {
|
|
4110
4111
|
err = errnoErr(e1)
|
|
4111
4112
|
}
|
|
@@ -4113,7 +4114,7 @@ func SetupDiSetSelectedDriver(deviceInfoSet DevInfo, deviceInfoData *DevInfoData
|
|
|
4113
4114
|
}
|
|
4114
4115
|
|
|
4115
4116
|
func setupUninstallOEMInf(infFileName *uint16, flags SUOI, reserved uintptr) (err error) {
|
|
4116
|
-
r1, _, e1 := syscall.
|
|
4117
|
+
r1, _, e1 := syscall.SyscallN(procSetupUninstallOEMInfW.Addr(), uintptr(unsafe.Pointer(infFileName)), uintptr(flags), uintptr(reserved))
|
|
4117
4118
|
if r1 == 0 {
|
|
4118
4119
|
err = errnoErr(e1)
|
|
4119
4120
|
}
|
|
@@ -4121,7 +4122,7 @@ func setupUninstallOEMInf(infFileName *uint16, flags SUOI, reserved uintptr) (er
|
|
|
4121
4122
|
}
|
|
4122
4123
|
|
|
4123
4124
|
func commandLineToArgv(cmd *uint16, argc *int32) (argv **uint16, err error) {
|
|
4124
|
-
r0, _, e1 := syscall.
|
|
4125
|
+
r0, _, e1 := syscall.SyscallN(procCommandLineToArgvW.Addr(), uintptr(unsafe.Pointer(cmd)), uintptr(unsafe.Pointer(argc)))
|
|
4125
4126
|
argv = (**uint16)(unsafe.Pointer(r0))
|
|
4126
4127
|
if argv == nil {
|
|
4127
4128
|
err = errnoErr(e1)
|
|
@@ -4130,7 +4131,7 @@ func commandLineToArgv(cmd *uint16, argc *int32) (argv **uint16, err error) {
|
|
|
4130
4131
|
}
|
|
4131
4132
|
|
|
4132
4133
|
func shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **uint16) (ret error) {
|
|
4133
|
-
r0, _, _ := syscall.
|
|
4134
|
+
r0, _, _ := syscall.SyscallN(procSHGetKnownFolderPath.Addr(), uintptr(unsafe.Pointer(id)), uintptr(flags), uintptr(token), uintptr(unsafe.Pointer(path)))
|
|
4134
4135
|
if r0 != 0 {
|
|
4135
4136
|
ret = syscall.Errno(r0)
|
|
4136
4137
|
}
|
|
@@ -4138,7 +4139,7 @@ func shGetKnownFolderPath(id *KNOWNFOLDERID, flags uint32, token Token, path **u
|
|
|
4138
4139
|
}
|
|
4139
4140
|
|
|
4140
4141
|
func ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) {
|
|
4141
|
-
r1, _, e1 := syscall.
|
|
4142
|
+
r1, _, e1 := syscall.SyscallN(procShellExecuteW.Addr(), uintptr(hwnd), uintptr(unsafe.Pointer(verb)), uintptr(unsafe.Pointer(file)), uintptr(unsafe.Pointer(args)), uintptr(unsafe.Pointer(cwd)), uintptr(showCmd))
|
|
4142
4143
|
if r1 <= 32 {
|
|
4143
4144
|
err = errnoErr(e1)
|
|
4144
4145
|
}
|
|
@@ -4146,12 +4147,12 @@ func ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *ui
|
|
|
4146
4147
|
}
|
|
4147
4148
|
|
|
4148
4149
|
func EnumChildWindows(hwnd HWND, enumFunc uintptr, param unsafe.Pointer) {
|
|
4149
|
-
syscall.
|
|
4150
|
+
syscall.SyscallN(procEnumChildWindows.Addr(), uintptr(hwnd), uintptr(enumFunc), uintptr(param))
|
|
4150
4151
|
return
|
|
4151
4152
|
}
|
|
4152
4153
|
|
|
4153
4154
|
func EnumWindows(enumFunc uintptr, param unsafe.Pointer) (err error) {
|
|
4154
|
-
r1, _, e1 := syscall.
|
|
4155
|
+
r1, _, e1 := syscall.SyscallN(procEnumWindows.Addr(), uintptr(enumFunc), uintptr(param))
|
|
4155
4156
|
if r1 == 0 {
|
|
4156
4157
|
err = errnoErr(e1)
|
|
4157
4158
|
}
|
|
@@ -4159,7 +4160,7 @@ func EnumWindows(enumFunc uintptr, param unsafe.Pointer) (err error) {
|
|
|
4159
4160
|
}
|
|
4160
4161
|
|
|
4161
4162
|
func ExitWindowsEx(flags uint32, reason uint32) (err error) {
|
|
4162
|
-
r1, _, e1 := syscall.
|
|
4163
|
+
r1, _, e1 := syscall.SyscallN(procExitWindowsEx.Addr(), uintptr(flags), uintptr(reason))
|
|
4163
4164
|
if r1 == 0 {
|
|
4164
4165
|
err = errnoErr(e1)
|
|
4165
4166
|
}
|
|
@@ -4167,7 +4168,7 @@ func ExitWindowsEx(flags uint32, reason uint32) (err error) {
|
|
|
4167
4168
|
}
|
|
4168
4169
|
|
|
4169
4170
|
func GetClassName(hwnd HWND, className *uint16, maxCount int32) (copied int32, err error) {
|
|
4170
|
-
r0, _, e1 := syscall.
|
|
4171
|
+
r0, _, e1 := syscall.SyscallN(procGetClassNameW.Addr(), uintptr(hwnd), uintptr(unsafe.Pointer(className)), uintptr(maxCount))
|
|
4171
4172
|
copied = int32(r0)
|
|
4172
4173
|
if copied == 0 {
|
|
4173
4174
|
err = errnoErr(e1)
|
|
@@ -4176,19 +4177,19 @@ func GetClassName(hwnd HWND, className *uint16, maxCount int32) (copied int32, e
|
|
|
4176
4177
|
}
|
|
4177
4178
|
|
|
4178
4179
|
func GetDesktopWindow() (hwnd HWND) {
|
|
4179
|
-
r0, _, _ := syscall.
|
|
4180
|
+
r0, _, _ := syscall.SyscallN(procGetDesktopWindow.Addr())
|
|
4180
4181
|
hwnd = HWND(r0)
|
|
4181
4182
|
return
|
|
4182
4183
|
}
|
|
4183
4184
|
|
|
4184
4185
|
func GetForegroundWindow() (hwnd HWND) {
|
|
4185
|
-
r0, _, _ := syscall.
|
|
4186
|
+
r0, _, _ := syscall.SyscallN(procGetForegroundWindow.Addr())
|
|
4186
4187
|
hwnd = HWND(r0)
|
|
4187
4188
|
return
|
|
4188
4189
|
}
|
|
4189
4190
|
|
|
4190
4191
|
func GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) {
|
|
4191
|
-
r1, _, e1 := syscall.
|
|
4192
|
+
r1, _, e1 := syscall.SyscallN(procGetGUIThreadInfo.Addr(), uintptr(thread), uintptr(unsafe.Pointer(info)))
|
|
4192
4193
|
if r1 == 0 {
|
|
4193
4194
|
err = errnoErr(e1)
|
|
4194
4195
|
}
|
|
@@ -4196,19 +4197,19 @@ func GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) {
|
|
|
4196
4197
|
}
|
|
4197
4198
|
|
|
4198
4199
|
func GetKeyboardLayout(tid uint32) (hkl Handle) {
|
|
4199
|
-
r0, _, _ := syscall.
|
|
4200
|
+
r0, _, _ := syscall.SyscallN(procGetKeyboardLayout.Addr(), uintptr(tid))
|
|
4200
4201
|
hkl = Handle(r0)
|
|
4201
4202
|
return
|
|
4202
4203
|
}
|
|
4203
4204
|
|
|
4204
4205
|
func GetShellWindow() (shellWindow HWND) {
|
|
4205
|
-
r0, _, _ := syscall.
|
|
4206
|
+
r0, _, _ := syscall.SyscallN(procGetShellWindow.Addr())
|
|
4206
4207
|
shellWindow = HWND(r0)
|
|
4207
4208
|
return
|
|
4208
4209
|
}
|
|
4209
4210
|
|
|
4210
4211
|
func GetWindowThreadProcessId(hwnd HWND, pid *uint32) (tid uint32, err error) {
|
|
4211
|
-
r0, _, e1 := syscall.
|
|
4212
|
+
r0, _, e1 := syscall.SyscallN(procGetWindowThreadProcessId.Addr(), uintptr(hwnd), uintptr(unsafe.Pointer(pid)))
|
|
4212
4213
|
tid = uint32(r0)
|
|
4213
4214
|
if tid == 0 {
|
|
4214
4215
|
err = errnoErr(e1)
|
|
@@ -4217,25 +4218,25 @@ func GetWindowThreadProcessId(hwnd HWND, pid *uint32) (tid uint32, err error) {
|
|
|
4217
4218
|
}
|
|
4218
4219
|
|
|
4219
4220
|
func IsWindow(hwnd HWND) (isWindow bool) {
|
|
4220
|
-
r0, _, _ := syscall.
|
|
4221
|
+
r0, _, _ := syscall.SyscallN(procIsWindow.Addr(), uintptr(hwnd))
|
|
4221
4222
|
isWindow = r0 != 0
|
|
4222
4223
|
return
|
|
4223
4224
|
}
|
|
4224
4225
|
|
|
4225
4226
|
func IsWindowUnicode(hwnd HWND) (isUnicode bool) {
|
|
4226
|
-
r0, _, _ := syscall.
|
|
4227
|
+
r0, _, _ := syscall.SyscallN(procIsWindowUnicode.Addr(), uintptr(hwnd))
|
|
4227
4228
|
isUnicode = r0 != 0
|
|
4228
4229
|
return
|
|
4229
4230
|
}
|
|
4230
4231
|
|
|
4231
4232
|
func IsWindowVisible(hwnd HWND) (isVisible bool) {
|
|
4232
|
-
r0, _, _ := syscall.
|
|
4233
|
+
r0, _, _ := syscall.SyscallN(procIsWindowVisible.Addr(), uintptr(hwnd))
|
|
4233
4234
|
isVisible = r0 != 0
|
|
4234
4235
|
return
|
|
4235
4236
|
}
|
|
4236
4237
|
|
|
4237
4238
|
func LoadKeyboardLayout(name *uint16, flags uint32) (hkl Handle, err error) {
|
|
4238
|
-
r0, _, e1 := syscall.
|
|
4239
|
+
r0, _, e1 := syscall.SyscallN(procLoadKeyboardLayoutW.Addr(), uintptr(unsafe.Pointer(name)), uintptr(flags))
|
|
4239
4240
|
hkl = Handle(r0)
|
|
4240
4241
|
if hkl == 0 {
|
|
4241
4242
|
err = errnoErr(e1)
|
|
@@ -4244,7 +4245,7 @@ func LoadKeyboardLayout(name *uint16, flags uint32) (hkl Handle, err error) {
|
|
|
4244
4245
|
}
|
|
4245
4246
|
|
|
4246
4247
|
func MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) {
|
|
4247
|
-
r0, _, e1 := syscall.
|
|
4248
|
+
r0, _, e1 := syscall.SyscallN(procMessageBoxW.Addr(), uintptr(hwnd), uintptr(unsafe.Pointer(text)), uintptr(unsafe.Pointer(caption)), uintptr(boxtype))
|
|
4248
4249
|
ret = int32(r0)
|
|
4249
4250
|
if ret == 0 {
|
|
4250
4251
|
err = errnoErr(e1)
|
|
@@ -4253,13 +4254,13 @@ func MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret i
|
|
|
4253
4254
|
}
|
|
4254
4255
|
|
|
4255
4256
|
func ToUnicodeEx(vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32) {
|
|
4256
|
-
r0, _, _ := syscall.
|
|
4257
|
+
r0, _, _ := syscall.SyscallN(procToUnicodeEx.Addr(), uintptr(vkey), uintptr(scancode), uintptr(unsafe.Pointer(keystate)), uintptr(unsafe.Pointer(pwszBuff)), uintptr(cchBuff), uintptr(flags), uintptr(hkl))
|
|
4257
4258
|
ret = int32(r0)
|
|
4258
4259
|
return
|
|
4259
4260
|
}
|
|
4260
4261
|
|
|
4261
4262
|
func UnloadKeyboardLayout(hkl Handle) (err error) {
|
|
4262
|
-
r1, _, e1 := syscall.
|
|
4263
|
+
r1, _, e1 := syscall.SyscallN(procUnloadKeyboardLayout.Addr(), uintptr(hkl))
|
|
4263
4264
|
if r1 == 0 {
|
|
4264
4265
|
err = errnoErr(e1)
|
|
4265
4266
|
}
|
|
@@ -4271,7 +4272,7 @@ func CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (
|
|
|
4271
4272
|
if inheritExisting {
|
|
4272
4273
|
_p0 = 1
|
|
4273
4274
|
}
|
|
4274
|
-
r1, _, e1 := syscall.
|
|
4275
|
+
r1, _, e1 := syscall.SyscallN(procCreateEnvironmentBlock.Addr(), uintptr(unsafe.Pointer(block)), uintptr(token), uintptr(_p0))
|
|
4275
4276
|
if r1 == 0 {
|
|
4276
4277
|
err = errnoErr(e1)
|
|
4277
4278
|
}
|
|
@@ -4279,7 +4280,7 @@ func CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (
|
|
|
4279
4280
|
}
|
|
4280
4281
|
|
|
4281
4282
|
func DestroyEnvironmentBlock(block *uint16) (err error) {
|
|
4282
|
-
r1, _, e1 := syscall.
|
|
4283
|
+
r1, _, e1 := syscall.SyscallN(procDestroyEnvironmentBlock.Addr(), uintptr(unsafe.Pointer(block)))
|
|
4283
4284
|
if r1 == 0 {
|
|
4284
4285
|
err = errnoErr(e1)
|
|
4285
4286
|
}
|
|
@@ -4287,7 +4288,7 @@ func DestroyEnvironmentBlock(block *uint16) (err error) {
|
|
|
4287
4288
|
}
|
|
4288
4289
|
|
|
4289
4290
|
func GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) {
|
|
4290
|
-
r1, _, e1 := syscall.
|
|
4291
|
+
r1, _, e1 := syscall.SyscallN(procGetUserProfileDirectoryW.Addr(), uintptr(t), uintptr(unsafe.Pointer(dir)), uintptr(unsafe.Pointer(dirLen)))
|
|
4291
4292
|
if r1 == 0 {
|
|
4292
4293
|
err = errnoErr(e1)
|
|
4293
4294
|
}
|
|
@@ -4304,7 +4305,7 @@ func GetFileVersionInfoSize(filename string, zeroHandle *Handle) (bufSize uint32
|
|
|
4304
4305
|
}
|
|
4305
4306
|
|
|
4306
4307
|
func _GetFileVersionInfoSize(filename *uint16, zeroHandle *Handle) (bufSize uint32, err error) {
|
|
4307
|
-
r0, _, e1 := syscall.
|
|
4308
|
+
r0, _, e1 := syscall.SyscallN(procGetFileVersionInfoSizeW.Addr(), uintptr(unsafe.Pointer(filename)), uintptr(unsafe.Pointer(zeroHandle)))
|
|
4308
4309
|
bufSize = uint32(r0)
|
|
4309
4310
|
if bufSize == 0 {
|
|
4310
4311
|
err = errnoErr(e1)
|
|
@@ -4322,7 +4323,7 @@ func GetFileVersionInfo(filename string, handle uint32, bufSize uint32, buffer u
|
|
|
4322
4323
|
}
|
|
4323
4324
|
|
|
4324
4325
|
func _GetFileVersionInfo(filename *uint16, handle uint32, bufSize uint32, buffer unsafe.Pointer) (err error) {
|
|
4325
|
-
r1, _, e1 := syscall.
|
|
4326
|
+
r1, _, e1 := syscall.SyscallN(procGetFileVersionInfoW.Addr(), uintptr(unsafe.Pointer(filename)), uintptr(handle), uintptr(bufSize), uintptr(buffer))
|
|
4326
4327
|
if r1 == 0 {
|
|
4327
4328
|
err = errnoErr(e1)
|
|
4328
4329
|
}
|
|
@@ -4339,7 +4340,7 @@ func VerQueryValue(block unsafe.Pointer, subBlock string, pointerToBufferPointer
|
|
|
4339
4340
|
}
|
|
4340
4341
|
|
|
4341
4342
|
func _VerQueryValue(block unsafe.Pointer, subBlock *uint16, pointerToBufferPointer unsafe.Pointer, bufSize *uint32) (err error) {
|
|
4342
|
-
r1, _, e1 := syscall.
|
|
4343
|
+
r1, _, e1 := syscall.SyscallN(procVerQueryValueW.Addr(), uintptr(block), uintptr(unsafe.Pointer(subBlock)), uintptr(pointerToBufferPointer), uintptr(unsafe.Pointer(bufSize)))
|
|
4343
4344
|
if r1 == 0 {
|
|
4344
4345
|
err = errnoErr(e1)
|
|
4345
4346
|
}
|
|
@@ -4347,7 +4348,7 @@ func _VerQueryValue(block unsafe.Pointer, subBlock *uint16, pointerToBufferPoint
|
|
|
4347
4348
|
}
|
|
4348
4349
|
|
|
4349
4350
|
func TimeBeginPeriod(period uint32) (err error) {
|
|
4350
|
-
r1, _, e1 := syscall.
|
|
4351
|
+
r1, _, e1 := syscall.SyscallN(proctimeBeginPeriod.Addr(), uintptr(period))
|
|
4351
4352
|
if r1 != 0 {
|
|
4352
4353
|
err = errnoErr(e1)
|
|
4353
4354
|
}
|
|
@@ -4355,7 +4356,7 @@ func TimeBeginPeriod(period uint32) (err error) {
|
|
|
4355
4356
|
}
|
|
4356
4357
|
|
|
4357
4358
|
func TimeEndPeriod(period uint32) (err error) {
|
|
4358
|
-
r1, _, e1 := syscall.
|
|
4359
|
+
r1, _, e1 := syscall.SyscallN(proctimeEndPeriod.Addr(), uintptr(period))
|
|
4359
4360
|
if r1 != 0 {
|
|
4360
4361
|
err = errnoErr(e1)
|
|
4361
4362
|
}
|
|
@@ -4363,7 +4364,7 @@ func TimeEndPeriod(period uint32) (err error) {
|
|
|
4363
4364
|
}
|
|
4364
4365
|
|
|
4365
4366
|
func WinVerifyTrustEx(hwnd HWND, actionId *GUID, data *WinTrustData) (ret error) {
|
|
4366
|
-
r0, _, _ := syscall.
|
|
4367
|
+
r0, _, _ := syscall.SyscallN(procWinVerifyTrustEx.Addr(), uintptr(hwnd), uintptr(unsafe.Pointer(actionId)), uintptr(unsafe.Pointer(data)))
|
|
4367
4368
|
if r0 != 0 {
|
|
4368
4369
|
ret = syscall.Errno(r0)
|
|
4369
4370
|
}
|
|
@@ -4371,12 +4372,12 @@ func WinVerifyTrustEx(hwnd HWND, actionId *GUID, data *WinTrustData) (ret error)
|
|
|
4371
4372
|
}
|
|
4372
4373
|
|
|
4373
4374
|
func FreeAddrInfoW(addrinfo *AddrinfoW) {
|
|
4374
|
-
syscall.
|
|
4375
|
+
syscall.SyscallN(procFreeAddrInfoW.Addr(), uintptr(unsafe.Pointer(addrinfo)))
|
|
4375
4376
|
return
|
|
4376
4377
|
}
|
|
4377
4378
|
|
|
4378
4379
|
func GetAddrInfoW(nodename *uint16, servicename *uint16, hints *AddrinfoW, result **AddrinfoW) (sockerr error) {
|
|
4379
|
-
r0, _, _ := syscall.
|
|
4380
|
+
r0, _, _ := syscall.SyscallN(procGetAddrInfoW.Addr(), uintptr(unsafe.Pointer(nodename)), uintptr(unsafe.Pointer(servicename)), uintptr(unsafe.Pointer(hints)), uintptr(unsafe.Pointer(result)))
|
|
4380
4381
|
if r0 != 0 {
|
|
4381
4382
|
sockerr = syscall.Errno(r0)
|
|
4382
4383
|
}
|
|
@@ -4384,15 +4385,23 @@ func GetAddrInfoW(nodename *uint16, servicename *uint16, hints *AddrinfoW, resul
|
|
|
4384
4385
|
}
|
|
4385
4386
|
|
|
4386
4387
|
func WSACleanup() (err error) {
|
|
4387
|
-
r1, _, e1 := syscall.
|
|
4388
|
+
r1, _, e1 := syscall.SyscallN(procWSACleanup.Addr())
|
|
4388
4389
|
if r1 == socket_error {
|
|
4389
4390
|
err = errnoErr(e1)
|
|
4390
4391
|
}
|
|
4391
4392
|
return
|
|
4392
4393
|
}
|
|
4393
4394
|
|
|
4395
|
+
func WSADuplicateSocket(s Handle, processID uint32, info *WSAProtocolInfo) (err error) {
|
|
4396
|
+
r1, _, e1 := syscall.SyscallN(procWSADuplicateSocketW.Addr(), uintptr(s), uintptr(processID), uintptr(unsafe.Pointer(info)))
|
|
4397
|
+
if r1 != 0 {
|
|
4398
|
+
err = errnoErr(e1)
|
|
4399
|
+
}
|
|
4400
|
+
return
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4394
4403
|
func WSAEnumProtocols(protocols *int32, protocolBuffer *WSAProtocolInfo, bufferLength *uint32) (n int32, err error) {
|
|
4395
|
-
r0, _, e1 := syscall.
|
|
4404
|
+
r0, _, e1 := syscall.SyscallN(procWSAEnumProtocolsW.Addr(), uintptr(unsafe.Pointer(protocols)), uintptr(unsafe.Pointer(protocolBuffer)), uintptr(unsafe.Pointer(bufferLength)))
|
|
4396
4405
|
n = int32(r0)
|
|
4397
4406
|
if n == -1 {
|
|
4398
4407
|
err = errnoErr(e1)
|
|
@@ -4405,7 +4414,7 @@ func WSAGetOverlappedResult(h Handle, o *Overlapped, bytes *uint32, wait bool, f
|
|
|
4405
4414
|
if wait {
|
|
4406
4415
|
_p0 = 1
|
|
4407
4416
|
}
|
|
4408
|
-
r1, _, e1 := syscall.
|
|
4417
|
+
r1, _, e1 := syscall.SyscallN(procWSAGetOverlappedResult.Addr(), uintptr(h), uintptr(unsafe.Pointer(o)), uintptr(unsafe.Pointer(bytes)), uintptr(_p0), uintptr(unsafe.Pointer(flags)))
|
|
4409
4418
|
if r1 == 0 {
|
|
4410
4419
|
err = errnoErr(e1)
|
|
4411
4420
|
}
|
|
@@ -4413,7 +4422,7 @@ func WSAGetOverlappedResult(h Handle, o *Overlapped, bytes *uint32, wait bool, f
|
|
|
4413
4422
|
}
|
|
4414
4423
|
|
|
4415
4424
|
func WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) {
|
|
4416
|
-
r1, _, e1 := syscall.
|
|
4425
|
+
r1, _, e1 := syscall.SyscallN(procWSAIoctl.Addr(), uintptr(s), uintptr(iocc), uintptr(unsafe.Pointer(inbuf)), uintptr(cbif), uintptr(unsafe.Pointer(outbuf)), uintptr(cbob), uintptr(unsafe.Pointer(cbbr)), uintptr(unsafe.Pointer(overlapped)), uintptr(completionRoutine))
|
|
4417
4426
|
if r1 == socket_error {
|
|
4418
4427
|
err = errnoErr(e1)
|
|
4419
4428
|
}
|
|
@@ -4421,7 +4430,7 @@ func WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbo
|
|
|
4421
4430
|
}
|
|
4422
4431
|
|
|
4423
4432
|
func WSALookupServiceBegin(querySet *WSAQUERYSET, flags uint32, handle *Handle) (err error) {
|
|
4424
|
-
r1, _, e1 := syscall.
|
|
4433
|
+
r1, _, e1 := syscall.SyscallN(procWSALookupServiceBeginW.Addr(), uintptr(unsafe.Pointer(querySet)), uintptr(flags), uintptr(unsafe.Pointer(handle)))
|
|
4425
4434
|
if r1 == socket_error {
|
|
4426
4435
|
err = errnoErr(e1)
|
|
4427
4436
|
}
|
|
@@ -4429,7 +4438,7 @@ func WSALookupServiceBegin(querySet *WSAQUERYSET, flags uint32, handle *Handle)
|
|
|
4429
4438
|
}
|
|
4430
4439
|
|
|
4431
4440
|
func WSALookupServiceEnd(handle Handle) (err error) {
|
|
4432
|
-
r1, _, e1 := syscall.
|
|
4441
|
+
r1, _, e1 := syscall.SyscallN(procWSALookupServiceEnd.Addr(), uintptr(handle))
|
|
4433
4442
|
if r1 == socket_error {
|
|
4434
4443
|
err = errnoErr(e1)
|
|
4435
4444
|
}
|
|
@@ -4437,7 +4446,7 @@ func WSALookupServiceEnd(handle Handle) (err error) {
|
|
|
4437
4446
|
}
|
|
4438
4447
|
|
|
4439
4448
|
func WSALookupServiceNext(handle Handle, flags uint32, size *int32, querySet *WSAQUERYSET) (err error) {
|
|
4440
|
-
r1, _, e1 := syscall.
|
|
4449
|
+
r1, _, e1 := syscall.SyscallN(procWSALookupServiceNextW.Addr(), uintptr(handle), uintptr(flags), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(querySet)))
|
|
4441
4450
|
if r1 == socket_error {
|
|
4442
4451
|
err = errnoErr(e1)
|
|
4443
4452
|
}
|
|
@@ -4445,7 +4454,7 @@ func WSALookupServiceNext(handle Handle, flags uint32, size *int32, querySet *WS
|
|
|
4445
4454
|
}
|
|
4446
4455
|
|
|
4447
4456
|
func WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) {
|
|
4448
|
-
r1, _, e1 := syscall.
|
|
4457
|
+
r1, _, e1 := syscall.SyscallN(procWSARecv.Addr(), uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
|
|
4449
4458
|
if r1 == socket_error {
|
|
4450
4459
|
err = errnoErr(e1)
|
|
4451
4460
|
}
|
|
@@ -4453,7 +4462,7 @@ func WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32
|
|
|
4453
4462
|
}
|
|
4454
4463
|
|
|
4455
4464
|
func WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) {
|
|
4456
|
-
r1, _, e1 := syscall.
|
|
4465
|
+
r1, _, e1 := syscall.SyscallN(procWSARecvFrom.Addr(), uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
|
|
4457
4466
|
if r1 == socket_error {
|
|
4458
4467
|
err = errnoErr(e1)
|
|
4459
4468
|
}
|
|
@@ -4461,7 +4470,7 @@ func WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *ui
|
|
|
4461
4470
|
}
|
|
4462
4471
|
|
|
4463
4472
|
func WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (err error) {
|
|
4464
|
-
r1, _, e1 := syscall.
|
|
4473
|
+
r1, _, e1 := syscall.SyscallN(procWSASend.Addr(), uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
|
|
4465
4474
|
if r1 == socket_error {
|
|
4466
4475
|
err = errnoErr(e1)
|
|
4467
4476
|
}
|
|
@@ -4469,7 +4478,7 @@ func WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32,
|
|
|
4469
4478
|
}
|
|
4470
4479
|
|
|
4471
4480
|
func WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (err error) {
|
|
4472
|
-
r1, _, e1 := syscall.
|
|
4481
|
+
r1, _, e1 := syscall.SyscallN(procWSASendTo.Addr(), uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(to)), uintptr(tolen), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
|
|
4473
4482
|
if r1 == socket_error {
|
|
4474
4483
|
err = errnoErr(e1)
|
|
4475
4484
|
}
|
|
@@ -4477,7 +4486,7 @@ func WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32
|
|
|
4477
4486
|
}
|
|
4478
4487
|
|
|
4479
4488
|
func WSASocket(af int32, typ int32, protocol int32, protoInfo *WSAProtocolInfo, group uint32, flags uint32) (handle Handle, err error) {
|
|
4480
|
-
r0, _, e1 := syscall.
|
|
4489
|
+
r0, _, e1 := syscall.SyscallN(procWSASocketW.Addr(), uintptr(af), uintptr(typ), uintptr(protocol), uintptr(unsafe.Pointer(protoInfo)), uintptr(group), uintptr(flags))
|
|
4481
4490
|
handle = Handle(r0)
|
|
4482
4491
|
if handle == InvalidHandle {
|
|
4483
4492
|
err = errnoErr(e1)
|
|
@@ -4486,7 +4495,7 @@ func WSASocket(af int32, typ int32, protocol int32, protoInfo *WSAProtocolInfo,
|
|
|
4486
4495
|
}
|
|
4487
4496
|
|
|
4488
4497
|
func WSAStartup(verreq uint32, data *WSAData) (sockerr error) {
|
|
4489
|
-
r0, _, _ := syscall.
|
|
4498
|
+
r0, _, _ := syscall.SyscallN(procWSAStartup.Addr(), uintptr(verreq), uintptr(unsafe.Pointer(data)))
|
|
4490
4499
|
if r0 != 0 {
|
|
4491
4500
|
sockerr = syscall.Errno(r0)
|
|
4492
4501
|
}
|
|
@@ -4494,7 +4503,7 @@ func WSAStartup(verreq uint32, data *WSAData) (sockerr error) {
|
|
|
4494
4503
|
}
|
|
4495
4504
|
|
|
4496
4505
|
func bind(s Handle, name unsafe.Pointer, namelen int32) (err error) {
|
|
4497
|
-
r1, _, e1 := syscall.
|
|
4506
|
+
r1, _, e1 := syscall.SyscallN(procbind.Addr(), uintptr(s), uintptr(name), uintptr(namelen))
|
|
4498
4507
|
if r1 == socket_error {
|
|
4499
4508
|
err = errnoErr(e1)
|
|
4500
4509
|
}
|
|
@@ -4502,7 +4511,7 @@ func bind(s Handle, name unsafe.Pointer, namelen int32) (err error) {
|
|
|
4502
4511
|
}
|
|
4503
4512
|
|
|
4504
4513
|
func Closesocket(s Handle) (err error) {
|
|
4505
|
-
r1, _, e1 := syscall.
|
|
4514
|
+
r1, _, e1 := syscall.SyscallN(procclosesocket.Addr(), uintptr(s))
|
|
4506
4515
|
if r1 == socket_error {
|
|
4507
4516
|
err = errnoErr(e1)
|
|
4508
4517
|
}
|
|
@@ -4510,7 +4519,7 @@ func Closesocket(s Handle) (err error) {
|
|
|
4510
4519
|
}
|
|
4511
4520
|
|
|
4512
4521
|
func connect(s Handle, name unsafe.Pointer, namelen int32) (err error) {
|
|
4513
|
-
r1, _, e1 := syscall.
|
|
4522
|
+
r1, _, e1 := syscall.SyscallN(procconnect.Addr(), uintptr(s), uintptr(name), uintptr(namelen))
|
|
4514
4523
|
if r1 == socket_error {
|
|
4515
4524
|
err = errnoErr(e1)
|
|
4516
4525
|
}
|
|
@@ -4527,7 +4536,7 @@ func GetHostByName(name string) (h *Hostent, err error) {
|
|
|
4527
4536
|
}
|
|
4528
4537
|
|
|
4529
4538
|
func _GetHostByName(name *byte) (h *Hostent, err error) {
|
|
4530
|
-
r0, _, e1 := syscall.
|
|
4539
|
+
r0, _, e1 := syscall.SyscallN(procgethostbyname.Addr(), uintptr(unsafe.Pointer(name)))
|
|
4531
4540
|
h = (*Hostent)(unsafe.Pointer(r0))
|
|
4532
4541
|
if h == nil {
|
|
4533
4542
|
err = errnoErr(e1)
|
|
@@ -4536,7 +4545,7 @@ func _GetHostByName(name *byte) (h *Hostent, err error) {
|
|
|
4536
4545
|
}
|
|
4537
4546
|
|
|
4538
4547
|
func getpeername(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) {
|
|
4539
|
-
r1, _, e1 := syscall.
|
|
4548
|
+
r1, _, e1 := syscall.SyscallN(procgetpeername.Addr(), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
4540
4549
|
if r1 == socket_error {
|
|
4541
4550
|
err = errnoErr(e1)
|
|
4542
4551
|
}
|
|
@@ -4553,7 +4562,7 @@ func GetProtoByName(name string) (p *Protoent, err error) {
|
|
|
4553
4562
|
}
|
|
4554
4563
|
|
|
4555
4564
|
func _GetProtoByName(name *byte) (p *Protoent, err error) {
|
|
4556
|
-
r0, _, e1 := syscall.
|
|
4565
|
+
r0, _, e1 := syscall.SyscallN(procgetprotobyname.Addr(), uintptr(unsafe.Pointer(name)))
|
|
4557
4566
|
p = (*Protoent)(unsafe.Pointer(r0))
|
|
4558
4567
|
if p == nil {
|
|
4559
4568
|
err = errnoErr(e1)
|
|
@@ -4576,7 +4585,7 @@ func GetServByName(name string, proto string) (s *Servent, err error) {
|
|
|
4576
4585
|
}
|
|
4577
4586
|
|
|
4578
4587
|
func _GetServByName(name *byte, proto *byte) (s *Servent, err error) {
|
|
4579
|
-
r0, _, e1 := syscall.
|
|
4588
|
+
r0, _, e1 := syscall.SyscallN(procgetservbyname.Addr(), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(proto)))
|
|
4580
4589
|
s = (*Servent)(unsafe.Pointer(r0))
|
|
4581
4590
|
if s == nil {
|
|
4582
4591
|
err = errnoErr(e1)
|
|
@@ -4585,7 +4594,7 @@ func _GetServByName(name *byte, proto *byte) (s *Servent, err error) {
|
|
|
4585
4594
|
}
|
|
4586
4595
|
|
|
4587
4596
|
func getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) {
|
|
4588
|
-
r1, _, e1 := syscall.
|
|
4597
|
+
r1, _, e1 := syscall.SyscallN(procgetsockname.Addr(), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
|
4589
4598
|
if r1 == socket_error {
|
|
4590
4599
|
err = errnoErr(e1)
|
|
4591
4600
|
}
|
|
@@ -4593,7 +4602,7 @@ func getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) {
|
|
|
4593
4602
|
}
|
|
4594
4603
|
|
|
4595
4604
|
func Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) {
|
|
4596
|
-
r1, _, e1 := syscall.
|
|
4605
|
+
r1, _, e1 := syscall.SyscallN(procgetsockopt.Addr(), uintptr(s), uintptr(level), uintptr(optname), uintptr(unsafe.Pointer(optval)), uintptr(unsafe.Pointer(optlen)))
|
|
4597
4606
|
if r1 == socket_error {
|
|
4598
4607
|
err = errnoErr(e1)
|
|
4599
4608
|
}
|
|
@@ -4601,7 +4610,7 @@ func Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int3
|
|
|
4601
4610
|
}
|
|
4602
4611
|
|
|
4603
4612
|
func listen(s Handle, backlog int32) (err error) {
|
|
4604
|
-
r1, _, e1 := syscall.
|
|
4613
|
+
r1, _, e1 := syscall.SyscallN(proclisten.Addr(), uintptr(s), uintptr(backlog))
|
|
4605
4614
|
if r1 == socket_error {
|
|
4606
4615
|
err = errnoErr(e1)
|
|
4607
4616
|
}
|
|
@@ -4609,7 +4618,7 @@ func listen(s Handle, backlog int32) (err error) {
|
|
|
4609
4618
|
}
|
|
4610
4619
|
|
|
4611
4620
|
func Ntohs(netshort uint16) (u uint16) {
|
|
4612
|
-
r0, _, _ := syscall.
|
|
4621
|
+
r0, _, _ := syscall.SyscallN(procntohs.Addr(), uintptr(netshort))
|
|
4613
4622
|
u = uint16(r0)
|
|
4614
4623
|
return
|
|
4615
4624
|
}
|
|
@@ -4619,7 +4628,7 @@ func recvfrom(s Handle, buf []byte, flags int32, from *RawSockaddrAny, fromlen *
|
|
|
4619
4628
|
if len(buf) > 0 {
|
|
4620
4629
|
_p0 = &buf[0]
|
|
4621
4630
|
}
|
|
4622
|
-
r0, _, e1 := syscall.
|
|
4631
|
+
r0, _, e1 := syscall.SyscallN(procrecvfrom.Addr(), uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
|
|
4623
4632
|
n = int32(r0)
|
|
4624
4633
|
if n == -1 {
|
|
4625
4634
|
err = errnoErr(e1)
|
|
@@ -4632,7 +4641,7 @@ func sendto(s Handle, buf []byte, flags int32, to unsafe.Pointer, tolen int32) (
|
|
|
4632
4641
|
if len(buf) > 0 {
|
|
4633
4642
|
_p0 = &buf[0]
|
|
4634
4643
|
}
|
|
4635
|
-
r1, _, e1 := syscall.
|
|
4644
|
+
r1, _, e1 := syscall.SyscallN(procsendto.Addr(), uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(tolen))
|
|
4636
4645
|
if r1 == socket_error {
|
|
4637
4646
|
err = errnoErr(e1)
|
|
4638
4647
|
}
|
|
@@ -4640,7 +4649,7 @@ func sendto(s Handle, buf []byte, flags int32, to unsafe.Pointer, tolen int32) (
|
|
|
4640
4649
|
}
|
|
4641
4650
|
|
|
4642
4651
|
func Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) {
|
|
4643
|
-
r1, _, e1 := syscall.
|
|
4652
|
+
r1, _, e1 := syscall.SyscallN(procsetsockopt.Addr(), uintptr(s), uintptr(level), uintptr(optname), uintptr(unsafe.Pointer(optval)), uintptr(optlen))
|
|
4644
4653
|
if r1 == socket_error {
|
|
4645
4654
|
err = errnoErr(e1)
|
|
4646
4655
|
}
|
|
@@ -4648,7 +4657,7 @@ func Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32
|
|
|
4648
4657
|
}
|
|
4649
4658
|
|
|
4650
4659
|
func shutdown(s Handle, how int32) (err error) {
|
|
4651
|
-
r1, _, e1 := syscall.
|
|
4660
|
+
r1, _, e1 := syscall.SyscallN(procshutdown.Addr(), uintptr(s), uintptr(how))
|
|
4652
4661
|
if r1 == socket_error {
|
|
4653
4662
|
err = errnoErr(e1)
|
|
4654
4663
|
}
|
|
@@ -4656,7 +4665,7 @@ func shutdown(s Handle, how int32) (err error) {
|
|
|
4656
4665
|
}
|
|
4657
4666
|
|
|
4658
4667
|
func socket(af int32, typ int32, protocol int32) (handle Handle, err error) {
|
|
4659
|
-
r0, _, e1 := syscall.
|
|
4668
|
+
r0, _, e1 := syscall.SyscallN(procsocket.Addr(), uintptr(af), uintptr(typ), uintptr(protocol))
|
|
4660
4669
|
handle = Handle(r0)
|
|
4661
4670
|
if handle == InvalidHandle {
|
|
4662
4671
|
err = errnoErr(e1)
|
|
@@ -4665,7 +4674,7 @@ func socket(af int32, typ int32, protocol int32) (handle Handle, err error) {
|
|
|
4665
4674
|
}
|
|
4666
4675
|
|
|
4667
4676
|
func WTSEnumerateSessions(handle Handle, reserved uint32, version uint32, sessions **WTS_SESSION_INFO, count *uint32) (err error) {
|
|
4668
|
-
r1, _, e1 := syscall.
|
|
4677
|
+
r1, _, e1 := syscall.SyscallN(procWTSEnumerateSessionsW.Addr(), uintptr(handle), uintptr(reserved), uintptr(version), uintptr(unsafe.Pointer(sessions)), uintptr(unsafe.Pointer(count)))
|
|
4669
4678
|
if r1 == 0 {
|
|
4670
4679
|
err = errnoErr(e1)
|
|
4671
4680
|
}
|
|
@@ -4673,12 +4682,12 @@ func WTSEnumerateSessions(handle Handle, reserved uint32, version uint32, sessio
|
|
|
4673
4682
|
}
|
|
4674
4683
|
|
|
4675
4684
|
func WTSFreeMemory(ptr uintptr) {
|
|
4676
|
-
syscall.
|
|
4685
|
+
syscall.SyscallN(procWTSFreeMemory.Addr(), uintptr(ptr))
|
|
4677
4686
|
return
|
|
4678
4687
|
}
|
|
4679
4688
|
|
|
4680
4689
|
func WTSQueryUserToken(session uint32, token *Token) (err error) {
|
|
4681
|
-
r1, _, e1 := syscall.
|
|
4690
|
+
r1, _, e1 := syscall.SyscallN(procWTSQueryUserToken.Addr(), uintptr(session), uintptr(unsafe.Pointer(token)))
|
|
4682
4691
|
if r1 == 0 {
|
|
4683
4692
|
err = errnoErr(e1)
|
|
4684
4693
|
}
|