|
操作系统:WIN7
! X) N7 f* E6 g/ {+ w
8 ?, g/ k8 Y* A) l' n1 b2 Oug版本:7.5
" R5 s' \; U% c" f4 x9 Y, G; I$ z2 L5 }& F
编程平台:VS2008
9 }! ?# P" O# `, T
* S* x3 c6 C! w0 f
% K2 B9 J, S, U" F) e+ M
# i0 G; k1 e& d- {/ c
4 _- e# L7 f B) c6 j" H7 ]. J- C v% ?! c3 F; L
D+ ~! z$ M; A0 N& ?- P
. Y! `# E8 e( x B/ P源代码:
7 v: c# }8 z- e4 C! m' \( H6 r C" B Y o" n. H* }8 L
#include<uf.h>1 |' J- z4 O+ b' z( }
#include <uf_part_types.h>
" j' A; Z8 {0 F) C8 C" U5 d5 o: Z6 a* \7 o+ P4 P/ U6 R) }% ]
Y' a, v8 N N" c/ R- E
extern void ufusr(char *param,int *retcod,int param_len){% J% n5 F4 r8 A0 A7 y
! t# J. a7 U% ?8 s
tag_t part;
0 `* L& C3 n) X, A1 e2 d
7 \9 w; H" O2 @* n& [ const char part_name[]="e:\\123.prt";
1 Q) q0 [& n5 P1 g
0 J9 C$ B2 {4 I, W& ` if(UF_initialize()!=0)
2 \& Z3 e S9 y4 M$ R( g9 p
0 f+ s. V# F- O# ~2 N) o2 f/ V- I return;1 v$ ^, P. P/ h' a0 d! A
7 h/ Q6 N/ o! b: d
UF_PART_new(part_name,1, &part );
1 L" y) w- C0 t* c7 K
, V5 [6 J6 y# ~ c9 R/ ] UF_terminate();! y; J3 G9 t* H3 g
( t* G* m( w6 m/ b }5 p, w4 m, B2 }
/ H' z* e' Z2 u' z6 l* F8 ` 7 ]! R" ~3 Z" ^% |1 v
' t4 Z- F; Y7 p, o3 N) _. c
, K2 h3 @! Y, u% R! X, s0 N3 N
2 h3 F1 ^3 k: I# C0 P! |0 Y4 K4 z
|
|