This function takes two arguments. The first argument is a string and is passed ByVal. The second argument is a long value and is passed ByRef. Wait a minute! What are these ByVal and ByRef arguments and what is their significance? We'll see that in a minute. Now let us see the argument list:
-
lpBuffer
- Points to a buffer to receive the null-terminated character string containing the computer name. -
nSize
- Points to a variable that specifies the maximum size, in characters, of the buffer. This value should be large enough to containMAX_COMPUTERNAME_LENGTH + 1
characters.
Comments