为什么我无法使用这个API函数?
我想要用getsystemdirectory这个api函数来得到当前是哪个操作系统,但是总是出错bad runtime fuction reference,我把kernel32.dll拷到当前目录下也不行。很郁闷,我的外部函数声明如下:
Function uint GetSystemDirectoryA (ref string dirtext , uint textlen) LIBRARY " kernel32.dll"
请大家帮忙告诉我是怎么回事,或者告诉我另外的能够判别当前是哪个操作系统的方法