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
6f3228a5
Commit
6f3228a5
authored
Apr 11, 2005
by
Juan Lang
Committed by
Alexandre Julliard
Apr 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement SetupDiClassNameFromGuidExA.
parent
0a1481a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
devinst.c
dlls/setupapi/devinst.c
+19
-2
cfgmgr32.h
include/cfgmgr32.h
+4
-0
No files found.
dlls/setupapi/devinst.c
View file @
6f3228a5
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include "setupapi.h"
#include "setupapi.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
#include "cfgmgr32.h"
#include "initguid.h"
#include "initguid.h"
#include "winioctl.h"
#include "winioctl.h"
#include "rpc.h"
#include "rpc.h"
...
@@ -469,8 +470,24 @@ BOOL WINAPI SetupDiClassNameFromGuidExA(
...
@@ -469,8 +470,24 @@ BOOL WINAPI SetupDiClassNameFromGuidExA(
PCSTR
MachineName
,
PCSTR
MachineName
,
PVOID
Reserved
)
PVOID
Reserved
)
{
{
FIXME
(
"
\n
"
);
WCHAR
ClassNameW
[
MAX_CLASS_NAME_LEN
];
return
FALSE
;
LPWSTR
MachineNameW
=
NULL
;
BOOL
ret
;
if
(
MachineName
)
MachineNameW
=
MultiByteToUnicode
(
MachineName
,
CP_ACP
);
ret
=
SetupDiClassNameFromGuidExW
(
ClassGuid
,
ClassNameW
,
MAX_CLASS_NAME_LEN
,
NULL
,
MachineNameW
,
Reserved
);
if
(
ret
)
{
int
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
ClassNameW
,
-
1
,
ClassName
,
ClassNameSize
,
NULL
,
NULL
);
if
(
!
ClassNameSize
&&
RequiredSize
)
*
RequiredSize
=
len
;
}
MyFree
(
MachineNameW
);
return
ret
;
}
}
/***********************************************************************
/***********************************************************************
...
...
include/cfgmgr32.h
View file @
6f3228a5
...
@@ -23,6 +23,10 @@ typedef DWORD CONFIGRET;
...
@@ -23,6 +23,10 @@ typedef DWORD CONFIGRET;
#define CR_SUCCESS 0
#define CR_SUCCESS 0
#define MAX_CLASS_NAME_LEN 32
#define MAX_GUID_STRING_LEN 39
#define MAX_PROFILE_LEN 80
CONFIGRET
WINAPI
CM_Get_Device_ID_ListA
(
PCSTR
,
PCHAR
,
ULONG
,
ULONG
);
CONFIGRET
WINAPI
CM_Get_Device_ID_ListA
(
PCSTR
,
PCHAR
,
ULONG
,
ULONG
);
CONFIGRET
WINAPI
CM_Get_Device_ID_ListW
(
PCWSTR
,
PWCHAR
,
ULONG
,
ULONG
);
CONFIGRET
WINAPI
CM_Get_Device_ID_ListW
(
PCWSTR
,
PWCHAR
,
ULONG
,
ULONG
);
#define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List)
#define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List)
...
...
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