No navigation frame on the left?  Click here.

NetRemoteTOD

 

NetRemoteTOD() is woefully underdocumented. In particular, it expects the address of a pointer which you supply (like this: BYTE *p; NetRemoteTOD( NULL, &p );) and returns the address of a structure in that pointer (such that you can access its members with TIME_OF_DAY_INFO *q; q = (TIME_OF_DAY_INFO *) p; q->tod_weekday ...;). Now, all other functions which work this way expect you to free the returned structure with a call to NetApiBufferFree( p ), and their documentation says so. The documentation for NetRemoteTOD(), however, says nothing about that, nothing at all. Good luck!

nrt.c, 1 KB