Library tutorials & articles

API Programming Series #2

Arguments

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 contain MAX_COMPUTERNAME_LENGTH + 1 characters.

Comments

  1. 29 May 2003 at 17:00

    The current release of the ApiViewer can now be found here:
    http://www.activevb.de/rubriken/apiviewer/index-apiviewereng.html


    or (German):
    http://www.ApiViewer.de

  2. 17 Dec 2002 at 12:44
    Nice job!! I really like the resource links and continued learning suggestions. I can't wait til my site is ready, so I can give back to the community. Stay Tuned!!
    charcoal
  3. 20 Nov 2002 at 02:25

    i'm faithfully following his series.

  4. 19 Nov 2002 at 11:46

    he's already posted part 4... i've just gotta get around to publishing 'em

  5. 19 Nov 2002 at 07:10

    i thought he was never gonna come back

  6. 01 Jan 1999 at 00:00

    This thread is for discussions of API Programming Series #2.

Leave a comment

Sign in or Join us (it's free).

Sreejath S. Warrier

Related discussion

Related podcasts

  • Christian Beauclair

    14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...

We'd love to hear what you think! Submit ideas or give us feedback