I am completely new to the Windows CE / Platform builder. I am trying to test
the API call CoFileTimeNow:
http://msdn.microsoft.com/en-us/library/aa908568.aspx

So far I have the following code in my Application project in my platform
builder:
#include "stdafx.h"

int main (int argc, TCHAR *argv [], TCHAR* envp [])
{
HRESULT CoFileTimeNow(
FILETIME* lpFileTime
);
printf("finished running the program\n");
return 0;
}
The above program compiles and run fines (without any errors) on my target
platform but I am not sure if it actually returned something from the
CoFileTimeNow API call. How do I verify it? Can I do some printf statement to
actually see the time value?

Thanks

Re: CoFileTimeNow API call Return value on CE 5 by Bruce

Bruce
Mon Aug 18 20:03:20 PDT 2008

Huh? You aren't actually calling CoFileTimeNow in your application. All
that you did was to define the function prototype.

The questions, and your code, suggest that you need to study a C programming
book.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"modest" <modest@discussions.microsoft.com> wrote in message
news:1C83E5A2-2978-4CFA-B2DC-1B51C031C862@microsoft.com...
>I am completely new to the Windows CE / Platform builder. I am trying to
>test
> the API call CoFileTimeNow:
> http://msdn.microsoft.com/en-us/library/aa908568.aspx
>
> So far I have the following code in my Application project in my platform
> builder:
> #include "stdafx.h"
>
> int main (int argc, TCHAR *argv [], TCHAR* envp [])
> {
> HRESULT CoFileTimeNow(
> FILETIME* lpFileTime
> );
> printf("finished running the program\n");
> return 0;
> }
> The above program compiles and run fines (without any errors) on my target
> platform but I am not sure if it actually returned something from the
> CoFileTimeNow API call. How do I verify it? Can I do some printf statement
> to
> actually see the time value?
>
> Thanks
>