Re: [Win32Lib] trying to wrap GetDriveType
- Posted by CChris <christian.cuvier at ag?iculture.gouv?fr> Jan 28, 2008
- 736 views
Dan Moyer wrote: > > I'm trying to wrap GetDriveType API, and don't really know what I'm doing; > here's what I tried, and the result is error: "Couldn't link to C function > 'GetDriveType'" > > Can someone show me how to do it right?? > > (Below the following code is what I found about "GetDriveType") > > Dan Moyer > > }}} <eucode> > > include win32lib.ew > integer dummy > > constant xGetDriveType = registerw32Function(kernel32,"GetDriveType", ^^^^ Usinge DEMO\Win32^dsearch.exw, you'd see that the API name is "GetDriveTypeA". Add that 'A', which stands for ANSI, and everything will be fine. On say a Middle/Far Eastern build of Windows, you'd use 'W' instead (Unicode build of the dll). CChris