Here my code ...HANDLE WINAPI WIMCreateFile( LPWSTR lpszWimPath, DWORD dwDesiredAccess, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, DWORD dwCompressionType, LPDWORD lpdwCreationResult );
I dont know if its even possible to call function from the wimgapi. Thanksuse Win32::API; use Data::Dumper; use FileHandle; #Open Filehandler $fh = new FileHandle; if ($fh->open("< C:\\data.wim")) { $fh->close; } my $wimfile = new Win32::API("wimgapi", "WIMCreateFile", ['P','C','C', +'C','C','C'], 'N'); my $value = $wimfile->Call($fh,WIM_GENERIC_WRITE,WIM_OPEN_EXISTING,WIM +_FLAG_VERIFY,WIM_COMPRESS_NONE,WIM_OPENED_EXISTING); print $value; #Returns: # 0 print Dumper($wimfile); #Returns: # $VAR1 = bless( { # 'out' => 1, # 'dll' => 1940783104, # 'procname' => 'WIMCreateFile', # 'proc' => 1940839096, # 'dllname' => 'wimgapi', # 'in' => [ # 2, # 6, # 6, # 6, # 6, # 6 # ] # }, 'Win32::API' ); # I: value is an integer (int) # N: value is a number (long) # F: value is a floating point number (float) # D: value is a double precision number (double) # C: value is a char (char) # P: value is a pointer (to a string, structure, etc...) # S: value is a Win32::API::Struct object (see below) # K: value is a Win32::API::Callback object (see Win32::API::Callback)
In reply to Use Windows wimgapi dll by iea
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |