Declaration
void (_stdcall *GetApplDir)(char *Dir);
Parameters
ProtNameA pointer to a buffer with sufficient size (the maximum path length in Windows is 256 characters)
Description

The function returns to the buffer pointed to by the Dir parameter the application directory of the current D2000 application without the trailing slash (e.g. D:\D2000\D2000_APP\Demo).
Note: if the buffer is not big enough (number of characters in the path of the application directory + terminating zero), there will be overflow and writing outside the allocated buffer.

Napíšte komentár