@@ -153,6 +153,9 @@ class IShellLinkW(COMInterface):
153153class IStdIdentity (COMInterface ):
154154 IID = generate_IID (0x0000001b , 0x0000 , 0x0000 , 0xc0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x46 , name = "IStdIdentity" , strid = "0000001b-0000-0000-c000-000000000046" )
155155
156+ class IStorage (COMInterface ):
157+ IID = generate_IID (0x0000000B , 0x0000 , 0x0000 , 0xC0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x46 , name = "IStorage" , strid = "0000000B-0000-0000-C000-000000000046" )
158+
156159class IStream (COMInterface ):
157160 IID = generate_IID (0x0000000C , 0x0000 , 0x0000 , 0xC0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x46 , name = "IStream" , strid = "0000000C-0000-0000-C000-000000000046" )
158161
@@ -192,9 +195,6 @@ class ITypeLib(COMInterface):
192195class IUnknown (COMInterface ):
193196 IID = generate_IID (0x00000000 , 0x0000 , 0x0000 , 0xC0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x46 , name = "IUnknown" , strid = "00000000-0000-0000-C000-000000000046" )
194197
195- class MyCls (COMInterface ):
196- IID = generate_IID (0x11223344 , 0x5555 , 0x6666 , 0x77 , 0x77 , 0x88 , 0x99 , 0x00 , 0x00 , 0x00 , 0x02 , name = "MyCls" , strid = "11223344-5555-6666-7777-889900000002" )
197-
198198class IBackgroundCopyCallback (COMInterface ):
199199 IID = generate_IID (0x97EA99C7 , 0x0186 , 0x4AD4 , 0x8D , 0xF9 , 0xC5 , 0xB4 , 0xE0 , 0xED , 0x6B , 0x22 , name = "IBackgroundCopyCallback" , strid = "97EA99C7-0186-4AD4-8DF9-C5B4E0ED6B22" )
200200
@@ -270,9 +270,6 @@ class IScmRequestInfo(COMInterface):
270270class IStandardActivator (COMInterface ):
271271 IID = generate_IID (0x000001B8 , 0x0000 , 0x0000 , 0xC0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x46 , name = "IStandardActivator" , strid = "000001B8-0000-0000-C000-000000000046" )
272272
273- class IStorage (COMInterface ):
274- IID = generate_IID (0x0000000B , 0x0000 , 0x0000 , 0xC0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x46 , name = "IStorage" , strid = "0000000B-0000-0000-C000-000000000046" )
275-
276273class ISystemActivator (COMInterface ):
277274 IID = generate_IID (0x000001A0 , 0x0000 , 0x0000 , 0xC0 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x46 , name = "ISystemActivator" , strid = "000001A0-0000-0000-C000-000000000046" )
278275
@@ -1100,6 +1097,45 @@ class IWbemServices(COMInterface):
11001097 "Release" : ctypes .WINFUNCTYPE (ULONG )(2 , "Release" ),
11011098 }
11021099
1100+ IStorage ._functions_ = {
1101+ # QueryInterface -> riid:REFIID, ppvObject:**void
1102+ "QueryInterface" : ctypes .WINFUNCTYPE (HRESULT , REFIID , POINTER (PVOID ))(0 , "QueryInterface" ),
1103+ # AddRef ->
1104+ "AddRef" : ctypes .WINFUNCTYPE (ULONG )(1 , "AddRef" ),
1105+ # Release ->
1106+ "Release" : ctypes .WINFUNCTYPE (ULONG )(2 , "Release" ),
1107+ # CreateStream -> pwcsName:*OLECHAR, grfMode:DWORD, reserved1:DWORD, reserved2:DWORD, ppstm:**IStream
1108+ "CreateStream" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), DWORD , DWORD , DWORD , POINTER (IStream ))(3 , "CreateStream" ),
1109+ # OpenStream -> pwcsName:*OLECHAR, reserved1:*void, grfMode:DWORD, reserved2:DWORD, ppstm:**IStream
1110+ "OpenStream" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), PVOID , DWORD , DWORD , POINTER (IStream ))(4 , "OpenStream" ),
1111+ # CreateStorage -> pwcsName:*OLECHAR, grfMode:DWORD, reserved1:DWORD, reserved2:DWORD, ppstg:**IStorage
1112+ "CreateStorage" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), DWORD , DWORD , DWORD , POINTER (IStorage ))(5 , "CreateStorage" ),
1113+ # OpenStorage -> pwcsName:*OLECHAR, pstgPriority:*IStorage, grfMode:DWORD, snbExclude:SNB, reserved:DWORD, ppstg:**IStorage
1114+ "OpenStorage" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), IStorage , DWORD , SNB , DWORD , POINTER (IStorage ))(6 , "OpenStorage" ),
1115+ # CopyTo -> ciidExclude:DWORD, rgiidExclude:*IID, snbExclude:SNB, pstgDest:*IStorage
1116+ "CopyTo" : ctypes .WINFUNCTYPE (HRESULT , DWORD , POINTER (IID ), SNB , IStorage )(7 , "CopyTo" ),
1117+ # MoveElementTo -> pwcsName:*OLECHAR, pstgDest:*IStorage, pwcsNewName:*OLECHAR, grfFlags:DWORD
1118+ "MoveElementTo" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), IStorage , POINTER (OLECHAR ), DWORD )(8 , "MoveElementTo" ),
1119+ # Commit -> grfCommitFlags:DWORD
1120+ "Commit" : ctypes .WINFUNCTYPE (HRESULT , DWORD )(9 , "Commit" ),
1121+ # Revert ->
1122+ "Revert" : ctypes .WINFUNCTYPE (HRESULT )(10 , "Revert" ),
1123+ # EnumElements -> reserved1:DWORD, reserved2:*void, reserved3:DWORD, ppenum:**IEnumSTATSTG
1124+ "EnumElements" : ctypes .WINFUNCTYPE (HRESULT , DWORD , PVOID , DWORD , POINTER (IEnumSTATSTG ))(11 , "EnumElements" ),
1125+ # DestroyElement -> pwcsName:*OLECHAR
1126+ "DestroyElement" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ))(12 , "DestroyElement" ),
1127+ # RenameElement -> pwcsOldName:*OLECHAR, pwcsNewName:*OLECHAR
1128+ "RenameElement" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), POINTER (OLECHAR ))(13 , "RenameElement" ),
1129+ # SetElementTimes -> pwcsName:*OLECHAR, pctime:*FILETIME, patime:*FILETIME, pmtime:*FILETIME
1130+ "SetElementTimes" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), POINTER (FILETIME ), POINTER (FILETIME ), POINTER (FILETIME ))(14 , "SetElementTimes" ),
1131+ # SetClass -> clsid:REFCLSID
1132+ "SetClass" : ctypes .WINFUNCTYPE (HRESULT , REFCLSID )(15 , "SetClass" ),
1133+ # SetStateBits -> grfStateBits:DWORD, grfMask:DWORD
1134+ "SetStateBits" : ctypes .WINFUNCTYPE (HRESULT , DWORD , DWORD )(16 , "SetStateBits" ),
1135+ # Stat -> pstatstg:*STATSTG, grfStatFlag:DWORD
1136+ "Stat" : ctypes .WINFUNCTYPE (HRESULT , POINTER (STATSTG ), DWORD )(17 , "Stat" ),
1137+ }
1138+
11031139IStream ._functions_ = {
11041140 # QueryInterface -> riid:REFIID, ppvObject:**void
11051141 "QueryInterface" : ctypes .WINFUNCTYPE (HRESULT , REFIID , POINTER (PVOID ))(0 , "QueryInterface" ),
@@ -1229,21 +1265,6 @@ class IWbemServices(COMInterface):
12291265 "Release" : ctypes .WINFUNCTYPE (ULONG )(2 , "Release" ),
12301266 }
12311267
1232- MyCls ._functions_ = {
1233- # QueryInterface -> riid:REFIID, ppvObject:*PVOID
1234- "QueryInterface" : ctypes .WINFUNCTYPE (HRESULT , REFIID , POINTER (PVOID ))(0 , "QueryInterface" ),
1235- # AddRef ->
1236- "AddRef" : ctypes .WINFUNCTYPE (ULONG )(1 , "AddRef" ),
1237- # Release ->
1238- "Release" : ctypes .WINFUNCTYPE (ULONG )(2 , "Release" ),
1239- # add -> x:UINT, y:UINT, res:*UINT
1240- "add" : ctypes .WINFUNCTYPE (HRESULT , UINT , UINT , POINTER (UINT ))(3 , "add" ),
1241- # dprint -> msg:*WCHAR
1242- "dprint" : ctypes .WINFUNCTYPE (HRESULT , POINTER (WCHAR ))(4 , "dprint" ),
1243- # tstvalue -> rettype:DWORD, out:**TestStructV1
1244- "tstvalue" : ctypes .WINFUNCTYPE (HRESULT , DWORD , POINTER (POINTER (TestStructV1 )))(5 , "tstvalue" ),
1245- }
1246-
12471268IBackgroundCopyCallback ._functions_ = {
12481269 # QueryInterface -> riid:REFIID, ppvObject:**void
12491270 "QueryInterface" : ctypes .WINFUNCTYPE (HRESULT , REFIID , POINTER (PVOID ))(0 , "QueryInterface" ),
@@ -1899,45 +1920,6 @@ class IWbemServices(COMInterface):
18991920 "Reset" : ctypes .WINFUNCTYPE (HRESULT )(7 , "Reset" ),
19001921 }
19011922
1902- IStorage ._functions_ = {
1903- # QueryInterface -> riid:REFIID, ppvObject:**void
1904- "QueryInterface" : ctypes .WINFUNCTYPE (HRESULT , REFIID , POINTER (PVOID ))(0 , "QueryInterface" ),
1905- # AddRef ->
1906- "AddRef" : ctypes .WINFUNCTYPE (ULONG )(1 , "AddRef" ),
1907- # Release ->
1908- "Release" : ctypes .WINFUNCTYPE (ULONG )(2 , "Release" ),
1909- # CreateStream -> pwcsName:*OLECHAR, grfMode:DWORD, reserved1:DWORD, reserved2:DWORD, ppstm:**IStream
1910- "CreateStream" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), DWORD , DWORD , DWORD , POINTER (IStream ))(3 , "CreateStream" ),
1911- # OpenStream -> pwcsName:*OLECHAR, reserved1:*void, grfMode:DWORD, reserved2:DWORD, ppstm:**IStream
1912- "OpenStream" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), PVOID , DWORD , DWORD , POINTER (IStream ))(4 , "OpenStream" ),
1913- # CreateStorage -> pwcsName:*OLECHAR, grfMode:DWORD, reserved1:DWORD, reserved2:DWORD, ppstg:**IStorage
1914- "CreateStorage" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), DWORD , DWORD , DWORD , POINTER (IStorage ))(5 , "CreateStorage" ),
1915- # OpenStorage -> pwcsName:*OLECHAR, pstgPriority:*IStorage, grfMode:DWORD, snbExclude:SNB, reserved:DWORD, ppstg:**IStorage
1916- "OpenStorage" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), IStorage , DWORD , SNB , DWORD , POINTER (IStorage ))(6 , "OpenStorage" ),
1917- # CopyTo -> ciidExclude:DWORD, rgiidExclude:*IID, snbExclude:SNB, pstgDest:*IStorage
1918- "CopyTo" : ctypes .WINFUNCTYPE (HRESULT , DWORD , POINTER (IID ), SNB , IStorage )(7 , "CopyTo" ),
1919- # MoveElementTo -> pwcsName:*OLECHAR, pstgDest:*IStorage, pwcsNewName:*OLECHAR, grfFlags:DWORD
1920- "MoveElementTo" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), IStorage , POINTER (OLECHAR ), DWORD )(8 , "MoveElementTo" ),
1921- # Commit -> grfCommitFlags:DWORD
1922- "Commit" : ctypes .WINFUNCTYPE (HRESULT , DWORD )(9 , "Commit" ),
1923- # Revert ->
1924- "Revert" : ctypes .WINFUNCTYPE (HRESULT )(10 , "Revert" ),
1925- # EnumElements -> reserved1:DWORD, reserved2:*void, reserved3:DWORD, ppenum:**IEnumSTATSTG
1926- "EnumElements" : ctypes .WINFUNCTYPE (HRESULT , DWORD , PVOID , DWORD , POINTER (IEnumSTATSTG ))(11 , "EnumElements" ),
1927- # DestroyElement -> pwcsName:*OLECHAR
1928- "DestroyElement" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ))(12 , "DestroyElement" ),
1929- # RenameElement -> pwcsOldName:*OLECHAR, pwcsNewName:*OLECHAR
1930- "RenameElement" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), POINTER (OLECHAR ))(13 , "RenameElement" ),
1931- # SetElementTimes -> pwcsName:*OLECHAR, pctime:*FILETIME, patime:*FILETIME, pmtime:*FILETIME
1932- "SetElementTimes" : ctypes .WINFUNCTYPE (HRESULT , POINTER (OLECHAR ), POINTER (FILETIME ), POINTER (FILETIME ), POINTER (FILETIME ))(14 , "SetElementTimes" ),
1933- # SetClass -> clsid:REFCLSID
1934- "SetClass" : ctypes .WINFUNCTYPE (HRESULT , REFCLSID )(15 , "SetClass" ),
1935- # SetStateBits -> grfStateBits:DWORD, grfMask:DWORD
1936- "SetStateBits" : ctypes .WINFUNCTYPE (HRESULT , DWORD , DWORD )(16 , "SetStateBits" ),
1937- # Stat -> pstatstg:*STATSTG, grfStatFlag:DWORD
1938- "Stat" : ctypes .WINFUNCTYPE (HRESULT , POINTER (STATSTG ), DWORD )(17 , "Stat" ),
1939- }
1940-
19411923ISystemActivator ._functions_ = {
19421924 # QueryInterface -> riid:REFIID, ppvObject:**void
19431925 "QueryInterface" : ctypes .WINFUNCTYPE (HRESULT , REFIID , POINTER (PVOID ))(0 , "QueryInterface" ),
0 commit comments