| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sandbox/win/tests/common/test_utils.h" | 5 #include "sandbox/win/tests/common/test_utils.h" |
| 6 | 6 |
| 7 #include <winioctl.h> | 7 #include <winioctl.h> |
| 8 | 8 |
| 9 typedef struct _REPARSE_DATA_BUFFER { | 9 typedef struct _REPARSE_DATA_BUFFER { |
| 10 ULONG ReparseTag; | 10 ULONG ReparseTag; |
| 11 USHORT ReparseDataLength; | 11 USHORT ReparseDataLength; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 DWORD returned; | 63 DWORD returned; |
| 64 REPARSE_DATA_BUFFER data = {0}; | 64 REPARSE_DATA_BUFFER data = {0}; |
| 65 data.ReparseTag = 0xa0000003; | 65 data.ReparseTag = 0xa0000003; |
| 66 if (!DeviceIoControl(source, FSCTL_DELETE_REPARSE_POINT, &data, 8, NULL, 0, | 66 if (!DeviceIoControl(source, FSCTL_DELETE_REPARSE_POINT, &data, 8, NULL, 0, |
| 67 &returned, NULL)) { | 67 &returned, NULL)) { |
| 68 return false; | 68 return false; |
| 69 } | 69 } |
| 70 | 70 |
| 71 return true; | 71 return true; |
| 72 } | 72 } |
| OLD | NEW |