Announcement

Collapse
No announcement yet.

win32api.inc whoops ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • win32api.inc whoops ?

    Hi PB support, my win32api.inc (dated 30/8/20010 has the following...

    DECLARE SUB GetSystemTimeAsFileTime LIB "KERNEL32.DLL" ALIAS "GetSystemTimeAsFileTime" (lpFileTime AS FILETIME)

    Am I missing something or should it be a FUNCTION to return a value ?

    Adrian

    ------------------

  • #2
    The declare is correct. It is a VOID function, which translates to a SUB in PowerBASIC.

    From WIN32.HLP:
    VOID GetSystemTimeAsFileTime(
    LPFILETIME lpSystemTimeAsFileTime // pointer to a file time structure
    );
    ...
    Return Values
    This function does not return a value.


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Hi Lance, excuse my stupidity but I didn't spot the 'lp' in the declaration ! But it makes sense looking at the 'C' coding

      Adrian

      ------------------

      Comment

      Working...
      X