Share this post

Link to post

Share on other sites

trancexx 927

trancexx 927

First parameter for that function is (link): The type of name to be retrieved. This parameter is a value from the COMPUTER_NAME_FORMAT enumeration type

Enumeration means number. In AutoIt it's "dword" or "int".

Then following the link for COMPUTER_NAME_FORMAT you would see that the value that you want, ComputerNamePhysicalDnsFullyQualified, is 1 (enum starts at 0 unless otherwise specified).

Second thing is buffer to receive data to. AutoIt have "str" dllcall type. It's a buffer that's internally made for strings with DllCall function. It's size is minimum 65536 characters. It's wise to use it in these cases.

Share this post

Link to post

Share on other sites

jcpetu 1

jcpetu 1

First parameter for that function is (link): The type of name to be retrieved. This parameter is a value from the COMPUTER_NAME_FORMAT enumeration type

Enumeration means number. In AutoIt it's "dword" or "int".

Then following the link for COMPUTER_NAME_FORMAT you would see that the value that you want, ComputerNamePhysicalDnsFullyQualified, is 1 (enum starts at 0 unless otherwise specified).

Second thing is buffer to receive data to. AutoIt have "str" dllcall type. It's a buffer that's internally made for strings with DllCall function. It's size is minimum 65536 characters. It's wise to use it in these cases.