| || |
GetShortPathName in kernel32.dll get RPC ERROR
i need the function "GetShortPathName" from the kernel32.dll. i tried a lot of variations, but i still get the RPC error.
My simple code looks like this:
extern long GetShortPathName(in string, out string<1024>, in long);
# that what the API says!
# LPCTSTR lpszLongPath, (in)
# LPTSTR lpszShortPath, (out)
# DWORD cchBuffer (in)
szPath = "F:\Program Files\MainApplication\TestApp";
nLength = 256;
rc = GetShortPathName(szPath, szShortPath, nLength);
pause ("RC ist: "+ rc);
I tried changing the size in the extern-state, (empty 256, etc), also the size of nLength.
After so many different ways without any other result then the RPC-error, i need some help.
Re: GetShortPathName in kernel32.dll get RPC ERROR
i´m Sorry, i posted it in the wrong category!, Can someone CLOSE this from the LoadRunner-Page. It belongs to the Winrunner-category. and i´ll copy ot to there!