unsafe public static string GetDriverVersion() { VERSION_INFO_STRUC v = new VERSION_INFO_STRUC(); dpGetDriverVersion(&v); return(v.dwDriverVersion + "." + v.dwDriverRevision + "." + v.dwDriverRelease + "." + v.dwDriverBuildNum); }
private static unsafe extern int dpGetDriverVersion(VERSION_INFO_STRUC *pDriverVersionInfo);
public static unsafe string GetDriverVersion() { VERSION_INFO_STRUC v = new VERSION_INFO_STRUC(); dpGetDriverVersion(&v); return v.dwDriverVersion+"."+v.dwDriverRevision+"."+ v.dwDriverRelease+"."+v.dwDriverBuildNum; }