File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 3
3
name = " winapi"
4
4
version = " 0.0.1"
5
5
authors = [" Peter Atashian <retep998@gmail.com>" ]
6
+ description = " WinAPI FFI bindings. Use this for building higher level abstractions."
7
+ repository = " https://github.com/retep998/winapi-rs"
8
+ readme = " README.md"
9
+ keywords = [" Windows" , " win32" , " WinAPI" , " FFI" ]
10
+ license = " MIT"
11
+
12
+ [features ]
13
+ advapi32 = []
14
+ kernel32 = []
15
+ ole32 = []
16
+ shell32 = []
Original file line number Diff line number Diff line change @@ -1536,6 +1536,7 @@ pub static ENABLE_WRAP_AT_EOL_OUTPUT: DWORD = 0x2;
1536
1536
// Functions
1537
1537
//-------------------------------------------------------------------------------------------------
1538
1538
1539
+ #[ cfg( feature = "ole32" ) ]
1539
1540
#[ link( name = "ole32" ) ]
1540
1541
extern "system" {
1541
1542
pub fn CoAllowUnmarshalerCLSID (
@@ -1610,6 +1611,7 @@ extern "system" {
1610
1611
phglobal : * mut HGLOBAL ,
1611
1612
) -> HRESULT ;
1612
1613
}
1614
+ #[ cfg( feature = "shell32" ) ]
1613
1615
#[ link( name = "shell32" ) ]
1614
1616
extern "system" {
1615
1617
pub fn SHCloneSpecialIDList (
@@ -1758,6 +1760,7 @@ extern "system" {
1758
1760
pszPath : PCWSTR ,
1759
1761
) -> HRESULT ;
1760
1762
}
1763
+ #[ cfg( feature = "kernel32" ) ]
1761
1764
#[ link( name = "kernel32" ) ]
1762
1765
extern "system" {
1763
1766
pub fn CloseHandle (
@@ -1824,6 +1827,7 @@ extern "system" {
1824
1827
lpNumberOfBytesWritten : * mut SIZE_T ,
1825
1828
) -> BOOL ;
1826
1829
}
1830
+ #[ cfg( feature = "advapi32" ) ]
1827
1831
#[ link( name = "advapi32" ) ]
1828
1832
extern "system" {
1829
1833
pub fn AdjustTokenPrivileges (
You can’t perform that action at this time.
0 commit comments