Open hackersack opened 1 year ago
Hmm, Looking at the code again today I see it does need an update regarding Unicode/Ascii. Might be tricky to get this running under the latest PB version 6.x with the code as-is.
However- to address your issue with the SECURITY_ATTRIBUTES structure...:
My first questions to you would be - Is this being compiled on Windows OS?, and with which version of PureBasic are you compiling it?
SECURITY_ATTRIBUTES is a windows native structure ( https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa379560(v=vs.85) ) and has been included in PureBasic's out-of-the-box definitions for several versions back from the current, is why I ask.
I'm not sure why the PB compiler/IDE wouldn't know what that structure is, but you could always try to define it yourself. Just below the Structure WTS_SESSION_INFO block on lines 12-16 you could add the following additional structure block:
Structure SECURITY_ATTRIBUTES nLength.l lpSecurityDescriptor.l bInheritHandle.b EndStructure
Create Executable error - [COMPILER] Line 46: Structure not found: SECURITY_ATTRIBUTES.