View Issue Details

IDProjectCategoryView StatusLast Update
0035115FPCRTLpublic2019-03-02 22:10
Reporter440bxAssigned ToMarco van de Voort 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformWindowsOSWindowsOS Version2K and up
Product Version3.0.4Product Build 
Target VersionFixed in Version3.3.1 
Summary0035115: The kernel32 function GetComputerNameEx and related types/constants are missing.
DescriptionThe title says it all. Tested definitions ("A" version only) are:

type
  COMPUTER_NAME_FORMAT =
  (
    ComputerNameNetBIOS,
    ComputerNameDnsHostname,
    ComputerNameDnsDomain,
    ComputerNameDnsFullyQualified,
    ComputerNamePhysicalNetBIOS,
    ComputerNamePhysicalDnsHostname,
    ComputerNamePhysicalDnsDomain,
    ComputerNamePhysicalDnsFullyQualified,
    ComputerNameMax
  );
  TCOMPUTER_NAME_FORMAT = COMPUTER_NAME_FORMAT;


function GetComputerNameEx(NameType : DWORD; // a COMPUTER_NAME_FORMAT
                       out Buffer;
                       out Size : DWORD)
         : BOOL; stdcall; external kernel32 name 'GetComputerNameExA';

Steps To ReproduceAttempt to compile a program that calls this function.
TagsNo tags attached.
Fixed in Revision41562
FPCOldBugId
FPCTarget
Attached Files

Activities

Marco van de Voort

2019-03-02 22:10

manager   ~0114586

I did find A and W versions in the headers. Added.

Issue History

Date Modified Username Field Change
2019-02-19 05:01 440bx New Issue
2019-03-02 22:10 Marco van de Voort Fixed in Revision => 41562
2019-03-02 22:10 Marco van de Voort Note Added: 0114586
2019-03-02 22:10 Marco van de Voort Status new => resolved
2019-03-02 22:10 Marco van de Voort Fixed in Version => 3.3.1
2019-03-02 22:10 Marco van de Voort Resolution open => fixed
2019-03-02 22:10 Marco van de Voort Assigned To => Marco van de Voort