Commit af533d1e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

setupapi: Added CM_Get_Version().

parent 8be1357b
......@@ -114,7 +114,7 @@
@ stub CM_Get_Res_Des_Data_Size_Ex
@ stub CM_Get_Sibling
@ stub CM_Get_Sibling_Ex
@ stub CM_Get_Version
@ stdcall CM_Get_Version() setupapi.CM_Get_Version
@ stub CM_Get_Version_Ex
@ stub CM_Intersect_Range_List
@ stub CM_Invert_Range_List
......
......@@ -1751,3 +1751,12 @@ BOOL WINAPI SetupLogErrorW(LPCWSTR message, LogSeverity severity)
HeapFree(GetProcessHeap(), 0, msg);
return ret;
}
/***********************************************************************
* CM_Get_Version (SETUPAPI.@)
*/
WORD WINAPI CM_Get_Version(void)
{
TRACE("()\n");
return 0x0400;
}
......@@ -125,7 +125,7 @@
@ stub CM_Get_Res_Des_Data_Size_Ex
@ stub CM_Get_Sibling
@ stub CM_Get_Sibling_Ex
@ stub CM_Get_Version
@ stdcall CM_Get_Version()
@ stub CM_Get_Version_Ex
@ stub CM_Intersect_Range_List
@ stub CM_Invert_Range_List
......
......@@ -29,6 +29,7 @@
#include "winuser.h"
#include "winreg.h"
#include "setupapi.h"
#include "cfgmgr32.h"
#include "wine/test.h"
......@@ -816,6 +817,14 @@ static void test_SetupLogError(void)
SetupCloseLog();
}
static void test_CM_Get_Version(void)
{
WORD ret;
ret = CM_Get_Version();
ok(ret == 0x0400, "got version %#x\n", ret);
}
START_TEST(misc)
{
HMODULE hsetupapi = GetModuleHandleA("setupapi.dll");
......@@ -849,4 +858,5 @@ START_TEST(misc)
test_defaultcallback();
test_SetupLogError();
test_CM_Get_Version();
}
......@@ -192,6 +192,7 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW(PCWSTR,PWCHAR,ULONG,ULONG,HMACH
#define CM_Get_Device_ID_List_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Ex)
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size(PULONG,DEVINST,ULONG);
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE);
CMAPI WORD WINAPI CM_Get_Version(void);
CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST,DEVINSTID_A,ULONG);
CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST,DEVINSTID_W,ULONG);
#define CM_Locate_DevNode WINELIB_NAME_AW(CM_Locate_DevNode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment