(cls, strsid)
| 206 | |
| 207 | @classmethod |
| 208 | def from_string(cls, strsid): |
| 209 | self = cls() |
| 210 | if not isinstance(strsid, bytes): |
| 211 | strsid = strsid.encode("ascii") |
| 212 | # Pass to ConvertStringSidToSidW ? |
| 213 | windows.winproxy.ConvertStringSidToSidA(strsid, self) |
| 214 | return self |
| 215 | |
| 216 | def to_string(self): |
| 217 | sid_str = LPCSTR() |
no outgoing calls
no test coverage detected