Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 107
    • Issues 107
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #10105

Update various WIN32-API functions to be wide-string aware.

Several NT API functions in Pike currently use the *A variants rather than the *W variants of functions. Eg _system.LookupAccountName() uses LookupAccountNameA() rather than LookupAccountNameW().

Non-exhaustive list of used NT functions:

  • AcquireCredentialsHandleA
  • CreateFileA
  • ExpandEnvironmentStringsA
  • GetNamedSecurityInfoA
  • InetNtopA
  • LogonUserA
  • LookupAccountNameA
  • LookupAccountSidA
  • MoveFileExA
  • QueryContextAttributesA
  • QueryDosDeviceA
  • QuerySecurityPackageInfoA
  • RegEnumKeyExA
  • RegEnumValueA
  • RegOpenKeyExA
  • RegQueryValueExA
  • SetNamedSecurityInfoA

Update the code to be wide-string aware.

NB: Some of the above are currently accessed via aliases that look at UNICODE (and thus do not have an explicit A-suffix in the code).

Edited May 04, 2023 by Henrik (Grubba) Grubbström
Assignee
Assign to
Time tracking