Merge pull request #3963 from youknowone/winapi

add _winapi attributes
This commit is contained in:
Jeong YunWon
2022-07-25 07:10:24 +09:00
committed by GitHub
2 changed files with 12 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ version = "0.3.9"
features = [
"winsock2", "handleapi", "ws2def", "std", "winbase", "wincrypt", "fileapi", "processenv",
"namedpipeapi", "winnt", "processthreadsapi", "errhandlingapi", "winuser", "synchapi", "wincon",
"impl-default", "vcruntime", "ifdef", "netioapi"
"impl-default", "vcruntime", "ifdef", "netioapi", "memoryapi",
]
[target.'cfg(target_arch = "wasm32")'.dependencies]

View File

@@ -19,8 +19,18 @@ mod _winapi {
#[pyattr]
use winapi::{
shared::winerror::WAIT_TIMEOUT,
shared::winerror::{
ERROR_ALREADY_EXISTS, ERROR_BROKEN_PIPE, ERROR_IO_PENDING, ERROR_MORE_DATA,
ERROR_NETNAME_DELETED, ERROR_NO_DATA, ERROR_NO_SYSTEM_RESOURCES,
ERROR_OPERATION_ABORTED, ERROR_PIPE_BUSY, ERROR_PIPE_CONNECTED, ERROR_SEM_TIMEOUT,
WAIT_TIMEOUT,
},
um::{
fileapi::OPEN_EXISTING,
memoryapi::{
FILE_MAP_ALL_ACCESS, FILE_MAP_COPY, FILE_MAP_EXECUTE, FILE_MAP_READ, FILE_MAP_WRITE,
},
minwinbase::STILL_ACTIVE,
winbase::{
ABOVE_NORMAL_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS,
CREATE_BREAKAWAY_FROM_JOB, CREATE_DEFAULT_ERROR_MODE, CREATE_NEW_CONSOLE,