1
1
from ctypes import (
2
2
Array ,
3
3
Structure ,
4
+ _Pointer ,
4
5
_SimpleCData ,
5
6
c_byte ,
6
7
c_char ,
@@ -18,7 +19,6 @@ from ctypes import (
18
19
c_void_p ,
19
20
c_wchar ,
20
21
c_wchar_p ,
21
- pointer ,
22
22
)
23
23
from typing_extensions import TypeAlias
24
24
@@ -181,55 +181,55 @@ class WIN32_FIND_DATAW(Structure):
181
181
cFileName : Array [WCHAR ]
182
182
cAlternateFileName : Array [WCHAR ]
183
183
184
- # These pointer type definitions use pointer [...] instead of POINTER(...), to allow them
184
+ # These pointer type definitions use _Pointer [...] instead of POINTER(...), to allow them
185
185
# to be used in type annotations.
186
- PBOOL : TypeAlias = pointer [BOOL ]
187
- LPBOOL : TypeAlias = pointer [BOOL ]
188
- PBOOLEAN : TypeAlias = pointer [BOOLEAN ]
189
- PBYTE : TypeAlias = pointer [BYTE ]
190
- LPBYTE : TypeAlias = pointer [BYTE ]
191
- PCHAR : TypeAlias = pointer [CHAR ]
192
- LPCOLORREF : TypeAlias = pointer [COLORREF ]
193
- PDWORD : TypeAlias = pointer [DWORD ]
194
- LPDWORD : TypeAlias = pointer [DWORD ]
195
- PFILETIME : TypeAlias = pointer [FILETIME ]
196
- LPFILETIME : TypeAlias = pointer [FILETIME ]
197
- PFLOAT : TypeAlias = pointer [FLOAT ]
198
- PHANDLE : TypeAlias = pointer [HANDLE ]
199
- LPHANDLE : TypeAlias = pointer [HANDLE ]
200
- PHKEY : TypeAlias = pointer [HKEY ]
201
- LPHKL : TypeAlias = pointer [HKL ]
202
- PINT : TypeAlias = pointer [INT ]
203
- LPINT : TypeAlias = pointer [INT ]
204
- PLARGE_INTEGER : TypeAlias = pointer [LARGE_INTEGER ]
205
- PLCID : TypeAlias = pointer [LCID ]
206
- PLONG : TypeAlias = pointer [LONG ]
207
- LPLONG : TypeAlias = pointer [LONG ]
208
- PMSG : TypeAlias = pointer [MSG ]
209
- LPMSG : TypeAlias = pointer [MSG ]
210
- PPOINT : TypeAlias = pointer [POINT ]
211
- LPPOINT : TypeAlias = pointer [POINT ]
212
- PPOINTL : TypeAlias = pointer [POINTL ]
213
- PRECT : TypeAlias = pointer [RECT ]
214
- LPRECT : TypeAlias = pointer [RECT ]
215
- PRECTL : TypeAlias = pointer [RECTL ]
216
- LPRECTL : TypeAlias = pointer [RECTL ]
217
- LPSC_HANDLE : TypeAlias = pointer [SC_HANDLE ]
218
- PSHORT : TypeAlias = pointer [SHORT ]
219
- PSIZE : TypeAlias = pointer [SIZE ]
220
- LPSIZE : TypeAlias = pointer [SIZE ]
221
- PSIZEL : TypeAlias = pointer [SIZEL ]
222
- LPSIZEL : TypeAlias = pointer [SIZEL ]
223
- PSMALL_RECT : TypeAlias = pointer [SMALL_RECT ]
224
- PUINT : TypeAlias = pointer [UINT ]
225
- LPUINT : TypeAlias = pointer [UINT ]
226
- PULARGE_INTEGER : TypeAlias = pointer [ULARGE_INTEGER ]
227
- PULONG : TypeAlias = pointer [ULONG ]
228
- PUSHORT : TypeAlias = pointer [USHORT ]
229
- PWCHAR : TypeAlias = pointer [WCHAR ]
230
- PWIN32_FIND_DATAA : TypeAlias = pointer [WIN32_FIND_DATAA ]
231
- LPWIN32_FIND_DATAA : TypeAlias = pointer [WIN32_FIND_DATAA ]
232
- PWIN32_FIND_DATAW : TypeAlias = pointer [WIN32_FIND_DATAW ]
233
- LPWIN32_FIND_DATAW : TypeAlias = pointer [WIN32_FIND_DATAW ]
234
- PWORD : TypeAlias = pointer [WORD ]
235
- LPWORD : TypeAlias = pointer [WORD ]
186
+ PBOOL : TypeAlias = _Pointer [BOOL ]
187
+ LPBOOL : TypeAlias = _Pointer [BOOL ]
188
+ PBOOLEAN : TypeAlias = _Pointer [BOOLEAN ]
189
+ PBYTE : TypeAlias = _Pointer [BYTE ]
190
+ LPBYTE : TypeAlias = _Pointer [BYTE ]
191
+ PCHAR : TypeAlias = _Pointer [CHAR ]
192
+ LPCOLORREF : TypeAlias = _Pointer [COLORREF ]
193
+ PDWORD : TypeAlias = _Pointer [DWORD ]
194
+ LPDWORD : TypeAlias = _Pointer [DWORD ]
195
+ PFILETIME : TypeAlias = _Pointer [FILETIME ]
196
+ LPFILETIME : TypeAlias = _Pointer [FILETIME ]
197
+ PFLOAT : TypeAlias = _Pointer [FLOAT ]
198
+ PHANDLE : TypeAlias = _Pointer [HANDLE ]
199
+ LPHANDLE : TypeAlias = _Pointer [HANDLE ]
200
+ PHKEY : TypeAlias = _Pointer [HKEY ]
201
+ LPHKL : TypeAlias = _Pointer [HKL ]
202
+ PINT : TypeAlias = _Pointer [INT ]
203
+ LPINT : TypeAlias = _Pointer [INT ]
204
+ PLARGE_INTEGER : TypeAlias = _Pointer [LARGE_INTEGER ]
205
+ PLCID : TypeAlias = _Pointer [LCID ]
206
+ PLONG : TypeAlias = _Pointer [LONG ]
207
+ LPLONG : TypeAlias = _Pointer [LONG ]
208
+ PMSG : TypeAlias = _Pointer [MSG ]
209
+ LPMSG : TypeAlias = _Pointer [MSG ]
210
+ PPOINT : TypeAlias = _Pointer [POINT ]
211
+ LPPOINT : TypeAlias = _Pointer [POINT ]
212
+ PPOINTL : TypeAlias = _Pointer [POINTL ]
213
+ PRECT : TypeAlias = _Pointer [RECT ]
214
+ LPRECT : TypeAlias = _Pointer [RECT ]
215
+ PRECTL : TypeAlias = _Pointer [RECTL ]
216
+ LPRECTL : TypeAlias = _Pointer [RECTL ]
217
+ LPSC_HANDLE : TypeAlias = _Pointer [SC_HANDLE ]
218
+ PSHORT : TypeAlias = _Pointer [SHORT ]
219
+ PSIZE : TypeAlias = _Pointer [SIZE ]
220
+ LPSIZE : TypeAlias = _Pointer [SIZE ]
221
+ PSIZEL : TypeAlias = _Pointer [SIZEL ]
222
+ LPSIZEL : TypeAlias = _Pointer [SIZEL ]
223
+ PSMALL_RECT : TypeAlias = _Pointer [SMALL_RECT ]
224
+ PUINT : TypeAlias = _Pointer [UINT ]
225
+ LPUINT : TypeAlias = _Pointer [UINT ]
226
+ PULARGE_INTEGER : TypeAlias = _Pointer [ULARGE_INTEGER ]
227
+ PULONG : TypeAlias = _Pointer [ULONG ]
228
+ PUSHORT : TypeAlias = _Pointer [USHORT ]
229
+ PWCHAR : TypeAlias = _Pointer [WCHAR ]
230
+ PWIN32_FIND_DATAA : TypeAlias = _Pointer [WIN32_FIND_DATAA ]
231
+ LPWIN32_FIND_DATAA : TypeAlias = _Pointer [WIN32_FIND_DATAA ]
232
+ PWIN32_FIND_DATAW : TypeAlias = _Pointer [WIN32_FIND_DATAW ]
233
+ LPWIN32_FIND_DATAW : TypeAlias = _Pointer [WIN32_FIND_DATAW ]
234
+ PWORD : TypeAlias = _Pointer [WORD ]
235
+ LPWORD : TypeAlias = _Pointer [WORD ]
0 commit comments