Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f1f830ce
Commit
f1f830ce
authored
Oct 17, 1998
by
Petter Reinholdtsen
Committed by
Alexandre Julliard
Oct 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New file to test DRIVE_GetLabel.
parent
2abe47bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
Makefile.in
libtest/Makefile.in
+6
-2
volinfo.c
libtest/volinfo.c
+28
-0
No files found.
libtest/Makefile.in
View file @
f1f830ce
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
none
RCFLAGS
=
-w32
-h
PROGRAMS
=
expand
hello hello2 hello3 hello4 hello5 new rolex
PROGRAMS
=
expand
hello hello2 hello3 hello4 hello5 new rolex
volinfo
ALL_LIBS
=
$(WINELIB)
$(X_LIBS)
$(XPM_LIB)
$(XLIB)
$(LIBS)
C_SRCS
=
\
...
...
@@ -15,7 +15,8 @@ C_SRCS = \
hello4.c
\
hello5.c
\
new.c
\
rolex.c
rolex.c
\
volinfo.c
RC_SRCS
=
\
hello3res.rc
...
...
@@ -52,4 +53,7 @@ new: new.o
rolex
:
rolex.o
$(CC)
-o
rolex rolex.o
$(LDOPTIONS)
$(ALL_LIBS)
volinfo
:
volinfo.o
$(CC)
-o
volinfo volinfo.o
$(LDOPTIONS)
$(ALL_LIBS)
### Dependencies:
libtest/volinfo.c
0 → 100644
View file @
f1f830ce
/*
* This test program was copied from documentation/cdrom-label
*/
#include <windows.h>
#include <stdio.h>
#include <string.h>
/* for strcat() */
int
WinMain
(
int
argc
,
char
**
argv
[])
{
char
drive
,
root
[]
=
"C:
\\
"
,
label
[
1002
],
fsname
[
1002
];
DWORD
serial
,
flags
,
filenamelen
,
labellen
=
1000
,
fsnamelen
=
1000
;
printf
(
"Drive Serial Flags Filename-Length "
"Label Fsname
\n
"
);
for
(
drive
=
'C'
;
drive
<=
'Z'
;
drive
++
)
{
root
[
0
]
=
drive
;
if
(
GetVolumeInformation
(
root
,
label
,
labellen
,
&
serial
,
&
filenamelen
,
&
flags
,
fsname
,
fsnamelen
))
{
strcat
(
label
,
"
\"
"
);
strcat
(
fsname
,
"
\"
"
);
printf
(
"%c:
\\
0x%08lx 0x%08lx %15ld
\"
%-20s
\"
%-20s
\n
"
,
drive
,
(
long
)
serial
,
(
long
)
flags
,
(
long
)
filenamelen
,
label
,
fsname
);
}
}
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment