Hi Scott!
You're welcome with your questions here ;))
You haven't define properly the prototype, so I answer for you:
declare InitiateSystemShutdown in Win32Api;
string @,;
string @,;
string,;
integer
and the second note: you SHOULD pass the first and the second param by
reference.
As the third param you can pass replicate(chr(0),4)
HTH
>I hope this isn't to much to ask, I've just started using the API
>functions
>under VFP and don't know it too well yet. I've tried this, but it doesn't
>work
>Am I not mapping types correctly?
>
>Declare integer InitiateSystemShutdown in win32api as DownIt
>STRING,STRING,Long,INTeger ,INTeger
>
>Does the STRING Keyword map back to LPTSTR?
>Does INTEGER Keyword Map back to BOOL?
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer