diff options
Diffstat (limited to 'src/dutil/inc')
| -rw-r--r-- | src/dutil/inc/aclutil.h | 2 | ||||
| -rw-r--r-- | src/dutil/inc/buffutil.h | 2 | ||||
| -rw-r--r-- | src/dutil/inc/fileutil.h | 7 | ||||
| -rw-r--r-- | src/dutil/inc/pathutil.h | 12 | ||||
| -rw-r--r-- | src/dutil/inc/strutil.h | 4 | ||||
| -rw-r--r-- | src/dutil/inc/verutil.h | 2 |
6 files changed, 23 insertions, 6 deletions
diff --git a/src/dutil/inc/aclutil.h b/src/dutil/inc/aclutil.h index 144e4613..ac03f9a8 100644 --- a/src/dutil/inc/aclutil.h +++ b/src/dutil/inc/aclutil.h | |||
| @@ -140,7 +140,7 @@ HRESULT DAPI AclAddAdminToSecurityDescriptor( | |||
| 140 | // Following code in acl2util.cpp due to dependency on crypt32.dll. | 140 | // Following code in acl2util.cpp due to dependency on crypt32.dll. |
| 141 | HRESULT DAPI AclCalculateServiceSidString( | 141 | HRESULT DAPI AclCalculateServiceSidString( |
| 142 | __in LPCWSTR wzServiceName, | 142 | __in LPCWSTR wzServiceName, |
| 143 | __in int cchServiceName, | 143 | __in SIZE_T cchServiceName, |
| 144 | __deref_out_z LPWSTR* psczSid | 144 | __deref_out_z LPWSTR* psczSid |
| 145 | ); | 145 | ); |
| 146 | HRESULT DAPI AclGetAccountSidStringEx( | 146 | HRESULT DAPI AclGetAccountSidStringEx( |
diff --git a/src/dutil/inc/buffutil.h b/src/dutil/inc/buffutil.h index 7509f76a..322209e6 100644 --- a/src/dutil/inc/buffutil.h +++ b/src/dutil/inc/buffutil.h | |||
| @@ -57,7 +57,7 @@ HRESULT BuffReadStream( | |||
| 57 | HRESULT BuffWriteNumber( | 57 | HRESULT BuffWriteNumber( |
| 58 | __deref_inout_bcount(*piBuffer) BYTE** ppbBuffer, | 58 | __deref_inout_bcount(*piBuffer) BYTE** ppbBuffer, |
| 59 | __inout SIZE_T* piBuffer, | 59 | __inout SIZE_T* piBuffer, |
| 60 | __in DWORD_PTR dw | 60 | __in DWORD dw |
| 61 | ); | 61 | ); |
| 62 | HRESULT BuffWriteNumber64( | 62 | HRESULT BuffWriteNumber64( |
| 63 | __deref_inout_bcount(*piBuffer) BYTE** ppbBuffer, | 63 | __deref_inout_bcount(*piBuffer) BYTE** ppbBuffer, |
diff --git a/src/dutil/inc/fileutil.h b/src/dutil/inc/fileutil.h index 319c5508..d3e326f7 100644 --- a/src/dutil/inc/fileutil.h +++ b/src/dutil/inc/fileutil.h | |||
| @@ -62,7 +62,7 @@ HRESULT DAPI FileVersionFromString( | |||
| 62 | ); | 62 | ); |
| 63 | HRESULT DAPI FileVersionFromStringEx( | 63 | HRESULT DAPI FileVersionFromStringEx( |
| 64 | __in_z LPCWSTR wzVersion, | 64 | __in_z LPCWSTR wzVersion, |
| 65 | __in DWORD cchVersion, | 65 | __in SIZE_T cchVersion, |
| 66 | __out DWORD64* pqwVersion | 66 | __out DWORD64* pqwVersion |
| 67 | ); | 67 | ); |
| 68 | HRESULT DAPI FileVersionToStringEx( | 68 | HRESULT DAPI FileVersionToStringEx( |
| @@ -130,6 +130,11 @@ HRESULT DAPI FileReadPartialEx( | |||
| 130 | __in BOOL fPartialOK, | 130 | __in BOOL fPartialOK, |
| 131 | __in DWORD dwShareMode | 131 | __in DWORD dwShareMode |
| 132 | ); | 132 | ); |
| 133 | HRESULT DAPI FileReadHandle( | ||
| 134 | __in HANDLE hFile, | ||
| 135 | __in_bcount(cbDest) LPBYTE pbDest, | ||
| 136 | __in SIZE_T cbDest | ||
| 137 | ); | ||
| 133 | HRESULT DAPI FileWrite( | 138 | HRESULT DAPI FileWrite( |
| 134 | __in_z LPCWSTR pwzFileName, | 139 | __in_z LPCWSTR pwzFileName, |
| 135 | __in DWORD dwFlagsAndAttributes, | 140 | __in DWORD dwFlagsAndAttributes, |
diff --git a/src/dutil/inc/pathutil.h b/src/dutil/inc/pathutil.h index 719ee7d8..579b8454 100644 --- a/src/dutil/inc/pathutil.h +++ b/src/dutil/inc/pathutil.h | |||
| @@ -178,6 +178,18 @@ DAPI_(HRESULT) PathConcat( | |||
| 178 | ); | 178 | ); |
| 179 | 179 | ||
| 180 | /******************************************************************* | 180 | /******************************************************************* |
| 181 | PathConcatCch - like .NET's Path.Combine, lets you build up a path | ||
| 182 | one piece -- file or directory -- at a time. | ||
| 183 | *******************************************************************/ | ||
| 184 | DAPI_(HRESULT) PathConcatCch( | ||
| 185 | __in_opt LPCWSTR wzPath1, | ||
| 186 | __in SIZE_T cchPath1, | ||
| 187 | __in_opt LPCWSTR wzPath2, | ||
| 188 | __in SIZE_T cchPath2, | ||
| 189 | __deref_out_z LPWSTR* psczCombined | ||
| 190 | ); | ||
| 191 | |||
| 192 | /******************************************************************* | ||
| 181 | PathEnsureQuoted - ensures that a path is quoted; optionally, | 193 | PathEnsureQuoted - ensures that a path is quoted; optionally, |
| 182 | this function also terminates a directory with a backslash | 194 | this function also terminates a directory with a backslash |
| 183 | if it is not already. | 195 | if it is not already. |
diff --git a/src/dutil/inc/strutil.h b/src/dutil/inc/strutil.h index cf8c751c..1cff9ab8 100644 --- a/src/dutil/inc/strutil.h +++ b/src/dutil/inc/strutil.h | |||
| @@ -277,12 +277,12 @@ void DAPI StrStringToLower( | |||
| 277 | HRESULT DAPI StrAllocStringToUpperInvariant( | 277 | HRESULT DAPI StrAllocStringToUpperInvariant( |
| 278 | __deref_out_z LPWSTR* pscz, | 278 | __deref_out_z LPWSTR* pscz, |
| 279 | __in_z LPCWSTR wzSource, | 279 | __in_z LPCWSTR wzSource, |
| 280 | __in int cchSource | 280 | __in SIZE_T cchSource |
| 281 | ); | 281 | ); |
| 282 | HRESULT DAPI StrAllocStringToLowerInvariant( | 282 | HRESULT DAPI StrAllocStringToLowerInvariant( |
| 283 | __deref_out_z LPWSTR* pscz, | 283 | __deref_out_z LPWSTR* pscz, |
| 284 | __in_z LPCWSTR wzSource, | 284 | __in_z LPCWSTR wzSource, |
| 285 | __in int cchSource | 285 | __in SIZE_T cchSource |
| 286 | ); | 286 | ); |
| 287 | 287 | ||
| 288 | HRESULT DAPI StrArrayAllocString( | 288 | HRESULT DAPI StrArrayAllocString( |
diff --git a/src/dutil/inc/verutil.h b/src/dutil/inc/verutil.h index 3caa17e1..5247bb61 100644 --- a/src/dutil/inc/verutil.h +++ b/src/dutil/inc/verutil.h | |||
| @@ -74,7 +74,7 @@ void DAPI VerFreeVersion( | |||
| 74 | *******************************************************************/ | 74 | *******************************************************************/ |
| 75 | HRESULT DAPI VerParseVersion( | 75 | HRESULT DAPI VerParseVersion( |
| 76 | __in_z LPCWSTR wzVersion, | 76 | __in_z LPCWSTR wzVersion, |
| 77 | __in DWORD cchVersion, | 77 | __in SIZE_T cchVersion, |
| 78 | __in BOOL fStrict, | 78 | __in BOOL fStrict, |
| 79 | __out VERUTIL_VERSION** ppVersion | 79 | __out VERUTIL_VERSION** ppVersion |
| 80 | ); | 80 | ); |
